Classes | Defines

extIApplication.h File Reference

#include "nsISupports.h"
Include dependency graph for extIApplication.h:
This graph shows which files directly or indirectly include this file:

Classes

interface  extIConsole
 Interface that gives simplified access to the console. More...
interface  extIEventItem
 Interface holds information about an event. More...
interface  extIEventListener
 Interface used as a callback for listening to events. More...
interface  extIEvents
 Interface for supporting custom events. More...
interface  extIPreferenceBranch
 Interface for simplified access to preferences. More...
interface  extIPreference
 Interface for accessing a single preference. More...
interface  extIExtension
 Interface representing an extension. More...
interface  extIExtensions
 Interface representing a list of all installed extensions. More...
interface  extIExtensionsCallback
 Interface representing a callback that receives an array of extIExtensions. More...
interface  extISessionStorage
 Interface representing a simple storage system. More...
interface  extIApplication

Defines

#define NS_NO_VTABLE
#define EXTICONSOLE_IID_STR   "ae8482e0-aa5a-11db-abbd-0800200c9a66"
#define EXTICONSOLE_IID
#define NS_DECL_EXTICONSOLE
#define NS_FORWARD_EXTICONSOLE(_to)
#define NS_FORWARD_SAFE_EXTICONSOLE(_to)
#define EXTIEVENTITEM_IID_STR   "05281820-ab62-11db-abbd-0800200c9a66"
#define EXTIEVENTITEM_IID
#define NS_DECL_EXTIEVENTITEM
#define NS_FORWARD_EXTIEVENTITEM(_to)
#define NS_FORWARD_SAFE_EXTIEVENTITEM(_to)
#define EXTIEVENTLISTENER_IID_STR   "2dfe3a50-ab2f-11db-abbd-0800200c9a66"
#define EXTIEVENTLISTENER_IID
#define NS_DECL_EXTIEVENTLISTENER   NS_SCRIPTABLE NS_IMETHOD HandleEvent(extIEventItem *aEvent);
#define NS_FORWARD_EXTIEVENTLISTENER(_to)   NS_SCRIPTABLE NS_IMETHOD HandleEvent(extIEventItem *aEvent) { return _to HandleEvent(aEvent); }
#define NS_FORWARD_SAFE_EXTIEVENTLISTENER(_to)   NS_SCRIPTABLE NS_IMETHOD HandleEvent(extIEventItem *aEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEvent(aEvent); }
#define EXTIEVENTS_IID_STR   "3a8ec9d0-ab19-11db-abbd-0800200c9a66"
#define EXTIEVENTS_IID
#define NS_DECL_EXTIEVENTS
#define NS_FORWARD_EXTIEVENTS(_to)
#define NS_FORWARD_SAFE_EXTIEVENTS(_to)
#define EXTIPREFERENCEBRANCH_IID_STR   "ce697d40-aa5a-11db-abbd-0800200c9a66"
#define EXTIPREFERENCEBRANCH_IID
#define NS_DECL_EXTIPREFERENCEBRANCH
#define NS_FORWARD_EXTIPREFERENCEBRANCH(_to)
#define NS_FORWARD_SAFE_EXTIPREFERENCEBRANCH(_to)
#define EXTIPREFERENCE_IID_STR   "2c7462e2-72c2-4473-9007-0e6ae71e23ca"
#define EXTIPREFERENCE_IID
#define NS_DECL_EXTIPREFERENCE
#define NS_FORWARD_EXTIPREFERENCE(_to)
#define NS_FORWARD_SAFE_EXTIPREFERENCE(_to)
#define EXTIEXTENSION_IID_STR   "10cee02c-f6e0-4d61-ab27-c16572b18c46"
#define EXTIEXTENSION_IID
#define NS_DECL_EXTIEXTENSION
#define NS_FORWARD_EXTIEXTENSION(_to)
#define NS_FORWARD_SAFE_EXTIEXTENSION(_to)
#define EXTIEXTENSIONS_IID_STR   "de281930-aa5a-11db-abbd-0800200c9a66"
#define EXTIEXTENSIONS_IID
#define NS_DECL_EXTIEXTENSIONS
#define NS_FORWARD_EXTIEXTENSIONS(_to)
#define NS_FORWARD_SAFE_EXTIEXTENSIONS(_to)
#define EXTIEXTENSIONSCALLBACK_IID_STR   "2571cbb5-550d-4400-8038-75df9b553f98"
#define EXTIEXTENSIONSCALLBACK_IID
#define NS_DECL_EXTIEXTENSIONSCALLBACK   NS_SCRIPTABLE NS_IMETHOD Callback(nsIVariant *extensions);
#define NS_FORWARD_EXTIEXTENSIONSCALLBACK(_to)   NS_SCRIPTABLE NS_IMETHOD Callback(nsIVariant *extensions) { return _to Callback(extensions); }
#define NS_FORWARD_SAFE_EXTIEXTENSIONSCALLBACK(_to)   NS_SCRIPTABLE NS_IMETHOD Callback(nsIVariant *extensions) { return !_to ? NS_ERROR_NULL_POINTER : _to->Callback(extensions); }
#define EXTISESSIONSTORAGE_IID_STR   "0787ac44-29b9-4889-b97f-13573aec6971"
#define EXTISESSIONSTORAGE_IID
#define NS_DECL_EXTISESSIONSTORAGE
#define NS_FORWARD_EXTISESSIONSTORAGE(_to)
#define NS_FORWARD_SAFE_EXTISESSIONSTORAGE(_to)
#define EXTIAPPLICATION_IID_STR   "2be87909-0817-4292-acfa-fc39be53be3f"
#define EXTIAPPLICATION_IID
#define NS_DECL_EXTIAPPLICATION
#define NS_FORWARD_EXTIAPPLICATION(_to)
#define NS_FORWARD_SAFE_EXTIAPPLICATION(_to)

