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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIURIClassifier.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIURIClassifier_h__
       6             : #define __gen_nsIURIClassifier_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             : #include "nsTArrayForwardDeclare.h"
      18             : class nsCString;
      19             : class nsIChannel; /* forward declaration */
      20             : 
      21             : class nsIEventTarget; /* forward declaration */
      22             : 
      23             : class nsIPrincipal; /* forward declaration */
      24             : 
      25             : class nsIURI; /* forward declaration */
      26             : 
      27             : 
      28             : /* starting interface:    nsIURIClassifierCallback */
      29             : #define NS_IURICLASSIFIERCALLBACK_IID_STR "8face46e-0c96-470f-af40-0037dcd797bd"
      30             : 
      31             : #define NS_IURICLASSIFIERCALLBACK_IID \
      32             :   {0x8face46e, 0x0c96, 0x470f, \
      33             :     { 0xaf, 0x40, 0x00, 0x37, 0xdc, 0xd7, 0x97, 0xbd }}
      34             : 
      35          72 : class NS_NO_VTABLE nsIURIClassifierCallback : public nsISupports {
      36             :  public:
      37             : 
      38             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURICLASSIFIERCALLBACK_IID)
      39             : 
      40             :   /* void onClassifyComplete (in nsresult aErrorCode, in ACString aList, in ACString aProvider, in ACString aPrefix); */
      41             :   NS_IMETHOD OnClassifyComplete(nsresult aErrorCode, const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix) = 0;
      42             : 
      43             : };
      44             : 
      45             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIURIClassifierCallback, NS_IURICLASSIFIERCALLBACK_IID)
      46             : 
      47             : /* Use this macro when declaring classes that implement this interface. */
      48             : #define NS_DECL_NSIURICLASSIFIERCALLBACK \
      49             :   NS_IMETHOD OnClassifyComplete(nsresult aErrorCode, const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSIURICLASSIFIERCALLBACK \
      54             :   nsresult OnClassifyComplete(nsresult aErrorCode, const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix); 
      55             : 
      56             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      57             : #define NS_FORWARD_NSIURICLASSIFIERCALLBACK(_to) \
      58             :   NS_IMETHOD OnClassifyComplete(nsresult aErrorCode, const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix) override { return _to OnClassifyComplete(aErrorCode, aList, aProvider, aPrefix); } 
      59             : 
      60             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61             : #define NS_FORWARD_SAFE_NSIURICLASSIFIERCALLBACK(_to) \
      62             :   NS_IMETHOD OnClassifyComplete(nsresult aErrorCode, const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnClassifyComplete(aErrorCode, aList, aProvider, aPrefix); } 
      63             : 
      64             : #if 0
      65             : /* Use the code below as a template for the implementation class for this interface. */
      66             : 
      67             : /* Header file */
      68             : class nsURIClassifierCallback : public nsIURIClassifierCallback
      69             : {
      70             : public:
      71             :   NS_DECL_ISUPPORTS
      72             :   NS_DECL_NSIURICLASSIFIERCALLBACK
      73             : 
      74             :   nsURIClassifierCallback();
      75             : 
      76             : private:
      77             :   ~nsURIClassifierCallback();
      78             : 
      79             : protected:
      80             :   /* additional members */
      81             : };
      82             : 
      83             : /* Implementation file */
      84             : NS_IMPL_ISUPPORTS(nsURIClassifierCallback, nsIURIClassifierCallback)
      85             : 
      86             : nsURIClassifierCallback::nsURIClassifierCallback()
      87             : {
      88             :   /* member initializers and constructor code */
      89             : }
      90             : 
      91             : nsURIClassifierCallback::~nsURIClassifierCallback()
      92             : {
      93             :   /* destructor code */
      94             : }
      95             : 
      96             : /* void onClassifyComplete (in nsresult aErrorCode, in ACString aList, in ACString aProvider, in ACString aPrefix); */
      97             : NS_IMETHODIMP nsURIClassifierCallback::OnClassifyComplete(nsresult aErrorCode, const nsACString & aList, const nsACString & aProvider, const nsACString & aPrefix)
      98             : {
      99             :     return NS_ERROR_NOT_IMPLEMENTED;
     100             : }
     101             : 
     102             : /* End of implementation class template. */
     103             : #endif
     104             : 
     105             : 
     106             : /* starting interface:    nsIURIClassifier */
     107             : #define NS_IURICLASSIFIER_IID_STR "596620cc-76e3-4133-9d90-360e59a794cf"
     108             : 
     109             : #define NS_IURICLASSIFIER_IID \
     110             :   {0x596620cc, 0x76e3, 0x4133, \
     111             :     { 0x9d, 0x90, 0x36, 0x0e, 0x59, 0xa7, 0x94, 0xcf }}
     112             : 
     113           1 : class NS_NO_VTABLE nsIURIClassifier : public nsISupports {
     114             :  public:
     115             : 
     116             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURICLASSIFIER_IID)
     117             : 
     118             :   /* boolean classify (in nsIPrincipal aPrincipal, in nsIEventTarget aEventTarget, in boolean aTrackingProtectionEnabled, in nsIURIClassifierCallback aCallback); */
     119             :   NS_IMETHOD Classify(nsIPrincipal *aPrincipal, nsIEventTarget *aEventTarget, bool aTrackingProtectionEnabled, nsIURIClassifierCallback *aCallback, bool *_retval) = 0;
     120             : 
     121             :   /* [noscript] StringArrayRef classifyLocalWithTables (in nsIURI aURI, in ACString aTables); */
     122             :   NS_IMETHOD ClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsTArray<nsCString> & _retval) = 0;
     123             : 
     124             :   /* void asyncClassifyLocalWithTables (in nsIURI aURI, in ACString aTables, in nsIURIClassifierCallback aCallback); */
     125             :   NS_IMETHOD AsyncClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsIURIClassifierCallback *aCallback) = 0;
     126             : 
     127             :   /* ACString classifyLocal (in nsIURI aURI, in ACString aTables); */
     128             :   NS_IMETHOD ClassifyLocal(nsIURI *aURI, const nsACString & aTables, nsACString & _retval) = 0;
     129             : 
     130             : };
     131             : 
     132             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIURIClassifier, NS_IURICLASSIFIER_IID)
     133             : 
     134             : /* Use this macro when declaring classes that implement this interface. */
     135             : #define NS_DECL_NSIURICLASSIFIER \
     136             :   NS_IMETHOD Classify(nsIPrincipal *aPrincipal, nsIEventTarget *aEventTarget, bool aTrackingProtectionEnabled, nsIURIClassifierCallback *aCallback, bool *_retval) override; \
     137             :   NS_IMETHOD ClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsTArray<nsCString> & _retval) override; \
     138             :   NS_IMETHOD AsyncClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsIURIClassifierCallback *aCallback) override; \
     139             :   NS_IMETHOD ClassifyLocal(nsIURI *aURI, const nsACString & aTables, nsACString & _retval) override; 
     140             : 
     141             : /* Use this macro when declaring the members of this interface when the
     142             :    class doesn't implement the interface. This is useful for forwarding. */
     143             : #define NS_DECL_NON_VIRTUAL_NSIURICLASSIFIER \
     144             :   nsresult Classify(nsIPrincipal *aPrincipal, nsIEventTarget *aEventTarget, bool aTrackingProtectionEnabled, nsIURIClassifierCallback *aCallback, bool *_retval); \
     145             :   nsresult ClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsTArray<nsCString> & _retval); \
     146             :   nsresult AsyncClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsIURIClassifierCallback *aCallback); \
     147             :   nsresult ClassifyLocal(nsIURI *aURI, const nsACString & aTables, nsACString & _retval); 
     148             : 
     149             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     150             : #define NS_FORWARD_NSIURICLASSIFIER(_to) \
     151             :   NS_IMETHOD Classify(nsIPrincipal *aPrincipal, nsIEventTarget *aEventTarget, bool aTrackingProtectionEnabled, nsIURIClassifierCallback *aCallback, bool *_retval) override { return _to Classify(aPrincipal, aEventTarget, aTrackingProtectionEnabled, aCallback, _retval); } \
     152             :   NS_IMETHOD ClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsTArray<nsCString> & _retval) override { return _to ClassifyLocalWithTables(aURI, aTables, _retval); } \
     153             :   NS_IMETHOD AsyncClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsIURIClassifierCallback *aCallback) override { return _to AsyncClassifyLocalWithTables(aURI, aTables, aCallback); } \
     154             :   NS_IMETHOD ClassifyLocal(nsIURI *aURI, const nsACString & aTables, nsACString & _retval) override { return _to ClassifyLocal(aURI, aTables, _retval); } 
     155             : 
     156             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     157             : #define NS_FORWARD_SAFE_NSIURICLASSIFIER(_to) \
     158             :   NS_IMETHOD Classify(nsIPrincipal *aPrincipal, nsIEventTarget *aEventTarget, bool aTrackingProtectionEnabled, nsIURIClassifierCallback *aCallback, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Classify(aPrincipal, aEventTarget, aTrackingProtectionEnabled, aCallback, _retval); } \
     159             :   NS_IMETHOD ClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsTArray<nsCString> & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClassifyLocalWithTables(aURI, aTables, _retval); } \
     160             :   NS_IMETHOD AsyncClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsIURIClassifierCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncClassifyLocalWithTables(aURI, aTables, aCallback); } \
     161             :   NS_IMETHOD ClassifyLocal(nsIURI *aURI, const nsACString & aTables, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClassifyLocal(aURI, aTables, _retval); } 
     162             : 
     163             : #if 0
     164             : /* Use the code below as a template for the implementation class for this interface. */
     165             : 
     166             : /* Header file */
     167             : class nsURIClassifier : public nsIURIClassifier
     168             : {
     169             : public:
     170             :   NS_DECL_ISUPPORTS
     171             :   NS_DECL_NSIURICLASSIFIER
     172             : 
     173             :   nsURIClassifier();
     174             : 
     175             : private:
     176             :   ~nsURIClassifier();
     177             : 
     178             : protected:
     179             :   /* additional members */
     180             : };
     181             : 
     182             : /* Implementation file */
     183             : NS_IMPL_ISUPPORTS(nsURIClassifier, nsIURIClassifier)
     184             : 
     185             : nsURIClassifier::nsURIClassifier()
     186             : {
     187             :   /* member initializers and constructor code */
     188             : }
     189             : 
     190             : nsURIClassifier::~nsURIClassifier()
     191             : {
     192             :   /* destructor code */
     193             : }
     194             : 
     195             : /* boolean classify (in nsIPrincipal aPrincipal, in nsIEventTarget aEventTarget, in boolean aTrackingProtectionEnabled, in nsIURIClassifierCallback aCallback); */
     196             : NS_IMETHODIMP nsURIClassifier::Classify(nsIPrincipal *aPrincipal, nsIEventTarget *aEventTarget, bool aTrackingProtectionEnabled, nsIURIClassifierCallback *aCallback, bool *_retval)
     197             : {
     198             :     return NS_ERROR_NOT_IMPLEMENTED;
     199             : }
     200             : 
     201             : /* [noscript] StringArrayRef classifyLocalWithTables (in nsIURI aURI, in ACString aTables); */
     202             : NS_IMETHODIMP nsURIClassifier::ClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsTArray<nsCString> & _retval)
     203             : {
     204             :     return NS_ERROR_NOT_IMPLEMENTED;
     205             : }
     206             : 
     207             : /* void asyncClassifyLocalWithTables (in nsIURI aURI, in ACString aTables, in nsIURIClassifierCallback aCallback); */
     208             : NS_IMETHODIMP nsURIClassifier::AsyncClassifyLocalWithTables(nsIURI *aURI, const nsACString & aTables, nsIURIClassifierCallback *aCallback)
     209             : {
     210             :     return NS_ERROR_NOT_IMPLEMENTED;
     211             : }
     212             : 
     213             : /* ACString classifyLocal (in nsIURI aURI, in ACString aTables); */
     214             : NS_IMETHODIMP nsURIClassifier::ClassifyLocal(nsIURI *aURI, const nsACString & aTables, nsACString & _retval)
     215             : {
     216             :     return NS_ERROR_NOT_IMPLEMENTED;
     217             : }
     218             : 
     219             : /* End of implementation class template. */
     220             : #endif
     221             : 
     222             : 
     223             : #endif /* __gen_nsIURIClassifier_h__ */

Generated by: LCOV version 1.13