LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIHttpChannelChild.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/nsIHttpChannelChild.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIHttpChannelChild_h__
       6             : #define __gen_nsIHttpChannelChild_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             : class nsIPrincipal; /* forward declaration */
      18             : 
      19             : class nsIURI; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIHttpChannelChild */
      23             : #define NS_IHTTPCHANNELCHILD_IID_STR "d02b96ed-2789-4f42-a25c-7abe63de7c18"
      24             : 
      25             : #define NS_IHTTPCHANNELCHILD_IID \
      26             :   {0xd02b96ed, 0x2789, 0x4f42, \
      27             :     { 0xa2, 0x5c, 0x7a, 0xbe, 0x63, 0xde, 0x7c, 0x18 }}
      28             : 
      29           3 : class NS_NO_VTABLE nsIHttpChannelChild : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPCHANNELCHILD_IID)
      33             : 
      34             :   /* [must_use] void addCookiesToRequest (); */
      35             :   MOZ_MUST_USE NS_IMETHOD AddCookiesToRequest(void) = 0;
      36             : 
      37             :   /* [must_use] void forceIntercepted (in boolean postRedirectChannelShouldIntercept, in boolean postRedirectChannelShouldUpgrade); */
      38             :   MOZ_MUST_USE NS_IMETHOD ForceIntercepted(bool postRedirectChannelShouldIntercept, bool postRedirectChannelShouldUpgrade) = 0;
      39             : 
      40             :   /* [must_use] readonly attribute RequestHeaderTuples clientSetRequestHeaders; */
      41             :   MOZ_MUST_USE NS_IMETHOD GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples **aClientSetRequestHeaders) = 0;
      42             : 
      43             :   /* [nostdcall,notxpcom] void GetClientSetCorsPreflightParameters (in OptionalCorsPreflightArgsRef args); */
      44             :   virtual void GetClientSetCorsPreflightParameters(mozilla::OptionalCorsPreflightArgs & args) = 0;
      45             : 
      46             :   /* [must_use] void removeCorsPreflightCacheEntry (in nsIURI aURI, in nsIPrincipal aRequestingPrincipal); */
      47             :   MOZ_MUST_USE NS_IMETHOD RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal) = 0;
      48             : 
      49             : };
      50             : 
      51             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpChannelChild, NS_IHTTPCHANNELCHILD_IID)
      52             : 
      53             : /* Use this macro when declaring classes that implement this interface. */
      54             : #define NS_DECL_NSIHTTPCHANNELCHILD \
      55             :   MOZ_MUST_USE NS_IMETHOD AddCookiesToRequest(void) override; \
      56             :   MOZ_MUST_USE NS_IMETHOD ForceIntercepted(bool postRedirectChannelShouldIntercept, bool postRedirectChannelShouldUpgrade) override; \
      57             :   MOZ_MUST_USE NS_IMETHOD GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples **aClientSetRequestHeaders) override; \
      58             :   virtual void GetClientSetCorsPreflightParameters(mozilla::OptionalCorsPreflightArgs & args) override; \
      59             :   MOZ_MUST_USE NS_IMETHOD RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal) override; 
      60             : 
      61             : /* Use this macro when declaring the members of this interface when the
      62             :    class doesn't implement the interface. This is useful for forwarding. */
      63             : #define NS_DECL_NON_VIRTUAL_NSIHTTPCHANNELCHILD \
      64             :   MOZ_MUST_USE nsresult AddCookiesToRequest(void); \
      65             :   MOZ_MUST_USE nsresult ForceIntercepted(bool postRedirectChannelShouldIntercept, bool postRedirectChannelShouldUpgrade); \
      66             :   MOZ_MUST_USE nsresult GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples **aClientSetRequestHeaders); \
      67             :   void GetClientSetCorsPreflightParameters(mozilla::OptionalCorsPreflightArgs & args); \
      68             :   MOZ_MUST_USE nsresult RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal); 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      71             : #define NS_FORWARD_NSIHTTPCHANNELCHILD(_to) \
      72             :   MOZ_MUST_USE NS_IMETHOD AddCookiesToRequest(void) override { return _to AddCookiesToRequest(); } \
      73             :   MOZ_MUST_USE NS_IMETHOD ForceIntercepted(bool postRedirectChannelShouldIntercept, bool postRedirectChannelShouldUpgrade) override { return _to ForceIntercepted(postRedirectChannelShouldIntercept, postRedirectChannelShouldUpgrade); } \
      74             :   MOZ_MUST_USE NS_IMETHOD GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples **aClientSetRequestHeaders) override { return _to GetClientSetRequestHeaders(aClientSetRequestHeaders); } \
      75             :   virtual void GetClientSetCorsPreflightParameters(mozilla::OptionalCorsPreflightArgs & args) override { return _to GetClientSetCorsPreflightParameters(args); } \
      76             :   MOZ_MUST_USE NS_IMETHOD RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal) override { return _to RemoveCorsPreflightCacheEntry(aURI, aRequestingPrincipal); } 
      77             : 
      78             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      79             : #define NS_FORWARD_SAFE_NSIHTTPCHANNELCHILD(_to) \
      80             :   MOZ_MUST_USE NS_IMETHOD AddCookiesToRequest(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCookiesToRequest(); } \
      81             :   MOZ_MUST_USE NS_IMETHOD ForceIntercepted(bool postRedirectChannelShouldIntercept, bool postRedirectChannelShouldUpgrade) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceIntercepted(postRedirectChannelShouldIntercept, postRedirectChannelShouldUpgrade); } \
      82             :   MOZ_MUST_USE NS_IMETHOD GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples **aClientSetRequestHeaders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientSetRequestHeaders(aClientSetRequestHeaders); } \
      83             :   virtual void GetClientSetCorsPreflightParameters(mozilla::OptionalCorsPreflightArgs & args) override; \
      84             :   MOZ_MUST_USE NS_IMETHOD RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCorsPreflightCacheEntry(aURI, aRequestingPrincipal); } 
      85             : 
      86             : #if 0
      87             : /* Use the code below as a template for the implementation class for this interface. */
      88             : 
      89             : /* Header file */
      90             : class nsHttpChannelChild : public nsIHttpChannelChild
      91             : {
      92             : public:
      93             :   NS_DECL_ISUPPORTS
      94             :   NS_DECL_NSIHTTPCHANNELCHILD
      95             : 
      96             :   nsHttpChannelChild();
      97             : 
      98             : private:
      99             :   ~nsHttpChannelChild();
     100             : 
     101             : protected:
     102             :   /* additional members */
     103             : };
     104             : 
     105             : /* Implementation file */
     106             : NS_IMPL_ISUPPORTS(nsHttpChannelChild, nsIHttpChannelChild)
     107             : 
     108             : nsHttpChannelChild::nsHttpChannelChild()
     109             : {
     110             :   /* member initializers and constructor code */
     111             : }
     112             : 
     113             : nsHttpChannelChild::~nsHttpChannelChild()
     114             : {
     115             :   /* destructor code */
     116             : }
     117             : 
     118             : /* [must_use] void addCookiesToRequest (); */
     119             : MOZ_MUST_USE NS_IMETHODIMP nsHttpChannelChild::AddCookiesToRequest()
     120             : {
     121             :     return NS_ERROR_NOT_IMPLEMENTED;
     122             : }
     123             : 
     124             : /* [must_use] void forceIntercepted (in boolean postRedirectChannelShouldIntercept, in boolean postRedirectChannelShouldUpgrade); */
     125             : MOZ_MUST_USE NS_IMETHODIMP nsHttpChannelChild::ForceIntercepted(bool postRedirectChannelShouldIntercept, bool postRedirectChannelShouldUpgrade)
     126             : {
     127             :     return NS_ERROR_NOT_IMPLEMENTED;
     128             : }
     129             : 
     130             : /* [must_use] readonly attribute RequestHeaderTuples clientSetRequestHeaders; */
     131             : MOZ_MUST_USE NS_IMETHODIMP nsHttpChannelChild::GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples **aClientSetRequestHeaders)
     132             : {
     133             :     return NS_ERROR_NOT_IMPLEMENTED;
     134             : }
     135             : 
     136             : /* [nostdcall,notxpcom] void GetClientSetCorsPreflightParameters (in OptionalCorsPreflightArgsRef args); */
     137             : void nsHttpChannelChild::GetClientSetCorsPreflightParameters(mozilla::OptionalCorsPreflightArgs & args)
     138             : {
     139             :     return NS_ERROR_NOT_IMPLEMENTED;
     140             : }
     141             : 
     142             : /* [must_use] void removeCorsPreflightCacheEntry (in nsIURI aURI, in nsIPrincipal aRequestingPrincipal); */
     143             : MOZ_MUST_USE NS_IMETHODIMP nsHttpChannelChild::RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal)
     144             : {
     145             :     return NS_ERROR_NOT_IMPLEMENTED;
     146             : }
     147             : 
     148             : /* End of implementation class template. */
     149             : #endif
     150             : 
     151             : 
     152             : #endif /* __gen_nsIHttpChannelChild_h__ */

Generated by: LCOV version 1.13