Define Documentation

#define EXTIAPPLICATION_IID
Value:
{0x2be87909, 0x0817, 0x4292, \
    { 0xac, 0xfa, 0xfc, 0x39, 0xbe, 0x53, 0xbe, 0x3f }}
#define EXTIAPPLICATION_IID_STR   "2be87909-0817-4292-acfa-fc39be53be3f"
#define EXTICONSOLE_IID
Value:
{0xae8482e0, 0xaa5a, 0x11db, \
    { 0xab, 0xbd, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
#define EXTICONSOLE_IID_STR   "ae8482e0-aa5a-11db-abbd-0800200c9a66"
#define EXTIEVENTITEM_IID
Value:
{0x05281820, 0xab62, 0x11db, \
    { 0xab, 0xbd, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
#define EXTIEVENTITEM_IID_STR   "05281820-ab62-11db-abbd-0800200c9a66"
#define EXTIEVENTLISTENER_IID
Value:
{0x2dfe3a50, 0xab2f, 0x11db, \
    { 0xab, 0xbd, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
#define EXTIEVENTLISTENER_IID_STR   "2dfe3a50-ab2f-11db-abbd-0800200c9a66"
#define EXTIEVENTS_IID
Value:
{0x3a8ec9d0, 0xab19, 0x11db, \
    { 0xab, 0xbd, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
#define EXTIEVENTS_IID_STR   "3a8ec9d0-ab19-11db-abbd-0800200c9a66"
#define EXTIEXTENSION_IID
Value:
{0x10cee02c, 0xf6e0, 0x4d61, \
    { 0xab, 0x27, 0xc1, 0x65, 0x72, 0xb1, 0x8c, 0x46 }}
#define EXTIEXTENSION_IID_STR   "10cee02c-f6e0-4d61-ab27-c16572b18c46"
#define EXTIEXTENSIONS_IID
Value:
{0xde281930, 0xaa5a, 0x11db, \
    { 0xab, 0xbd, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
#define EXTIEXTENSIONS_IID_STR   "de281930-aa5a-11db-abbd-0800200c9a66"
#define EXTIEXTENSIONSCALLBACK_IID
Value:
{0x2571cbb5, 0x550d, 0x4400, \
    { 0x80, 0x38, 0x75, 0xdf, 0x9b, 0x55, 0x3f, 0x98 }}
#define EXTIEXTENSIONSCALLBACK_IID_STR   "2571cbb5-550d-4400-8038-75df9b553f98"
#define EXTIPREFERENCE_IID
Value:
{0x2c7462e2, 0x72c2, 0x4473, \
    { 0x90, 0x07, 0x0e, 0x6a, 0xe7, 0x1e, 0x23, 0xca }}
#define EXTIPREFERENCE_IID_STR   "2c7462e2-72c2-4473-9007-0e6ae71e23ca"
#define EXTIPREFERENCEBRANCH_IID
Value:
{0xce697d40, 0xaa5a, 0x11db, \
    { 0xab, 0xbd, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
#define EXTIPREFERENCEBRANCH_IID_STR   "ce697d40-aa5a-11db-abbd-0800200c9a66"
#define EXTISESSIONSTORAGE_IID
Value:
{0x0787ac44, 0x29b9, 0x4889, \
    { 0xb9, 0x7f, 0x13, 0x57, 0x3a, 0xec, 0x69, 0x71 }}
#define EXTISESSIONSTORAGE_IID_STR   "0787ac44-29b9-4889-b97f-13573aec6971"
#define NS_DECL_EXTIAPPLICATION
Value:
NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId); \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
  NS_SCRIPTABLE NS_IMETHOD GetVersion(nsAString & aVersion); \
  NS_SCRIPTABLE NS_IMETHOD GetConsole(extIConsole **aConsole); \
  NS_SCRIPTABLE NS_IMETHOD GetExtensions(extIExtensionsCallback *aCallback); \
  NS_SCRIPTABLE NS_IMETHOD GetPrefs(extIPreferenceBranch **aPrefs); \
  NS_SCRIPTABLE NS_IMETHOD GetStorage(extISessionStorage **aStorage); \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents); \
  NS_SCRIPTABLE NS_IMETHOD Quit(PRBool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD Restart(PRBool *_retval NS_OUTPARAM);
#define NS_DECL_EXTICONSOLE
Value:
NS_SCRIPTABLE NS_IMETHOD Log(const nsAString & aMsg); \
  NS_SCRIPTABLE NS_IMETHOD Open(void);
#define NS_DECL_EXTIEVENTITEM
Value:
NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
  NS_SCRIPTABLE NS_IMETHOD GetData(nsIVariant **aData); \
  NS_SCRIPTABLE NS_IMETHOD PreventDefault(void);
#define NS_DECL_EXTIEVENTLISTENER   NS_SCRIPTABLE NS_IMETHOD HandleEvent(extIEventItem *aEvent);
#define NS_DECL_EXTIEVENTS
Value:
NS_SCRIPTABLE NS_IMETHOD AddListener(const nsAString & aEvent, extIEventListener *aListener); \
  NS_SCRIPTABLE NS_IMETHOD RemoveListener(const nsAString & aEvent, extIEventListener *aListener);
#define NS_DECL_EXTIEXTENSION
Value:
NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId); \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
  NS_SCRIPTABLE NS_IMETHOD GetEnabled(PRBool *aEnabled); \
  NS_SCRIPTABLE NS_IMETHOD GetVersion(nsAString & aVersion); \
  NS_SCRIPTABLE NS_IMETHOD GetFirstRun(PRBool *aFirstRun); \
  NS_SCRIPTABLE NS_IMETHOD GetPrefs(extIPreferenceBranch **aPrefs); \
  NS_SCRIPTABLE NS_IMETHOD GetStorage(extISessionStorage **aStorage); \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents);
#define NS_DECL_EXTIEXTENSIONS
Value:
#define NS_DECL_EXTIEXTENSIONSCALLBACK   NS_SCRIPTABLE NS_IMETHOD Callback(nsIVariant *extensions);
#define NS_DECL_EXTIPREFERENCE
Value:
NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
  NS_SCRIPTABLE NS_IMETHOD GetValue(nsIVariant **aValue); \
  NS_SCRIPTABLE NS_IMETHOD SetValue(nsIVariant *aValue); \
  NS_SCRIPTABLE NS_IMETHOD GetLocked(PRBool *aLocked); \
  NS_SCRIPTABLE NS_IMETHOD SetLocked(PRBool aLocked); \
  NS_SCRIPTABLE NS_IMETHOD GetModified(PRBool *aModified); \
  NS_SCRIPTABLE NS_IMETHOD GetBranch(extIPreferenceBranch **aBranch); \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents); \
  NS_SCRIPTABLE NS_IMETHOD Reset(void);
#define NS_DECL_EXTIPREFERENCEBRANCH
Value:
NS_SCRIPTABLE NS_IMETHOD GetRoot(nsAString & aRoot); \
  NS_SCRIPTABLE NS_IMETHOD GetAll(nsIVariant **aAll); \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents); \
  NS_SCRIPTABLE NS_IMETHOD Has(const nsAString & aName, PRBool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & aName, extIPreference **_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetValue(const nsAString & aName, nsIVariant *aDefaultValue, nsIVariant **_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aName, nsIVariant *aValue); \
  NS_SCRIPTABLE NS_IMETHOD Reset(void);
#define NS_DECL_EXTISESSIONSTORAGE
Value:
NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents); \
  NS_SCRIPTABLE NS_IMETHOD Has(const nsAString & aName, PRBool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD Set(const nsAString & aName, nsIVariant *aValue); \
  NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & aName, nsIVariant *aDefaultValue, nsIVariant **_retval NS_OUTPARAM);
#define NS_FORWARD_EXTIAPPLICATION (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId) { return _to GetId(aId); } \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  NS_SCRIPTABLE NS_IMETHOD GetVersion(nsAString & aVersion) { return _to GetVersion(aVersion); } \
  NS_SCRIPTABLE NS_IMETHOD GetConsole(extIConsole **aConsole) { return _to GetConsole(aConsole); } \
  NS_SCRIPTABLE NS_IMETHOD GetExtensions(extIExtensionsCallback *aCallback) { return _to GetExtensions(aCallback); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrefs(extIPreferenceBranch **aPrefs) { return _to GetPrefs(aPrefs); } \
  NS_SCRIPTABLE NS_IMETHOD GetStorage(extISessionStorage **aStorage) { return _to GetStorage(aStorage); } \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents) { return _to GetEvents(aEvents); } \
  NS_SCRIPTABLE NS_IMETHOD Quit(PRBool *_retval NS_OUTPARAM) { return _to Quit(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD Restart(PRBool *_retval NS_OUTPARAM) { return _to Restart(_retval); }
#define NS_FORWARD_EXTICONSOLE (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD Log(const nsAString & aMsg) { return _to Log(aMsg); } \
  NS_SCRIPTABLE NS_IMETHOD Open(void) { return _to Open(); }
#define NS_FORWARD_EXTIEVENTITEM (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  NS_SCRIPTABLE NS_IMETHOD GetData(nsIVariant **aData) { return _to GetData(aData); } \
  NS_SCRIPTABLE NS_IMETHOD PreventDefault(void) { return _to PreventDefault(); }
#define NS_FORWARD_EXTIEVENTLISTENER (   _to  )     NS_SCRIPTABLE NS_IMETHOD HandleEvent(extIEventItem *aEvent) { return _to HandleEvent(aEvent); }
#define NS_FORWARD_EXTIEVENTS (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD AddListener(const nsAString & aEvent, extIEventListener *aListener) { return _to AddListener(aEvent, aListener); } \
  NS_SCRIPTABLE NS_IMETHOD RemoveListener(const nsAString & aEvent, extIEventListener *aListener) { return _to RemoveListener(aEvent, aListener); }
#define NS_FORWARD_EXTIEXTENSION (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId) { return _to GetId(aId); } \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  NS_SCRIPTABLE NS_IMETHOD GetEnabled(PRBool *aEnabled) { return _to GetEnabled(aEnabled); } \
  NS_SCRIPTABLE NS_IMETHOD GetVersion(nsAString & aVersion) { return _to GetVersion(aVersion); } \
  NS_SCRIPTABLE NS_IMETHOD GetFirstRun(PRBool *aFirstRun) { return _to GetFirstRun(aFirstRun); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrefs(extIPreferenceBranch **aPrefs) { return _to GetPrefs(aPrefs); } \
  NS_SCRIPTABLE NS_IMETHOD GetStorage(extISessionStorage **aStorage) { return _to GetStorage(aStorage); } \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents) { return _to GetEvents(aEvents); }
#define NS_FORWARD_EXTIEXTENSIONS (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetAll(nsIVariant **aAll) { return _to GetAll(aAll); } \
  NS_SCRIPTABLE NS_IMETHOD Has(const nsAString & aId, PRBool *_retval NS_OUTPARAM) { return _to Has(aId, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & aId, extIExtension **_retval NS_OUTPARAM) { return _to Get(aId, _retval); }
#define NS_FORWARD_EXTIEXTENSIONSCALLBACK (   _to  )     NS_SCRIPTABLE NS_IMETHOD Callback(nsIVariant *extensions) { return _to Callback(extensions); }
#define NS_FORWARD_EXTIPREFERENCE (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  NS_SCRIPTABLE NS_IMETHOD GetValue(nsIVariant **aValue) { return _to GetValue(aValue); } \
  NS_SCRIPTABLE NS_IMETHOD SetValue(nsIVariant *aValue) { return _to SetValue(aValue); } \
  NS_SCRIPTABLE NS_IMETHOD GetLocked(PRBool *aLocked) { return _to GetLocked(aLocked); } \
  NS_SCRIPTABLE NS_IMETHOD SetLocked(PRBool aLocked) { return _to SetLocked(aLocked); } \
  NS_SCRIPTABLE NS_IMETHOD GetModified(PRBool *aModified) { return _to GetModified(aModified); } \
  NS_SCRIPTABLE NS_IMETHOD GetBranch(extIPreferenceBranch **aBranch) { return _to GetBranch(aBranch); } \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents) { return _to GetEvents(aEvents); } \
  NS_SCRIPTABLE NS_IMETHOD Reset(void) { return _to Reset(); }
#define NS_FORWARD_EXTIPREFERENCEBRANCH (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetRoot(nsAString & aRoot) { return _to GetRoot(aRoot); } \
  NS_SCRIPTABLE NS_IMETHOD GetAll(nsIVariant **aAll) { return _to GetAll(aAll); } \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents) { return _to GetEvents(aEvents); } \
  NS_SCRIPTABLE NS_IMETHOD Has(const nsAString & aName, PRBool *_retval NS_OUTPARAM) { return _to Has(aName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & aName, extIPreference **_retval NS_OUTPARAM) { return _to Get(aName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetValue(const nsAString & aName, nsIVariant *aDefaultValue, nsIVariant **_retval NS_OUTPARAM) { return _to GetValue(aName, aDefaultValue, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aName, nsIVariant *aValue) { return _to SetValue(aName, aValue); } \
  NS_SCRIPTABLE NS_IMETHOD Reset(void) { return _to Reset(); }
#define NS_FORWARD_EXTISESSIONSTORAGE (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents) { return _to GetEvents(aEvents); } \
  NS_SCRIPTABLE NS_IMETHOD Has(const nsAString & aName, PRBool *_retval NS_OUTPARAM) { return _to Has(aName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Set(const nsAString & aName, nsIVariant *aValue) { return _to Set(aName, aValue); } \
  NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & aName, nsIVariant *aDefaultValue, nsIVariant **_retval NS_OUTPARAM) { return _to Get(aName, aDefaultValue, _retval); }
#define NS_FORWARD_SAFE_EXTIAPPLICATION (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_SCRIPTABLE NS_IMETHOD GetVersion(nsAString & aVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersion(aVersion); } \
  NS_SCRIPTABLE NS_IMETHOD GetConsole(extIConsole **aConsole) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConsole(aConsole); } \
  NS_SCRIPTABLE NS_IMETHOD GetExtensions(extIExtensionsCallback *aCallback) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExtensions(aCallback); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrefs(extIPreferenceBranch **aPrefs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefs(aPrefs); } \
  NS_SCRIPTABLE NS_IMETHOD GetStorage(extISessionStorage **aStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStorage(aStorage); } \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEvents(aEvents); } \
  NS_SCRIPTABLE NS_IMETHOD Quit(PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Quit(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD Restart(PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Restart(_retval); }
#define NS_FORWARD_SAFE_EXTICONSOLE (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD Log(const nsAString & aMsg) { return !_to ? NS_ERROR_NULL_POINTER : _to->Log(aMsg); } \
  NS_SCRIPTABLE NS_IMETHOD Open(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(); }
#define NS_FORWARD_SAFE_EXTIEVENTITEM (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_SCRIPTABLE NS_IMETHOD GetData(nsIVariant **aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  NS_SCRIPTABLE NS_IMETHOD PreventDefault(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->PreventDefault(); }
#define NS_FORWARD_SAFE_EXTIEVENTLISTENER (   _to  )     NS_SCRIPTABLE NS_IMETHOD HandleEvent(extIEventItem *aEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEvent(aEvent); }
#define NS_FORWARD_SAFE_EXTIEVENTS (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD AddListener(const nsAString & aEvent, extIEventListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(aEvent, aListener); } \
  NS_SCRIPTABLE NS_IMETHOD RemoveListener(const nsAString & aEvent, extIEventListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(aEvent, aListener); }
#define NS_FORWARD_SAFE_EXTIEXTENSION (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_SCRIPTABLE NS_IMETHOD GetEnabled(PRBool *aEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnabled(aEnabled); } \
  NS_SCRIPTABLE NS_IMETHOD GetVersion(nsAString & aVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersion(aVersion); } \
  NS_SCRIPTABLE NS_IMETHOD GetFirstRun(PRBool *aFirstRun) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstRun(aFirstRun); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrefs(extIPreferenceBranch **aPrefs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefs(aPrefs); } \
  NS_SCRIPTABLE NS_IMETHOD GetStorage(extISessionStorage **aStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStorage(aStorage); } \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEvents(aEvents); }
#define NS_FORWARD_SAFE_EXTIEXTENSIONS (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetAll(nsIVariant **aAll) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAll(aAll); } \
  NS_SCRIPTABLE NS_IMETHOD Has(const nsAString & aId, PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Has(aId, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & aId, extIExtension **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(aId, _retval); }
#define NS_FORWARD_SAFE_EXTIEXTENSIONSCALLBACK (   _to  )     NS_SCRIPTABLE NS_IMETHOD Callback(nsIVariant *extensions) { return !_to ? NS_ERROR_NULL_POINTER : _to->Callback(extensions); }
#define NS_FORWARD_SAFE_EXTIPREFERENCE (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_SCRIPTABLE NS_IMETHOD GetValue(nsIVariant **aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  NS_SCRIPTABLE NS_IMETHOD SetValue(nsIVariant *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  NS_SCRIPTABLE NS_IMETHOD GetLocked(PRBool *aLocked) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocked(aLocked); } \
  NS_SCRIPTABLE NS_IMETHOD SetLocked(PRBool aLocked) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocked(aLocked); } \
  NS_SCRIPTABLE NS_IMETHOD GetModified(PRBool *aModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetModified(aModified); } \
  NS_SCRIPTABLE NS_IMETHOD GetBranch(extIPreferenceBranch **aBranch) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBranch(aBranch); } \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEvents(aEvents); } \
  NS_SCRIPTABLE NS_IMETHOD Reset(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); }
#define NS_FORWARD_SAFE_EXTIPREFERENCEBRANCH (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetRoot(nsAString & aRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(aRoot); } \
  NS_SCRIPTABLE NS_IMETHOD GetAll(nsIVariant **aAll) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAll(aAll); } \
  NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEvents(aEvents); } \
  NS_SCRIPTABLE NS_IMETHOD Has(const nsAString & aName, PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Has(aName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & aName, extIPreference **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(aName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetValue(const nsAString & aName, nsIVariant *aDefaultValue, nsIVariant **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aName, aDefaultValue, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aName, nsIVariant *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aName, aValue); } \
  NS_SCRIPTABLE NS_IMETHOD Reset(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); }
#define NS_FORWARD_SAFE_EXTISESSIONSTORAGE (   _to  ) 
Value:
NS_SCRIPTABLE NS_IMETHOD GetEvents(extIEvents **aEvents) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEvents(aEvents); } \
  NS_SCRIPTABLE NS_IMETHOD Has(const nsAString & aName, PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Has(aName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Set(const nsAString & aName, nsIVariant *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->Set(aName, aValue); } \
  NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & aName, nsIVariant *aDefaultValue, nsIVariant **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(aName, aDefaultValue, _retval); }
#define NS_NO_VTABLE