LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIParentChannel.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/nsIParentChannel.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIParentChannel_h__
       6             : #define __gen_nsIParentChannel_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIStreamListener_h__
      10             : #include "nsIStreamListener.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 nsITabParent; /* forward declaration */
      18             : 
      19             : namespace mozilla {
      20             : namespace net {
      21             : class HttpChannelParentListener;
      22             : }
      23             : }
      24             : 
      25             : /* starting interface:    nsIParentChannel */
      26             : #define NS_IPARENTCHANNEL_IID_STR "e0fc4801-6030-4653-a59f-1fb282bd1a04"
      27             : 
      28             : #define NS_IPARENTCHANNEL_IID \
      29             :   {0xe0fc4801, 0x6030, 0x4653, \
      30             :     { 0xa5, 0x9f, 0x1f, 0xb2, 0x82, 0xbd, 0x1a, 0x04 }}
      31             : 
      32           3 : class NS_NO_VTABLE nsIParentChannel : public nsIStreamListener {
      33             :  public:
      34             : 
      35             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPARENTCHANNEL_IID)
      36             : 
      37             :   /* [noscript] void setParentListener (in HttpChannelParentListener listener); */
      38             :   NS_IMETHOD SetParentListener(mozilla::net::HttpChannelParentListener *listener) = 0;
      39             : 
      40             :   /* [noscript] void notifyTrackingProtectionDisabled (); */
      41             :   NS_IMETHOD NotifyTrackingProtectionDisabled(void) = 0;
      42             : 
      43             :   /* [noscript] void setClassifierMatchedInfo (in ACString aList, in ACString aProvider, in ACString aPrefix); */
      44             :   NS_IMETHOD SetClassifierMatchedInfo(const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix) = 0;
      45             : 
      46             :   /* [noscript] void notifyTrackingResource (); */
      47             :   NS_IMETHOD NotifyTrackingResource(void) = 0;
      48             : 
      49             :   /* void delete (); */
      50             :   NS_IMETHOD Delete(void) = 0;
      51             : 
      52             : };
      53             : 
      54             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIParentChannel, NS_IPARENTCHANNEL_IID)
      55             : 
      56             : /* Use this macro when declaring classes that implement this interface. */
      57             : #define NS_DECL_NSIPARENTCHANNEL \
      58             :   NS_IMETHOD SetParentListener(mozilla::net::HttpChannelParentListener *listener) override; \
      59             :   NS_IMETHOD NotifyTrackingProtectionDisabled(void) override; \
      60             :   NS_IMETHOD SetClassifierMatchedInfo(const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix) override; \
      61             :   NS_IMETHOD NotifyTrackingResource(void) override; \
      62             :   NS_IMETHOD Delete(void) override; 
      63             : 
      64             : /* Use this macro when declaring the members of this interface when the
      65             :    class doesn't implement the interface. This is useful for forwarding. */
      66             : #define NS_DECL_NON_VIRTUAL_NSIPARENTCHANNEL \
      67             :   nsresult SetParentListener(mozilla::net::HttpChannelParentListener *listener); \
      68             :   nsresult NotifyTrackingProtectionDisabled(void); \
      69             :   nsresult SetClassifierMatchedInfo(const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix); \
      70             :   nsresult NotifyTrackingResource(void); \
      71             :   nsresult Delete(void); 
      72             : 
      73             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      74             : #define NS_FORWARD_NSIPARENTCHANNEL(_to) \
      75             :   NS_IMETHOD SetParentListener(mozilla::net::HttpChannelParentListener *listener) override { return _to SetParentListener(listener); } \
      76             :   NS_IMETHOD NotifyTrackingProtectionDisabled(void) override { return _to NotifyTrackingProtectionDisabled(); } \
      77             :   NS_IMETHOD SetClassifierMatchedInfo(const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix) override { return _to SetClassifierMatchedInfo(aList, aProvider, aPrefix); } \
      78             :   NS_IMETHOD NotifyTrackingResource(void) override { return _to NotifyTrackingResource(); } \
      79             :   NS_IMETHOD Delete(void) override { return _to Delete(); } 
      80             : 
      81             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      82             : #define NS_FORWARD_SAFE_NSIPARENTCHANNEL(_to) \
      83             :   NS_IMETHOD SetParentListener(mozilla::net::HttpChannelParentListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentListener(listener); } \
      84             :   NS_IMETHOD NotifyTrackingProtectionDisabled(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyTrackingProtectionDisabled(); } \
      85             :   NS_IMETHOD SetClassifierMatchedInfo(const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClassifierMatchedInfo(aList, aProvider, aPrefix); } \
      86             :   NS_IMETHOD NotifyTrackingResource(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyTrackingResource(); } \
      87             :   NS_IMETHOD Delete(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Delete(); } 
      88             : 
      89             : #if 0
      90             : /* Use the code below as a template for the implementation class for this interface. */
      91             : 
      92             : /* Header file */
      93             : class nsParentChannel : public nsIParentChannel
      94             : {
      95             : public:
      96             :   NS_DECL_ISUPPORTS
      97             :   NS_DECL_NSIPARENTCHANNEL
      98             : 
      99             :   nsParentChannel();
     100             : 
     101             : private:
     102             :   ~nsParentChannel();
     103             : 
     104             : protected:
     105             :   /* additional members */
     106             : };
     107             : 
     108             : /* Implementation file */
     109             : NS_IMPL_ISUPPORTS(nsParentChannel, nsIParentChannel)
     110             : 
     111             : nsParentChannel::nsParentChannel()
     112             : {
     113             :   /* member initializers and constructor code */
     114             : }
     115             : 
     116             : nsParentChannel::~nsParentChannel()
     117             : {
     118             :   /* destructor code */
     119             : }
     120             : 
     121             : /* [noscript] void setParentListener (in HttpChannelParentListener listener); */
     122             : NS_IMETHODIMP nsParentChannel::SetParentListener(mozilla::net::HttpChannelParentListener *listener)
     123             : {
     124             :     return NS_ERROR_NOT_IMPLEMENTED;
     125             : }
     126             : 
     127             : /* [noscript] void notifyTrackingProtectionDisabled (); */
     128             : NS_IMETHODIMP nsParentChannel::NotifyTrackingProtectionDisabled()
     129             : {
     130             :     return NS_ERROR_NOT_IMPLEMENTED;
     131             : }
     132             : 
     133             : /* [noscript] void setClassifierMatchedInfo (in ACString aList, in ACString aProvider, in ACString aPrefix); */
     134             : NS_IMETHODIMP nsParentChannel::SetClassifierMatchedInfo(const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix)
     135             : {
     136             :     return NS_ERROR_NOT_IMPLEMENTED;
     137             : }
     138             : 
     139             : /* [noscript] void notifyTrackingResource (); */
     140             : NS_IMETHODIMP nsParentChannel::NotifyTrackingResource()
     141             : {
     142             :     return NS_ERROR_NOT_IMPLEMENTED;
     143             : }
     144             : 
     145             : /* void delete (); */
     146             : NS_IMETHODIMP nsParentChannel::Delete()
     147             : {
     148             :     return NS_ERROR_NOT_IMPLEMENTED;
     149             : }
     150             : 
     151             : /* End of implementation class template. */
     152             : #endif
     153             : 
     154             : 
     155             : #endif /* __gen_nsIParentChannel_h__ */

Generated by: LCOV version 1.13