LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - xpcIJSModuleLoader.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/xpcIJSModuleLoader.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_xpcIJSModuleLoader_h__
       6             : #define __gen_xpcIJSModuleLoader_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #include "js/Value.h"
      14             : 
      15             : /* For IDL files that don't want to include root IDL files. */
      16             : #ifndef NS_NO_VTABLE
      17             : #define NS_NO_VTABLE
      18             : #endif
      19             : #include "js/TypeDecls.h"
      20             : class nsAXPCNativeCallContext;
      21             : 
      22             : /* starting interface:    xpcIJSModuleLoader */
      23             : #define XPCIJSMODULELOADER_IID_STR "4f94b21f-2920-4bd9-8251-5fb60fb054b2"
      24             : 
      25             : #define XPCIJSMODULELOADER_IID \
      26             :   {0x4f94b21f, 0x2920, 0x4bd9, \
      27             :     { 0x82, 0x51, 0x5f, 0xb6, 0x0f, 0xb0, 0x54, 0xb2 }}
      28             : 
      29           3 : class NS_NO_VTABLE xpcIJSModuleLoader : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(XPCIJSMODULELOADER_IID)
      33             : 
      34             :   /* [implicit_jscontext,optional_argc] jsval import (in AUTF8String aResourceURI, [optional] in jsval targetObj); */
      35             :   NS_IMETHOD Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) = 0;
      36             : 
      37             :   /* [noscript] JSObjectPtr importInto (in AUTF8String aResourceURI, in JSObjectPtr targetObj, in nsAXPCNativeCallContextPtr cc); */
      38             :   NS_IMETHOD ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval) = 0;
      39             : 
      40             :   /* void unload (in AUTF8String aResourceURI); */
      41             :   NS_IMETHOD Unload(const nsACString & aResourceURI) = 0;
      42             : 
      43             :   /* boolean isModuleLoaded (in AUTF8String aResourceURI); */
      44             :   NS_IMETHOD IsModuleLoaded(const nsACString & aResourceURI, bool *_retval) = 0;
      45             : 
      46             :   /* void loadedModules ([optional] out unsigned long length, [array, size_is (length), retval] out string aModules); */
      47             :   NS_IMETHOD LoadedModules(uint32_t *length, char * **aModules) = 0;
      48             : 
      49             :   /* void loadedComponents ([optional] out unsigned long length, [array, size_is (length), retval] out string aComponents); */
      50             :   NS_IMETHOD LoadedComponents(uint32_t *length, char * **aComponents) = 0;
      51             : 
      52             : };
      53             : 
      54             :   NS_DEFINE_STATIC_IID_ACCESSOR(xpcIJSModuleLoader, XPCIJSMODULELOADER_IID)
      55             : 
      56             : /* Use this macro when declaring classes that implement this interface. */
      57             : #define NS_DECL_XPCIJSMODULELOADER \
      58             :   NS_IMETHOD Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override; \
      59             :   NS_IMETHOD ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval) override; \
      60             :   NS_IMETHOD Unload(const nsACString & aResourceURI) override; \
      61             :   NS_IMETHOD IsModuleLoaded(const nsACString & aResourceURI, bool *_retval) override; \
      62             :   NS_IMETHOD LoadedModules(uint32_t *length, char * **aModules) override; \
      63             :   NS_IMETHOD LoadedComponents(uint32_t *length, char * **aComponents) override; 
      64             : 
      65             : /* Use this macro when declaring the members of this interface when the
      66             :    class doesn't implement the interface. This is useful for forwarding. */
      67             : #define NS_DECL_NON_VIRTUAL_XPCIJSMODULELOADER \
      68             :   nsresult Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval); \
      69             :   nsresult ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval); \
      70             :   nsresult Unload(const nsACString & aResourceURI); \
      71             :   nsresult IsModuleLoaded(const nsACString & aResourceURI, bool *_retval); \
      72             :   nsresult LoadedModules(uint32_t *length, char * **aModules); \
      73             :   nsresult LoadedComponents(uint32_t *length, char * **aComponents); 
      74             : 
      75             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      76             : #define NS_FORWARD_XPCIJSMODULELOADER(_to) \
      77             :   NS_IMETHOD Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return _to Import(aResourceURI, targetObj, cx, _argc, _retval); } \
      78             :   NS_IMETHOD ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval) override { return _to ImportInto(aResourceURI, targetObj, cc, _retval); } \
      79             :   NS_IMETHOD Unload(const nsACString & aResourceURI) override { return _to Unload(aResourceURI); } \
      80             :   NS_IMETHOD IsModuleLoaded(const nsACString & aResourceURI, bool *_retval) override { return _to IsModuleLoaded(aResourceURI, _retval); } \
      81             :   NS_IMETHOD LoadedModules(uint32_t *length, char * **aModules) override { return _to LoadedModules(length, aModules); } \
      82             :   NS_IMETHOD LoadedComponents(uint32_t *length, char * **aComponents) override { return _to LoadedComponents(length, aComponents); } 
      83             : 
      84             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      85             : #define NS_FORWARD_SAFE_XPCIJSMODULELOADER(_to) \
      86             :   NS_IMETHOD Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Import(aResourceURI, targetObj, cx, _argc, _retval); } \
      87             :   NS_IMETHOD ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportInto(aResourceURI, targetObj, cc, _retval); } \
      88             :   NS_IMETHOD Unload(const nsACString & aResourceURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Unload(aResourceURI); } \
      89             :   NS_IMETHOD IsModuleLoaded(const nsACString & aResourceURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsModuleLoaded(aResourceURI, _retval); } \
      90             :   NS_IMETHOD LoadedModules(uint32_t *length, char * **aModules) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadedModules(length, aModules); } \
      91             :   NS_IMETHOD LoadedComponents(uint32_t *length, char * **aComponents) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadedComponents(length, aComponents); } 
      92             : 
      93             : #if 0
      94             : /* Use the code below as a template for the implementation class for this interface. */
      95             : 
      96             : /* Header file */
      97             : class _MYCLASS_ : public xpcIJSModuleLoader
      98             : {
      99             : public:
     100             :   NS_DECL_ISUPPORTS
     101             :   NS_DECL_XPCIJSMODULELOADER
     102             : 
     103             :   _MYCLASS_();
     104             : 
     105             : private:
     106             :   ~_MYCLASS_();
     107             : 
     108             : protected:
     109             :   /* additional members */
     110             : };
     111             : 
     112             : /* Implementation file */
     113             : NS_IMPL_ISUPPORTS(_MYCLASS_, xpcIJSModuleLoader)
     114             : 
     115             : _MYCLASS_::_MYCLASS_()
     116             : {
     117             :   /* member initializers and constructor code */
     118             : }
     119             : 
     120             : _MYCLASS_::~_MYCLASS_()
     121             : {
     122             :   /* destructor code */
     123             : }
     124             : 
     125             : /* [implicit_jscontext,optional_argc] jsval import (in AUTF8String aResourceURI, [optional] in jsval targetObj); */
     126             : NS_IMETHODIMP _MYCLASS_::Import(const nsACString & aResourceURI, JS::HandleValue targetObj, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval)
     127             : {
     128             :     return NS_ERROR_NOT_IMPLEMENTED;
     129             : }
     130             : 
     131             : /* [noscript] JSObjectPtr importInto (in AUTF8String aResourceURI, in JSObjectPtr targetObj, in nsAXPCNativeCallContextPtr cc); */
     132             : NS_IMETHODIMP _MYCLASS_::ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval)
     133             : {
     134             :     return NS_ERROR_NOT_IMPLEMENTED;
     135             : }
     136             : 
     137             : /* void unload (in AUTF8String aResourceURI); */
     138             : NS_IMETHODIMP _MYCLASS_::Unload(const nsACString & aResourceURI)
     139             : {
     140             :     return NS_ERROR_NOT_IMPLEMENTED;
     141             : }
     142             : 
     143             : /* boolean isModuleLoaded (in AUTF8String aResourceURI); */
     144             : NS_IMETHODIMP _MYCLASS_::IsModuleLoaded(const nsACString & aResourceURI, bool *_retval)
     145             : {
     146             :     return NS_ERROR_NOT_IMPLEMENTED;
     147             : }
     148             : 
     149             : /* void loadedModules ([optional] out unsigned long length, [array, size_is (length), retval] out string aModules); */
     150             : NS_IMETHODIMP _MYCLASS_::LoadedModules(uint32_t *length, char * **aModules)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* void loadedComponents ([optional] out unsigned long length, [array, size_is (length), retval] out string aComponents); */
     156             : NS_IMETHODIMP _MYCLASS_::LoadedComponents(uint32_t *length, char * **aComponents)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* End of implementation class template. */
     162             : #endif
     163             : 
     164             : 
     165             : #endif /* __gen_xpcIJSModuleLoader_h__ */

Generated by: LCOV version 1.13