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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIUrlClassifierHashCompleter.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIUrlClassifierHashCompleter_h__
       6             : #define __gen_nsIUrlClassifierHashCompleter_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 nsIArray; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsIFullHashMatch */
      21             : #define NS_IFULLHASHMATCH_IID_STR "aabeb50e-d9f7-418e-9469-2cd9608958c0"
      22             : 
      23             : #define NS_IFULLHASHMATCH_IID \
      24             :   {0xaabeb50e, 0xd9f7, 0x418e, \
      25             :     { 0x94, 0x69, 0x2c, 0xd9, 0x60, 0x89, 0x58, 0xc0 }}
      26             : 
      27             : class NS_NO_VTABLE nsIFullHashMatch : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFULLHASHMATCH_IID)
      31             : 
      32             :   /* readonly attribute ACString tableName; */
      33             :   NS_IMETHOD GetTableName(nsACString & aTableName) = 0;
      34             : 
      35             :   /* readonly attribute ACString fullHash; */
      36             :   NS_IMETHOD GetFullHash(nsACString & aFullHash) = 0;
      37             : 
      38             :   /* readonly attribute uint32_t cacheDuration; */
      39             :   NS_IMETHOD GetCacheDuration(uint32_t *aCacheDuration) = 0;
      40             : 
      41             : };
      42             : 
      43             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIFullHashMatch, NS_IFULLHASHMATCH_IID)
      44             : 
      45             : /* Use this macro when declaring classes that implement this interface. */
      46             : #define NS_DECL_NSIFULLHASHMATCH \
      47             :   NS_IMETHOD GetTableName(nsACString & aTableName) override; \
      48             :   NS_IMETHOD GetFullHash(nsACString & aFullHash) override; \
      49             :   NS_IMETHOD GetCacheDuration(uint32_t *aCacheDuration) 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_NSIFULLHASHMATCH \
      54             :   nsresult GetTableName(nsACString & aTableName); \
      55             :   nsresult GetFullHash(nsACString & aFullHash); \
      56             :   nsresult GetCacheDuration(uint32_t *aCacheDuration); 
      57             : 
      58             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      59             : #define NS_FORWARD_NSIFULLHASHMATCH(_to) \
      60             :   NS_IMETHOD GetTableName(nsACString & aTableName) override { return _to GetTableName(aTableName); } \
      61             :   NS_IMETHOD GetFullHash(nsACString & aFullHash) override { return _to GetFullHash(aFullHash); } \
      62             :   NS_IMETHOD GetCacheDuration(uint32_t *aCacheDuration) override { return _to GetCacheDuration(aCacheDuration); } 
      63             : 
      64             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      65             : #define NS_FORWARD_SAFE_NSIFULLHASHMATCH(_to) \
      66             :   NS_IMETHOD GetTableName(nsACString & aTableName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTableName(aTableName); } \
      67             :   NS_IMETHOD GetFullHash(nsACString & aFullHash) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFullHash(aFullHash); } \
      68             :   NS_IMETHOD GetCacheDuration(uint32_t *aCacheDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheDuration(aCacheDuration); } 
      69             : 
      70             : #if 0
      71             : /* Use the code below as a template for the implementation class for this interface. */
      72             : 
      73             : /* Header file */
      74             : class nsFullHashMatch : public nsIFullHashMatch
      75             : {
      76             : public:
      77             :   NS_DECL_ISUPPORTS
      78             :   NS_DECL_NSIFULLHASHMATCH
      79             : 
      80             :   nsFullHashMatch();
      81             : 
      82             : private:
      83             :   ~nsFullHashMatch();
      84             : 
      85             : protected:
      86             :   /* additional members */
      87             : };
      88             : 
      89             : /* Implementation file */
      90             : NS_IMPL_ISUPPORTS(nsFullHashMatch, nsIFullHashMatch)
      91             : 
      92             : nsFullHashMatch::nsFullHashMatch()
      93             : {
      94             :   /* member initializers and constructor code */
      95             : }
      96             : 
      97             : nsFullHashMatch::~nsFullHashMatch()
      98             : {
      99             :   /* destructor code */
     100             : }
     101             : 
     102             : /* readonly attribute ACString tableName; */
     103             : NS_IMETHODIMP nsFullHashMatch::GetTableName(nsACString & aTableName)
     104             : {
     105             :     return NS_ERROR_NOT_IMPLEMENTED;
     106             : }
     107             : 
     108             : /* readonly attribute ACString fullHash; */
     109             : NS_IMETHODIMP nsFullHashMatch::GetFullHash(nsACString & aFullHash)
     110             : {
     111             :     return NS_ERROR_NOT_IMPLEMENTED;
     112             : }
     113             : 
     114             : /* readonly attribute uint32_t cacheDuration; */
     115             : NS_IMETHODIMP nsFullHashMatch::GetCacheDuration(uint32_t *aCacheDuration)
     116             : {
     117             :     return NS_ERROR_NOT_IMPLEMENTED;
     118             : }
     119             : 
     120             : /* End of implementation class template. */
     121             : #endif
     122             : 
     123             : 
     124             : /* starting interface:    nsIUrlClassifierHashCompleterCallback */
     125             : #define NS_IURLCLASSIFIERHASHCOMPLETERCALLBACK_IID_STR "da16de40-df26-414d-bde7-c4faf4504868"
     126             : 
     127             : #define NS_IURLCLASSIFIERHASHCOMPLETERCALLBACK_IID \
     128             :   {0xda16de40, 0xdf26, 0x414d, \
     129             :     { 0xbd, 0xe7, 0xc4, 0xfa, 0xf4, 0x50, 0x48, 0x68 }}
     130             : 
     131           0 : class NS_NO_VTABLE nsIUrlClassifierHashCompleterCallback : public nsISupports {
     132             :  public:
     133             : 
     134             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLCLASSIFIERHASHCOMPLETERCALLBACK_IID)
     135             : 
     136             :   /* void completionV2 (in ACString hash, in ACString table, in uint32_t chunkId); */
     137             :   NS_IMETHOD CompletionV2(const nsACString & hash, const nsACString & table, uint32_t chunkId) = 0;
     138             : 
     139             :   /* void completionV4 (in ACString partialHash, in ACString table, in uint32_t negativeCacheDuration, in nsIArray fullHashes); */
     140             :   NS_IMETHOD CompletionV4(const nsACString & partialHash, const nsACString & table, uint32_t negativeCacheDuration, nsIArray *fullHashes) = 0;
     141             : 
     142             :   /* void completionFinished (in nsresult status); */
     143             :   NS_IMETHOD CompletionFinished(nsresult status) = 0;
     144             : 
     145             : };
     146             : 
     147             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUrlClassifierHashCompleterCallback, NS_IURLCLASSIFIERHASHCOMPLETERCALLBACK_IID)
     148             : 
     149             : /* Use this macro when declaring classes that implement this interface. */
     150             : #define NS_DECL_NSIURLCLASSIFIERHASHCOMPLETERCALLBACK \
     151             :   NS_IMETHOD CompletionV2(const nsACString & hash, const nsACString & table, uint32_t chunkId) override; \
     152             :   NS_IMETHOD CompletionV4(const nsACString & partialHash, const nsACString & table, uint32_t negativeCacheDuration, nsIArray *fullHashes) override; \
     153             :   NS_IMETHOD CompletionFinished(nsresult status) override; 
     154             : 
     155             : /* Use this macro when declaring the members of this interface when the
     156             :    class doesn't implement the interface. This is useful for forwarding. */
     157             : #define NS_DECL_NON_VIRTUAL_NSIURLCLASSIFIERHASHCOMPLETERCALLBACK \
     158             :   nsresult CompletionV2(const nsACString & hash, const nsACString & table, uint32_t chunkId); \
     159             :   nsresult CompletionV4(const nsACString & partialHash, const nsACString & table, uint32_t negativeCacheDuration, nsIArray *fullHashes); \
     160             :   nsresult CompletionFinished(nsresult status); 
     161             : 
     162             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     163             : #define NS_FORWARD_NSIURLCLASSIFIERHASHCOMPLETERCALLBACK(_to) \
     164             :   NS_IMETHOD CompletionV2(const nsACString & hash, const nsACString & table, uint32_t chunkId) override { return _to CompletionV2(hash, table, chunkId); } \
     165             :   NS_IMETHOD CompletionV4(const nsACString & partialHash, const nsACString & table, uint32_t negativeCacheDuration, nsIArray *fullHashes) override { return _to CompletionV4(partialHash, table, negativeCacheDuration, fullHashes); } \
     166             :   NS_IMETHOD CompletionFinished(nsresult status) override { return _to CompletionFinished(status); } 
     167             : 
     168             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     169             : #define NS_FORWARD_SAFE_NSIURLCLASSIFIERHASHCOMPLETERCALLBACK(_to) \
     170             :   NS_IMETHOD CompletionV2(const nsACString & hash, const nsACString & table, uint32_t chunkId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompletionV2(hash, table, chunkId); } \
     171             :   NS_IMETHOD CompletionV4(const nsACString & partialHash, const nsACString & table, uint32_t negativeCacheDuration, nsIArray *fullHashes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompletionV4(partialHash, table, negativeCacheDuration, fullHashes); } \
     172             :   NS_IMETHOD CompletionFinished(nsresult status) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompletionFinished(status); } 
     173             : 
     174             : #if 0
     175             : /* Use the code below as a template for the implementation class for this interface. */
     176             : 
     177             : /* Header file */
     178             : class nsUrlClassifierHashCompleterCallback : public nsIUrlClassifierHashCompleterCallback
     179             : {
     180             : public:
     181             :   NS_DECL_ISUPPORTS
     182             :   NS_DECL_NSIURLCLASSIFIERHASHCOMPLETERCALLBACK
     183             : 
     184             :   nsUrlClassifierHashCompleterCallback();
     185             : 
     186             : private:
     187             :   ~nsUrlClassifierHashCompleterCallback();
     188             : 
     189             : protected:
     190             :   /* additional members */
     191             : };
     192             : 
     193             : /* Implementation file */
     194             : NS_IMPL_ISUPPORTS(nsUrlClassifierHashCompleterCallback, nsIUrlClassifierHashCompleterCallback)
     195             : 
     196             : nsUrlClassifierHashCompleterCallback::nsUrlClassifierHashCompleterCallback()
     197             : {
     198             :   /* member initializers and constructor code */
     199             : }
     200             : 
     201             : nsUrlClassifierHashCompleterCallback::~nsUrlClassifierHashCompleterCallback()
     202             : {
     203             :   /* destructor code */
     204             : }
     205             : 
     206             : /* void completionV2 (in ACString hash, in ACString table, in uint32_t chunkId); */
     207             : NS_IMETHODIMP nsUrlClassifierHashCompleterCallback::CompletionV2(const nsACString & hash, const nsACString & table, uint32_t chunkId)
     208             : {
     209             :     return NS_ERROR_NOT_IMPLEMENTED;
     210             : }
     211             : 
     212             : /* void completionV4 (in ACString partialHash, in ACString table, in uint32_t negativeCacheDuration, in nsIArray fullHashes); */
     213             : NS_IMETHODIMP nsUrlClassifierHashCompleterCallback::CompletionV4(const nsACString & partialHash, const nsACString & table, uint32_t negativeCacheDuration, nsIArray *fullHashes)
     214             : {
     215             :     return NS_ERROR_NOT_IMPLEMENTED;
     216             : }
     217             : 
     218             : /* void completionFinished (in nsresult status); */
     219             : NS_IMETHODIMP nsUrlClassifierHashCompleterCallback::CompletionFinished(nsresult status)
     220             : {
     221             :     return NS_ERROR_NOT_IMPLEMENTED;
     222             : }
     223             : 
     224             : /* End of implementation class template. */
     225             : #endif
     226             : 
     227             : 
     228             : /* starting interface:    nsIUrlClassifierHashCompleter */
     229             : #define NS_IURLCLASSIFIERHASHCOMPLETER_IID_STR "231fb2ad-ea8a-4e63-a331-eafc3b434811"
     230             : 
     231             : #define NS_IURLCLASSIFIERHASHCOMPLETER_IID \
     232             :   {0x231fb2ad, 0xea8a, 0x4e63, \
     233             :     { 0xa3, 0x31, 0xea, 0xfc, 0x3b, 0x43, 0x48, 0x11 }}
     234             : 
     235             : class NS_NO_VTABLE nsIUrlClassifierHashCompleter : public nsISupports {
     236             :  public:
     237             : 
     238             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLCLASSIFIERHASHCOMPLETER_IID)
     239             : 
     240             :   /* void complete (in ACString partialHash, in ACString gethashUrl, in ACString tableName, in nsIUrlClassifierHashCompleterCallback callback); */
     241             :   NS_IMETHOD Complete(const nsACString & partialHash, const nsACString & gethashUrl, const nsACString & tableName, nsIUrlClassifierHashCompleterCallback *callback) = 0;
     242             : 
     243             : };
     244             : 
     245             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUrlClassifierHashCompleter, NS_IURLCLASSIFIERHASHCOMPLETER_IID)
     246             : 
     247             : /* Use this macro when declaring classes that implement this interface. */
     248             : #define NS_DECL_NSIURLCLASSIFIERHASHCOMPLETER \
     249             :   NS_IMETHOD Complete(const nsACString & partialHash, const nsACString & gethashUrl, const nsACString & tableName, nsIUrlClassifierHashCompleterCallback *callback) override; 
     250             : 
     251             : /* Use this macro when declaring the members of this interface when the
     252             :    class doesn't implement the interface. This is useful for forwarding. */
     253             : #define NS_DECL_NON_VIRTUAL_NSIURLCLASSIFIERHASHCOMPLETER \
     254             :   nsresult Complete(const nsACString & partialHash, const nsACString & gethashUrl, const nsACString & tableName, nsIUrlClassifierHashCompleterCallback *callback); 
     255             : 
     256             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     257             : #define NS_FORWARD_NSIURLCLASSIFIERHASHCOMPLETER(_to) \
     258             :   NS_IMETHOD Complete(const nsACString & partialHash, const nsACString & gethashUrl, const nsACString & tableName, nsIUrlClassifierHashCompleterCallback *callback) override { return _to Complete(partialHash, gethashUrl, tableName, callback); } 
     259             : 
     260             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     261             : #define NS_FORWARD_SAFE_NSIURLCLASSIFIERHASHCOMPLETER(_to) \
     262             :   NS_IMETHOD Complete(const nsACString & partialHash, const nsACString & gethashUrl, const nsACString & tableName, nsIUrlClassifierHashCompleterCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(partialHash, gethashUrl, tableName, callback); } 
     263             : 
     264             : #if 0
     265             : /* Use the code below as a template for the implementation class for this interface. */
     266             : 
     267             : /* Header file */
     268             : class nsUrlClassifierHashCompleter : public nsIUrlClassifierHashCompleter
     269             : {
     270             : public:
     271             :   NS_DECL_ISUPPORTS
     272             :   NS_DECL_NSIURLCLASSIFIERHASHCOMPLETER
     273             : 
     274             :   nsUrlClassifierHashCompleter();
     275             : 
     276             : private:
     277             :   ~nsUrlClassifierHashCompleter();
     278             : 
     279             : protected:
     280             :   /* additional members */
     281             : };
     282             : 
     283             : /* Implementation file */
     284             : NS_IMPL_ISUPPORTS(nsUrlClassifierHashCompleter, nsIUrlClassifierHashCompleter)
     285             : 
     286             : nsUrlClassifierHashCompleter::nsUrlClassifierHashCompleter()
     287             : {
     288             :   /* member initializers and constructor code */
     289             : }
     290             : 
     291             : nsUrlClassifierHashCompleter::~nsUrlClassifierHashCompleter()
     292             : {
     293             :   /* destructor code */
     294             : }
     295             : 
     296             : /* void complete (in ACString partialHash, in ACString gethashUrl, in ACString tableName, in nsIUrlClassifierHashCompleterCallback callback); */
     297             : NS_IMETHODIMP nsUrlClassifierHashCompleter::Complete(const nsACString & partialHash, const nsACString & gethashUrl, const nsACString & tableName, nsIUrlClassifierHashCompleterCallback *callback)
     298             : {
     299             :     return NS_ERROR_NOT_IMPLEMENTED;
     300             : }
     301             : 
     302             : /* End of implementation class template. */
     303             : #endif
     304             : 
     305             : 
     306             : #endif /* __gen_nsIUrlClassifierHashCompleter_h__ */

Generated by: LCOV version 1.13