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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDomainPolicy.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDomainPolicy_h__
       6             : #define __gen_nsIDomainPolicy_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 nsIURI; /* forward declaration */
      18             : 
      19             : class nsIDomainSet; /* forward declaration */
      20             : 
      21             : namespace mozilla {
      22             : namespace dom {
      23             : class DomainPolicyClone;
      24             : }
      25             : }
      26             : 
      27             : /* starting interface:    nsIDomainPolicy */
      28             : #define NS_IDOMAINPOLICY_IID_STR "82b24a20-6701-4d40-a0f9-f5dc7321b555"
      29             : 
      30             : #define NS_IDOMAINPOLICY_IID \
      31             :   {0x82b24a20, 0x6701, 0x4d40, \
      32             :     { 0xa0, 0xf9, 0xf5, 0xdc, 0x73, 0x21, 0xb5, 0x55 }}
      33             : 
      34           0 : class NS_NO_VTABLE nsIDomainPolicy : public nsISupports {
      35             :  public:
      36             : 
      37             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMAINPOLICY_IID)
      38             : 
      39             :   /* readonly attribute nsIDomainSet blacklist; */
      40             :   NS_IMETHOD GetBlacklist(nsIDomainSet * *aBlacklist) = 0;
      41             : 
      42             :   /* readonly attribute nsIDomainSet superBlacklist; */
      43             :   NS_IMETHOD GetSuperBlacklist(nsIDomainSet * *aSuperBlacklist) = 0;
      44             : 
      45             :   /* readonly attribute nsIDomainSet whitelist; */
      46             :   NS_IMETHOD GetWhitelist(nsIDomainSet * *aWhitelist) = 0;
      47             : 
      48             :   /* readonly attribute nsIDomainSet superWhitelist; */
      49             :   NS_IMETHOD GetSuperWhitelist(nsIDomainSet * *aSuperWhitelist) = 0;
      50             : 
      51             :   /* void deactivate (); */
      52             :   NS_IMETHOD Deactivate(void) = 0;
      53             : 
      54             :   /* [noscript,notxpcom] void cloneDomainPolicy (in DomainPolicyClonePtr aClone); */
      55             :   NS_IMETHOD_(void) CloneDomainPolicy(mozilla::dom::DomainPolicyClone *aClone) = 0;
      56             : 
      57             :   /* [noscript,notxpcom] void applyClone (in DomainPolicyCloneConstPtr aClone); */
      58             :   NS_IMETHOD_(void) ApplyClone(const mozilla::dom::DomainPolicyClone *aClone) = 0;
      59             : 
      60             : };
      61             : 
      62             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDomainPolicy, NS_IDOMAINPOLICY_IID)
      63             : 
      64             : /* Use this macro when declaring classes that implement this interface. */
      65             : #define NS_DECL_NSIDOMAINPOLICY \
      66             :   NS_IMETHOD GetBlacklist(nsIDomainSet * *aBlacklist) override; \
      67             :   NS_IMETHOD GetSuperBlacklist(nsIDomainSet * *aSuperBlacklist) override; \
      68             :   NS_IMETHOD GetWhitelist(nsIDomainSet * *aWhitelist) override; \
      69             :   NS_IMETHOD GetSuperWhitelist(nsIDomainSet * *aSuperWhitelist) override; \
      70             :   NS_IMETHOD Deactivate(void) override; \
      71             :   NS_IMETHOD_(void) CloneDomainPolicy(mozilla::dom::DomainPolicyClone *aClone) override; \
      72             :   NS_IMETHOD_(void) ApplyClone(const mozilla::dom::DomainPolicyClone *aClone) override; 
      73             : 
      74             : /* Use this macro when declaring the members of this interface when the
      75             :    class doesn't implement the interface. This is useful for forwarding. */
      76             : #define NS_DECL_NON_VIRTUAL_NSIDOMAINPOLICY \
      77             :   nsresult GetBlacklist(nsIDomainSet * *aBlacklist); \
      78             :   nsresult GetSuperBlacklist(nsIDomainSet * *aSuperBlacklist); \
      79             :   nsresult GetWhitelist(nsIDomainSet * *aWhitelist); \
      80             :   nsresult GetSuperWhitelist(nsIDomainSet * *aSuperWhitelist); \
      81             :   nsresult Deactivate(void); \
      82             :   nsresult_(void) CloneDomainPolicy(mozilla::dom::DomainPolicyClone *aClone); \
      83             :   nsresult_(void) ApplyClone(const mozilla::dom::DomainPolicyClone *aClone); 
      84             : 
      85             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      86             : #define NS_FORWARD_NSIDOMAINPOLICY(_to) \
      87             :   NS_IMETHOD GetBlacklist(nsIDomainSet * *aBlacklist) override { return _to GetBlacklist(aBlacklist); } \
      88             :   NS_IMETHOD GetSuperBlacklist(nsIDomainSet * *aSuperBlacklist) override { return _to GetSuperBlacklist(aSuperBlacklist); } \
      89             :   NS_IMETHOD GetWhitelist(nsIDomainSet * *aWhitelist) override { return _to GetWhitelist(aWhitelist); } \
      90             :   NS_IMETHOD GetSuperWhitelist(nsIDomainSet * *aSuperWhitelist) override { return _to GetSuperWhitelist(aSuperWhitelist); } \
      91             :   NS_IMETHOD Deactivate(void) override { return _to Deactivate(); } \
      92             :   NS_IMETHOD_(void) CloneDomainPolicy(mozilla::dom::DomainPolicyClone *aClone) override { return _to CloneDomainPolicy(aClone); } \
      93             :   NS_IMETHOD_(void) ApplyClone(const mozilla::dom::DomainPolicyClone *aClone) override { return _to ApplyClone(aClone); } 
      94             : 
      95             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      96             : #define NS_FORWARD_SAFE_NSIDOMAINPOLICY(_to) \
      97             :   NS_IMETHOD GetBlacklist(nsIDomainSet * *aBlacklist) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlacklist(aBlacklist); } \
      98             :   NS_IMETHOD GetSuperBlacklist(nsIDomainSet * *aSuperBlacklist) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuperBlacklist(aSuperBlacklist); } \
      99             :   NS_IMETHOD GetWhitelist(nsIDomainSet * *aWhitelist) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWhitelist(aWhitelist); } \
     100             :   NS_IMETHOD GetSuperWhitelist(nsIDomainSet * *aSuperWhitelist) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuperWhitelist(aSuperWhitelist); } \
     101             :   NS_IMETHOD Deactivate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Deactivate(); } \
     102             :   NS_IMETHOD_(void) CloneDomainPolicy(mozilla::dom::DomainPolicyClone *aClone) override; \
     103             :   NS_IMETHOD_(void) ApplyClone(const mozilla::dom::DomainPolicyClone *aClone) override; 
     104             : 
     105             : #if 0
     106             : /* Use the code below as a template for the implementation class for this interface. */
     107             : 
     108             : /* Header file */
     109             : class nsDomainPolicy : public nsIDomainPolicy
     110             : {
     111             : public:
     112             :   NS_DECL_ISUPPORTS
     113             :   NS_DECL_NSIDOMAINPOLICY
     114             : 
     115             :   nsDomainPolicy();
     116             : 
     117             : private:
     118             :   ~nsDomainPolicy();
     119             : 
     120             : protected:
     121             :   /* additional members */
     122             : };
     123             : 
     124             : /* Implementation file */
     125             : NS_IMPL_ISUPPORTS(nsDomainPolicy, nsIDomainPolicy)
     126             : 
     127             : nsDomainPolicy::nsDomainPolicy()
     128             : {
     129             :   /* member initializers and constructor code */
     130             : }
     131             : 
     132             : nsDomainPolicy::~nsDomainPolicy()
     133             : {
     134             :   /* destructor code */
     135             : }
     136             : 
     137             : /* readonly attribute nsIDomainSet blacklist; */
     138             : NS_IMETHODIMP nsDomainPolicy::GetBlacklist(nsIDomainSet * *aBlacklist)
     139             : {
     140             :     return NS_ERROR_NOT_IMPLEMENTED;
     141             : }
     142             : 
     143             : /* readonly attribute nsIDomainSet superBlacklist; */
     144             : NS_IMETHODIMP nsDomainPolicy::GetSuperBlacklist(nsIDomainSet * *aSuperBlacklist)
     145             : {
     146             :     return NS_ERROR_NOT_IMPLEMENTED;
     147             : }
     148             : 
     149             : /* readonly attribute nsIDomainSet whitelist; */
     150             : NS_IMETHODIMP nsDomainPolicy::GetWhitelist(nsIDomainSet * *aWhitelist)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* readonly attribute nsIDomainSet superWhitelist; */
     156             : NS_IMETHODIMP nsDomainPolicy::GetSuperWhitelist(nsIDomainSet * *aSuperWhitelist)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* void deactivate (); */
     162             : NS_IMETHODIMP nsDomainPolicy::Deactivate()
     163             : {
     164             :     return NS_ERROR_NOT_IMPLEMENTED;
     165             : }
     166             : 
     167             : /* [noscript,notxpcom] void cloneDomainPolicy (in DomainPolicyClonePtr aClone); */
     168             : NS_IMETHODIMP_(void) nsDomainPolicy::CloneDomainPolicy(mozilla::dom::DomainPolicyClone *aClone)
     169             : {
     170             :     return NS_ERROR_NOT_IMPLEMENTED;
     171             : }
     172             : 
     173             : /* [noscript,notxpcom] void applyClone (in DomainPolicyCloneConstPtr aClone); */
     174             : NS_IMETHODIMP_(void) nsDomainPolicy::ApplyClone(const mozilla::dom::DomainPolicyClone *aClone)
     175             : {
     176             :     return NS_ERROR_NOT_IMPLEMENTED;
     177             : }
     178             : 
     179             : /* End of implementation class template. */
     180             : #endif
     181             : 
     182             : 
     183             : /* starting interface:    nsIDomainSet */
     184             : #define NS_IDOMAINSET_IID_STR "665c981b-0a0f-4229-ac06-a826e02d4f69"
     185             : 
     186             : #define NS_IDOMAINSET_IID \
     187             :   {0x665c981b, 0x0a0f, 0x4229, \
     188             :     { 0xac, 0x06, 0xa8, 0x26, 0xe0, 0x2d, 0x4f, 0x69 }}
     189             : 
     190           0 : class NS_NO_VTABLE nsIDomainSet : public nsISupports {
     191             :  public:
     192             : 
     193             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMAINSET_IID)
     194             : 
     195             :   /* [noscript] readonly attribute uint32_t type; */
     196             :   NS_IMETHOD GetType(uint32_t *aType) = 0;
     197             : 
     198             :   /* void add (in nsIURI aDomain); */
     199             :   NS_IMETHOD Add(nsIURI *aDomain) = 0;
     200             : 
     201             :   /* void remove (in nsIURI aDomain); */
     202             :   NS_IMETHOD Remove(nsIURI *aDomain) = 0;
     203             : 
     204             :   /* void clear (); */
     205             :   NS_IMETHOD Clear(void) = 0;
     206             : 
     207             :   /* bool contains (in nsIURI aDomain); */
     208             :   NS_IMETHOD Contains(nsIURI *aDomain, bool *_retval) = 0;
     209             : 
     210             :   /* bool containsSuperDomain (in nsIURI aDomain); */
     211             :   NS_IMETHOD ContainsSuperDomain(nsIURI *aDomain, bool *_retval) = 0;
     212             : 
     213             : };
     214             : 
     215             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDomainSet, NS_IDOMAINSET_IID)
     216             : 
     217             : /* Use this macro when declaring classes that implement this interface. */
     218             : #define NS_DECL_NSIDOMAINSET \
     219             :   NS_IMETHOD GetType(uint32_t *aType) override; \
     220             :   NS_IMETHOD Add(nsIURI *aDomain) override; \
     221             :   NS_IMETHOD Remove(nsIURI *aDomain) override; \
     222             :   NS_IMETHOD Clear(void) override; \
     223             :   NS_IMETHOD Contains(nsIURI *aDomain, bool *_retval) override; \
     224             :   NS_IMETHOD ContainsSuperDomain(nsIURI *aDomain, bool *_retval) override; 
     225             : 
     226             : /* Use this macro when declaring the members of this interface when the
     227             :    class doesn't implement the interface. This is useful for forwarding. */
     228             : #define NS_DECL_NON_VIRTUAL_NSIDOMAINSET \
     229             :   nsresult GetType(uint32_t *aType); \
     230             :   nsresult Add(nsIURI *aDomain); \
     231             :   nsresult Remove(nsIURI *aDomain); \
     232             :   nsresult Clear(void); \
     233             :   nsresult Contains(nsIURI *aDomain, bool *_retval); \
     234             :   nsresult ContainsSuperDomain(nsIURI *aDomain, bool *_retval); 
     235             : 
     236             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     237             : #define NS_FORWARD_NSIDOMAINSET(_to) \
     238             :   NS_IMETHOD GetType(uint32_t *aType) override { return _to GetType(aType); } \
     239             :   NS_IMETHOD Add(nsIURI *aDomain) override { return _to Add(aDomain); } \
     240             :   NS_IMETHOD Remove(nsIURI *aDomain) override { return _to Remove(aDomain); } \
     241             :   NS_IMETHOD Clear(void) override { return _to Clear(); } \
     242             :   NS_IMETHOD Contains(nsIURI *aDomain, bool *_retval) override { return _to Contains(aDomain, _retval); } \
     243             :   NS_IMETHOD ContainsSuperDomain(nsIURI *aDomain, bool *_retval) override { return _to ContainsSuperDomain(aDomain, _retval); } 
     244             : 
     245             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     246             : #define NS_FORWARD_SAFE_NSIDOMAINSET(_to) \
     247             :   NS_IMETHOD GetType(uint32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
     248             :   NS_IMETHOD Add(nsIURI *aDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(aDomain); } \
     249             :   NS_IMETHOD Remove(nsIURI *aDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(aDomain); } \
     250             :   NS_IMETHOD Clear(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } \
     251             :   NS_IMETHOD Contains(nsIURI *aDomain, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Contains(aDomain, _retval); } \
     252             :   NS_IMETHOD ContainsSuperDomain(nsIURI *aDomain, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsSuperDomain(aDomain, _retval); } 
     253             : 
     254             : #if 0
     255             : /* Use the code below as a template for the implementation class for this interface. */
     256             : 
     257             : /* Header file */
     258             : class nsDomainSet : public nsIDomainSet
     259             : {
     260             : public:
     261             :   NS_DECL_ISUPPORTS
     262             :   NS_DECL_NSIDOMAINSET
     263             : 
     264             :   nsDomainSet();
     265             : 
     266             : private:
     267             :   ~nsDomainSet();
     268             : 
     269             : protected:
     270             :   /* additional members */
     271             : };
     272             : 
     273             : /* Implementation file */
     274             : NS_IMPL_ISUPPORTS(nsDomainSet, nsIDomainSet)
     275             : 
     276             : nsDomainSet::nsDomainSet()
     277             : {
     278             :   /* member initializers and constructor code */
     279             : }
     280             : 
     281             : nsDomainSet::~nsDomainSet()
     282             : {
     283             :   /* destructor code */
     284             : }
     285             : 
     286             : /* [noscript] readonly attribute uint32_t type; */
     287             : NS_IMETHODIMP nsDomainSet::GetType(uint32_t *aType)
     288             : {
     289             :     return NS_ERROR_NOT_IMPLEMENTED;
     290             : }
     291             : 
     292             : /* void add (in nsIURI aDomain); */
     293             : NS_IMETHODIMP nsDomainSet::Add(nsIURI *aDomain)
     294             : {
     295             :     return NS_ERROR_NOT_IMPLEMENTED;
     296             : }
     297             : 
     298             : /* void remove (in nsIURI aDomain); */
     299             : NS_IMETHODIMP nsDomainSet::Remove(nsIURI *aDomain)
     300             : {
     301             :     return NS_ERROR_NOT_IMPLEMENTED;
     302             : }
     303             : 
     304             : /* void clear (); */
     305             : NS_IMETHODIMP nsDomainSet::Clear()
     306             : {
     307             :     return NS_ERROR_NOT_IMPLEMENTED;
     308             : }
     309             : 
     310             : /* bool contains (in nsIURI aDomain); */
     311             : NS_IMETHODIMP nsDomainSet::Contains(nsIURI *aDomain, bool *_retval)
     312             : {
     313             :     return NS_ERROR_NOT_IMPLEMENTED;
     314             : }
     315             : 
     316             : /* bool containsSuperDomain (in nsIURI aDomain); */
     317             : NS_IMETHODIMP nsDomainSet::ContainsSuperDomain(nsIURI *aDomain, bool *_retval)
     318             : {
     319             :     return NS_ERROR_NOT_IMPLEMENTED;
     320             : }
     321             : 
     322             : /* End of implementation class template. */
     323             : #endif
     324             : 
     325             : 
     326             : #endif /* __gen_nsIDomainPolicy_h__ */

Generated by: LCOV version 1.13