LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIBackgroundChannelRegistrar.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/nsIBackgroundChannelRegistrar.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIBackgroundChannelRegistrar_h__
       6             : #define __gen_nsIBackgroundChannelRegistrar_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : namespace mozilla {
      18             : namespace net {
      19             : class HttpBackgroundChannelParent;
      20             : class HttpChannelParent;
      21             : }
      22             : }
      23             : 
      24             : /* starting interface:    nsIBackgroundChannelRegistrar */
      25             : #define NS_IBACKGROUNDCHANNELREGISTRAR_IID_STR "8acaa9b1-f0c4-4ade-baeb-39b0d4b96e5b"
      26             : 
      27             : #define NS_IBACKGROUNDCHANNELREGISTRAR_IID \
      28             :   {0x8acaa9b1, 0xf0c4, 0x4ade, \
      29             :     { 0xba, 0xeb, 0x39, 0xb0, 0xd4, 0xb9, 0x6e, 0x5b }}
      30             : 
      31           1 : class NS_NO_VTABLE nsIBackgroundChannelRegistrar : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBACKGROUNDCHANNELREGISTRAR_IID)
      35             : 
      36             :   /* [noscript,nostdcall,notxpcom] void linkHttpChannel (in uint64_t aKey, in HttpChannelParent aChannel); */
      37             :   virtual void LinkHttpChannel(uint64_t aKey, mozilla::net::HttpChannelParent *aChannel) = 0;
      38             : 
      39             :   /* [noscript,nostdcall,notxpcom] void linkBackgroundChannel (in uint64_t aKey, in HttpBackgroundChannelParent aBgChannel); */
      40             :   virtual void LinkBackgroundChannel(uint64_t aKey, mozilla::net::HttpBackgroundChannelParent *aBgChannel) = 0;
      41             : 
      42             :   /* [noscript,nostdcall,notxpcom] void deleteChannel (in uint64_t aKey); */
      43             :   virtual void DeleteChannel(uint64_t aKey) = 0;
      44             : 
      45             : };
      46             : 
      47             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIBackgroundChannelRegistrar, NS_IBACKGROUNDCHANNELREGISTRAR_IID)
      48             : 
      49             : /* Use this macro when declaring classes that implement this interface. */
      50             : #define NS_DECL_NSIBACKGROUNDCHANNELREGISTRAR \
      51             :   virtual void LinkHttpChannel(uint64_t aKey, mozilla::net::HttpChannelParent *aChannel) override; \
      52             :   virtual void LinkBackgroundChannel(uint64_t aKey, mozilla::net::HttpBackgroundChannelParent *aBgChannel) override; \
      53             :   virtual void DeleteChannel(uint64_t aKey) override; 
      54             : 
      55             : /* Use this macro when declaring the members of this interface when the
      56             :    class doesn't implement the interface. This is useful for forwarding. */
      57             : #define NS_DECL_NON_VIRTUAL_NSIBACKGROUNDCHANNELREGISTRAR \
      58             :   void LinkHttpChannel(uint64_t aKey, mozilla::net::HttpChannelParent *aChannel); \
      59             :   void LinkBackgroundChannel(uint64_t aKey, mozilla::net::HttpBackgroundChannelParent *aBgChannel); \
      60             :   void DeleteChannel(uint64_t aKey); 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      63             : #define NS_FORWARD_NSIBACKGROUNDCHANNELREGISTRAR(_to) \
      64             :   virtual void LinkHttpChannel(uint64_t aKey, mozilla::net::HttpChannelParent *aChannel) override { return _to LinkHttpChannel(aKey, aChannel); } \
      65             :   virtual void LinkBackgroundChannel(uint64_t aKey, mozilla::net::HttpBackgroundChannelParent *aBgChannel) override { return _to LinkBackgroundChannel(aKey, aBgChannel); } \
      66             :   virtual void DeleteChannel(uint64_t aKey) override { return _to DeleteChannel(aKey); } 
      67             : 
      68             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      69             : #define NS_FORWARD_SAFE_NSIBACKGROUNDCHANNELREGISTRAR(_to) \
      70             :   virtual void LinkHttpChannel(uint64_t aKey, mozilla::net::HttpChannelParent *aChannel) override; \
      71             :   virtual void LinkBackgroundChannel(uint64_t aKey, mozilla::net::HttpBackgroundChannelParent *aBgChannel) override; \
      72             :   virtual void DeleteChannel(uint64_t aKey) override; 
      73             : 
      74             : #if 0
      75             : /* Use the code below as a template for the implementation class for this interface. */
      76             : 
      77             : /* Header file */
      78             : class nsBackgroundChannelRegistrar : public nsIBackgroundChannelRegistrar
      79             : {
      80             : public:
      81             :   NS_DECL_ISUPPORTS
      82             :   NS_DECL_NSIBACKGROUNDCHANNELREGISTRAR
      83             : 
      84             :   nsBackgroundChannelRegistrar();
      85             : 
      86             : private:
      87             :   ~nsBackgroundChannelRegistrar();
      88             : 
      89             : protected:
      90             :   /* additional members */
      91             : };
      92             : 
      93             : /* Implementation file */
      94             : NS_IMPL_ISUPPORTS(nsBackgroundChannelRegistrar, nsIBackgroundChannelRegistrar)
      95             : 
      96             : nsBackgroundChannelRegistrar::nsBackgroundChannelRegistrar()
      97             : {
      98             :   /* member initializers and constructor code */
      99             : }
     100             : 
     101             : nsBackgroundChannelRegistrar::~nsBackgroundChannelRegistrar()
     102             : {
     103             :   /* destructor code */
     104             : }
     105             : 
     106             : /* [noscript,nostdcall,notxpcom] void linkHttpChannel (in uint64_t aKey, in HttpChannelParent aChannel); */
     107             : void nsBackgroundChannelRegistrar::LinkHttpChannel(uint64_t aKey, mozilla::net::HttpChannelParent *aChannel)
     108             : {
     109             :     return NS_ERROR_NOT_IMPLEMENTED;
     110             : }
     111             : 
     112             : /* [noscript,nostdcall,notxpcom] void linkBackgroundChannel (in uint64_t aKey, in HttpBackgroundChannelParent aBgChannel); */
     113             : void nsBackgroundChannelRegistrar::LinkBackgroundChannel(uint64_t aKey, mozilla::net::HttpBackgroundChannelParent *aBgChannel)
     114             : {
     115             :     return NS_ERROR_NOT_IMPLEMENTED;
     116             : }
     117             : 
     118             : /* [noscript,nostdcall,notxpcom] void deleteChannel (in uint64_t aKey); */
     119             : void nsBackgroundChannelRegistrar::DeleteChannel(uint64_t aKey)
     120             : {
     121             :     return NS_ERROR_NOT_IMPLEMENTED;
     122             : }
     123             : 
     124             : /* End of implementation class template. */
     125             : #endif
     126             : 
     127             : 
     128             : #endif /* __gen_nsIBackgroundChannelRegistrar_h__ */

Generated by: LCOV version 1.13