-
- Downloads
Bug 14645429: Part 2 - Add infrastructure for defining named services exposed to JS. r=mccr8
This builds on the existing static components infrastructure to allow defining a Services.jsm-type services cache with no runtime memory overhead for any services until they're accessed. Any class entry with a 'js_name' attribute automatically becomes available on the services cache with that name, and any interfaces listed in its 'interfaces' list are automatically queried on it. Differential Revision: https://phabricator.services.mozilla.com/D81417
Showing
- dom/base/nsJSUtils.h 19 additions, 0 deletionsdom/base/nsJSUtils.h
- js/xpconnect/idl/xpccomponents.idl 3 additions, 0 deletionsjs/xpconnect/idl/xpccomponents.idl
- js/xpconnect/src/JSServices.cpp 157 additions, 0 deletionsjs/xpconnect/src/JSServices.cpp
- js/xpconnect/src/JSServices.h 18 additions, 0 deletionsjs/xpconnect/src/JSServices.h
- js/xpconnect/src/XPCComponents.cpp 11 additions, 0 deletionsjs/xpconnect/src/XPCComponents.cpp
- js/xpconnect/src/XPCRuntimeService.cpp 1 addition, 0 deletionsjs/xpconnect/src/XPCRuntimeService.cpp
- js/xpconnect/src/moz.build 3 additions, 0 deletionsjs/xpconnect/src/moz.build
- netwerk/build/components.conf 2 additions, 0 deletionsnetwerk/build/components.conf
- xpcom/components/StaticComponents.cpp.in 41 additions, 0 deletionsxpcom/components/StaticComponents.cpp.in
- xpcom/components/StaticComponents.h 35 additions, 0 deletionsxpcom/components/StaticComponents.h
- xpcom/components/gen_static_components.py 57 additions, 0 deletionsxpcom/components/gen_static_components.py
- xpcom/components/nsComponentManager.cpp 2 additions, 4 deletionsxpcom/components/nsComponentManager.cpp
Loading
Please register or sign in to comment