Introduction to XPCOM

Introduction What is XPCOM?

What is XPCOM?

Memory ownership

Object ownership

Interfaces

Interfaces in IDL

IDL becomes C++

IDL becomes C++

Rules for C++ interfaces

Using interfaces

Basic ownership rules

Using nsCOMPtr

Runtime object typing: QueryInterface

do_QueryInterface

CreateInstance

do_CreateInstance

Services

do_GetService

How does it work?

Scriptability

C++ vs. JavaScript

More