LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIUrlClassifierPrefixSet.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/nsIUrlClassifierPrefixSet.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIUrlClassifierPrefixSet_h__
       6             : #define __gen_nsIUrlClassifierPrefixSet_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIFile_h__
      14             : #include "nsIFile.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : 
      22             : /* starting interface:    nsIUrlClassifierPrefixSet */
      23             : #define NS_IURLCLASSIFIERPREFIXSET_IID_STR "3d8579f0-75fa-4e00-ba41-38661d5b5d17"
      24             : 
      25             : #define NS_IURLCLASSIFIERPREFIXSET_IID \
      26             :   {0x3d8579f0, 0x75fa, 0x4e00, \
      27             :     { 0xba, 0x41, 0x38, 0x66, 0x1d, 0x5b, 0x5d, 0x17 }}
      28             : 
      29          13 : class NS_NO_VTABLE nsIUrlClassifierPrefixSet : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLCLASSIFIERPREFIXSET_IID)
      33             : 
      34             :   /* void init (in ACString aName); */
      35             :   NS_IMETHOD Init(const nsACString & aName) = 0;
      36             : 
      37             :   /* void setPrefixes ([array, size_is (aLength), const] in unsigned long aPrefixes, in unsigned long aLength); */
      38             :   NS_IMETHOD SetPrefixes(const uint32_t *aPrefixes, uint32_t aLength) = 0;
      39             : 
      40             :   /* void getPrefixes (out unsigned long aCount, [array, size_is (aCount), retval] out unsigned long aPrefixes); */
      41             :   NS_IMETHOD GetPrefixes(uint32_t *aCount, uint32_t **aPrefixes) = 0;
      42             : 
      43             :   /* boolean contains (in unsigned long aPrefix); */
      44             :   NS_IMETHOD Contains(uint32_t aPrefix, bool *_retval) = 0;
      45             : 
      46             :   /* boolean isEmpty (); */
      47             :   NS_IMETHOD IsEmpty(bool *_retval) = 0;
      48             : 
      49             :   /* void loadFromFile (in nsIFile aFile); */
      50             :   NS_IMETHOD LoadFromFile(nsIFile *aFile) = 0;
      51             : 
      52             :   /* void storeToFile (in nsIFile aFile); */
      53             :   NS_IMETHOD StoreToFile(nsIFile *aFile) = 0;
      54             : 
      55             : };
      56             : 
      57             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUrlClassifierPrefixSet, NS_IURLCLASSIFIERPREFIXSET_IID)
      58             : 
      59             : /* Use this macro when declaring classes that implement this interface. */
      60             : #define NS_DECL_NSIURLCLASSIFIERPREFIXSET \
      61             :   NS_IMETHOD Init(const nsACString & aName) override; \
      62             :   NS_IMETHOD SetPrefixes(const uint32_t *aPrefixes, uint32_t aLength) override; \
      63             :   NS_IMETHOD GetPrefixes(uint32_t *aCount, uint32_t **aPrefixes) override; \
      64             :   NS_IMETHOD Contains(uint32_t aPrefix, bool *_retval) override; \
      65             :   NS_IMETHOD IsEmpty(bool *_retval) override; \
      66             :   NS_IMETHOD LoadFromFile(nsIFile *aFile) override; \
      67             :   NS_IMETHOD StoreToFile(nsIFile *aFile) override; 
      68             : 
      69             : /* Use this macro when declaring the members of this interface when the
      70             :    class doesn't implement the interface. This is useful for forwarding. */
      71             : #define NS_DECL_NON_VIRTUAL_NSIURLCLASSIFIERPREFIXSET \
      72             :   nsresult Init(const nsACString & aName); \
      73             :   nsresult SetPrefixes(const uint32_t *aPrefixes, uint32_t aLength); \
      74             :   nsresult GetPrefixes(uint32_t *aCount, uint32_t **aPrefixes); \
      75             :   nsresult Contains(uint32_t aPrefix, bool *_retval); \
      76             :   nsresult IsEmpty(bool *_retval); \
      77             :   nsresult LoadFromFile(nsIFile *aFile); \
      78             :   nsresult StoreToFile(nsIFile *aFile); 
      79             : 
      80             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      81             : #define NS_FORWARD_NSIURLCLASSIFIERPREFIXSET(_to) \
      82             :   NS_IMETHOD Init(const nsACString & aName) override { return _to Init(aName); } \
      83             :   NS_IMETHOD SetPrefixes(const uint32_t *aPrefixes, uint32_t aLength) override { return _to SetPrefixes(aPrefixes, aLength); } \
      84             :   NS_IMETHOD GetPrefixes(uint32_t *aCount, uint32_t **aPrefixes) override { return _to GetPrefixes(aCount, aPrefixes); } \
      85             :   NS_IMETHOD Contains(uint32_t aPrefix, bool *_retval) override { return _to Contains(aPrefix, _retval); } \
      86             :   NS_IMETHOD IsEmpty(bool *_retval) override { return _to IsEmpty(_retval); } \
      87             :   NS_IMETHOD LoadFromFile(nsIFile *aFile) override { return _to LoadFromFile(aFile); } \
      88             :   NS_IMETHOD StoreToFile(nsIFile *aFile) override { return _to StoreToFile(aFile); } 
      89             : 
      90             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      91             : #define NS_FORWARD_SAFE_NSIURLCLASSIFIERPREFIXSET(_to) \
      92             :   NS_IMETHOD Init(const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aName); } \
      93             :   NS_IMETHOD SetPrefixes(const uint32_t *aPrefixes, uint32_t aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrefixes(aPrefixes, aLength); } \
      94             :   NS_IMETHOD GetPrefixes(uint32_t *aCount, uint32_t **aPrefixes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefixes(aCount, aPrefixes); } \
      95             :   NS_IMETHOD Contains(uint32_t aPrefix, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Contains(aPrefix, _retval); } \
      96             :   NS_IMETHOD IsEmpty(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEmpty(_retval); } \
      97             :   NS_IMETHOD LoadFromFile(nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadFromFile(aFile); } \
      98             :   NS_IMETHOD StoreToFile(nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StoreToFile(aFile); } 
      99             : 
     100             : #if 0
     101             : /* Use the code below as a template for the implementation class for this interface. */
     102             : 
     103             : /* Header file */
     104             : class nsUrlClassifierPrefixSet : public nsIUrlClassifierPrefixSet
     105             : {
     106             : public:
     107             :   NS_DECL_ISUPPORTS
     108             :   NS_DECL_NSIURLCLASSIFIERPREFIXSET
     109             : 
     110             :   nsUrlClassifierPrefixSet();
     111             : 
     112             : private:
     113             :   ~nsUrlClassifierPrefixSet();
     114             : 
     115             : protected:
     116             :   /* additional members */
     117             : };
     118             : 
     119             : /* Implementation file */
     120             : NS_IMPL_ISUPPORTS(nsUrlClassifierPrefixSet, nsIUrlClassifierPrefixSet)
     121             : 
     122             : nsUrlClassifierPrefixSet::nsUrlClassifierPrefixSet()
     123             : {
     124             :   /* member initializers and constructor code */
     125             : }
     126             : 
     127             : nsUrlClassifierPrefixSet::~nsUrlClassifierPrefixSet()
     128             : {
     129             :   /* destructor code */
     130             : }
     131             : 
     132             : /* void init (in ACString aName); */
     133             : NS_IMETHODIMP nsUrlClassifierPrefixSet::Init(const nsACString & aName)
     134             : {
     135             :     return NS_ERROR_NOT_IMPLEMENTED;
     136             : }
     137             : 
     138             : /* void setPrefixes ([array, size_is (aLength), const] in unsigned long aPrefixes, in unsigned long aLength); */
     139             : NS_IMETHODIMP nsUrlClassifierPrefixSet::SetPrefixes(const uint32_t *aPrefixes, uint32_t aLength)
     140             : {
     141             :     return NS_ERROR_NOT_IMPLEMENTED;
     142             : }
     143             : 
     144             : /* void getPrefixes (out unsigned long aCount, [array, size_is (aCount), retval] out unsigned long aPrefixes); */
     145             : NS_IMETHODIMP nsUrlClassifierPrefixSet::GetPrefixes(uint32_t *aCount, uint32_t **aPrefixes)
     146             : {
     147             :     return NS_ERROR_NOT_IMPLEMENTED;
     148             : }
     149             : 
     150             : /* boolean contains (in unsigned long aPrefix); */
     151             : NS_IMETHODIMP nsUrlClassifierPrefixSet::Contains(uint32_t aPrefix, bool *_retval)
     152             : {
     153             :     return NS_ERROR_NOT_IMPLEMENTED;
     154             : }
     155             : 
     156             : /* boolean isEmpty (); */
     157             : NS_IMETHODIMP nsUrlClassifierPrefixSet::IsEmpty(bool *_retval)
     158             : {
     159             :     return NS_ERROR_NOT_IMPLEMENTED;
     160             : }
     161             : 
     162             : /* void loadFromFile (in nsIFile aFile); */
     163             : NS_IMETHODIMP nsUrlClassifierPrefixSet::LoadFromFile(nsIFile *aFile)
     164             : {
     165             :     return NS_ERROR_NOT_IMPLEMENTED;
     166             : }
     167             : 
     168             : /* void storeToFile (in nsIFile aFile); */
     169             : NS_IMETHODIMP nsUrlClassifierPrefixSet::StoreToFile(nsIFile *aFile)
     170             : {
     171             :     return NS_ERROR_NOT_IMPLEMENTED;
     172             : }
     173             : 
     174             : /* End of implementation class template. */
     175             : #endif
     176             : 
     177             : 
     178             : #endif /* __gen_nsIUrlClassifierPrefixSet_h__ */

Generated by: LCOV version 1.13