LCOV - app.info - objdir/dist/include/nsIUrlClassifierHashCompleter.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIUrlClassifierHashCompleter.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 1 | 100.0 %
| Date: | 2012-04-21 | Functions: | 1 | 1 | 100.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/toolkit/components/url-classifier/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                 :
          18                 : /* starting interface:    nsIUrlClassifierHashCompleterCallback */
          19                 : #define NS_IURLCLASSIFIERHASHCOMPLETERCALLBACK_IID_STR "bbd6c954-7cb4-4447-bc55-8cefd1ceed89"
          20                 :
          21                 : #define NS_IURLCLASSIFIERHASHCOMPLETERCALLBACK_IID \
          22                 :   {0xbbd6c954, 0x7cb4, 0x4447, \
          23                 :     { 0xbc, 0x55, 0x8c, 0xef, 0xd1, 0xce, 0xed, 0x89 }}
          24                 :
          25             140 : class NS_NO_VTABLE NS_SCRIPTABLE nsIUrlClassifierHashCompleterCallback : public nsISupports {
          26                 :  public:
          27                 :
          28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLCLASSIFIERHASHCOMPLETERCALLBACK_IID)
          29                 :
          30                 :   /* void completion (in ACString hash, in ACString table, in PRUint32 chunkId, in boolean trusted); */
          31                 :   NS_SCRIPTABLE NS_IMETHOD Completion(const nsACString & hash, const nsACString & table, PRUint32 chunkId, bool trusted) = 0;
          32                 :
          33                 :   /* void completionFinished (in nsresult status); */
          34                 :   NS_SCRIPTABLE NS_IMETHOD CompletionFinished(nsresult status) = 0;
          35                 :
          36                 : };
          37                 :
          38                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUrlClassifierHashCompleterCallback, NS_IURLCLASSIFIERHASHCOMPLETERCALLBACK_IID)
          39                 :
          40                 : /* Use this macro when declaring classes that implement this interface. */
          41                 : #define NS_DECL_NSIURLCLASSIFIERHASHCOMPLETERCALLBACK \
          42                 :   NS_SCRIPTABLE NS_IMETHOD Completion(const nsACString & hash, const nsACString & table, PRUint32 chunkId, bool trusted); \
          43                 :   NS_SCRIPTABLE NS_IMETHOD CompletionFinished(nsresult status);
          44                 :
          45                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          46                 : #define NS_FORWARD_NSIURLCLASSIFIERHASHCOMPLETERCALLBACK(_to) \
          47                 :   NS_SCRIPTABLE NS_IMETHOD Completion(const nsACString & hash, const nsACString & table, PRUint32 chunkId, bool trusted) { return _to Completion(hash, table, chunkId, trusted); } \
          48                 :   NS_SCRIPTABLE NS_IMETHOD CompletionFinished(nsresult status) { return _to CompletionFinished(status); }
          49                 :
          50                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          51                 : #define NS_FORWARD_SAFE_NSIURLCLASSIFIERHASHCOMPLETERCALLBACK(_to) \
          52                 :   NS_SCRIPTABLE NS_IMETHOD Completion(const nsACString & hash, const nsACString & table, PRUint32 chunkId, bool trusted) { return !_to ? NS_ERROR_NULL_POINTER : _to->Completion(hash, table, chunkId, trusted); } \
          53                 :   NS_SCRIPTABLE NS_IMETHOD CompletionFinished(nsresult status) { return !_to ? NS_ERROR_NULL_POINTER : _to->CompletionFinished(status); }
          54                 :
          55                 : #if 0
          56                 : /* Use the code below as a template for the implementation class for this interface. */
          57                 :
          58                 : /* Header file */
          59                 : class nsUrlClassifierHashCompleterCallback : public nsIUrlClassifierHashCompleterCallback
          60                 : {
          61                 : public:
          62                 :   NS_DECL_ISUPPORTS
          63                 :   NS_DECL_NSIURLCLASSIFIERHASHCOMPLETERCALLBACK
          64                 :
          65                 :   nsUrlClassifierHashCompleterCallback();
          66                 :
          67                 : private:
          68                 :   ~nsUrlClassifierHashCompleterCallback();
          69                 :
          70                 : protected:
          71                 :   /* additional members */
          72                 : };
          73                 :
          74                 : /* Implementation file */
          75                 : NS_IMPL_ISUPPORTS1(nsUrlClassifierHashCompleterCallback, nsIUrlClassifierHashCompleterCallback)
          76                 :
          77                 : nsUrlClassifierHashCompleterCallback::nsUrlClassifierHashCompleterCallback()
          78                 : {
          79                 :   /* member initializers and constructor code */
          80                 : }
          81                 :
          82                 : nsUrlClassifierHashCompleterCallback::~nsUrlClassifierHashCompleterCallback()
          83                 : {
          84                 :   /* destructor code */
          85                 : }
          86                 :
          87                 : /* void completion (in ACString hash, in ACString table, in PRUint32 chunkId, in boolean trusted); */
          88                 : NS_IMETHODIMP nsUrlClassifierHashCompleterCallback::Completion(const nsACString & hash, const nsACString & table, PRUint32 chunkId, bool trusted)
          89                 : {
          90                 :     return NS_ERROR_NOT_IMPLEMENTED;
          91                 : }
          92                 :
          93                 : /* void completionFinished (in nsresult status); */
          94                 : NS_IMETHODIMP nsUrlClassifierHashCompleterCallback::CompletionFinished(nsresult status)
          95                 : {
          96                 :     return NS_ERROR_NOT_IMPLEMENTED;
          97                 : }
          98                 :
          99                 : /* End of implementation class template. */
         100                 : #endif
         101                 :
         102                 :
         103                 : /* starting interface:    nsIUrlClassifierHashCompleter */
         104                 : #define NS_IURLCLASSIFIERHASHCOMPLETER_IID_STR "ade9b72b-3562-44f5-aba6-e63246be53ae"
         105                 :
         106                 : #define NS_IURLCLASSIFIERHASHCOMPLETER_IID \
         107                 :   {0xade9b72b, 0x3562, 0x44f5, \
         108                 :     { 0xab, 0xa6, 0xe6, 0x32, 0x46, 0xbe, 0x53, 0xae }}
         109                 :
         110                 : class NS_NO_VTABLE NS_SCRIPTABLE nsIUrlClassifierHashCompleter : public nsISupports {
         111                 :  public:
         112                 :
         113                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLCLASSIFIERHASHCOMPLETER_IID)
         114                 :
         115                 :   /* void complete (in ACString partialHash, in nsIUrlClassifierHashCompleterCallback callback); */
         116                 :   NS_SCRIPTABLE NS_IMETHOD Complete(const nsACString & partialHash, nsIUrlClassifierHashCompleterCallback *callback) = 0;
         117                 :
         118                 :   /* void setKeys (in ACString clientKey, in ACString wrappedKey); */
         119                 :   NS_SCRIPTABLE NS_IMETHOD SetKeys(const nsACString & clientKey, const nsACString & wrappedKey) = 0;
         120                 :
         121                 :   /* attribute ACString gethashUrl; */
         122                 :   NS_SCRIPTABLE NS_IMETHOD GetGethashUrl(nsACString & aGethashUrl) = 0;
         123                 :   NS_SCRIPTABLE NS_IMETHOD SetGethashUrl(const nsACString & aGethashUrl) = 0;
         124                 :
         125                 : };
         126                 :
         127                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUrlClassifierHashCompleter, NS_IURLCLASSIFIERHASHCOMPLETER_IID)
         128                 :
         129                 : /* Use this macro when declaring classes that implement this interface. */
         130                 : #define NS_DECL_NSIURLCLASSIFIERHASHCOMPLETER \
         131                 :   NS_SCRIPTABLE NS_IMETHOD Complete(const nsACString & partialHash, nsIUrlClassifierHashCompleterCallback *callback); \
         132                 :   NS_SCRIPTABLE NS_IMETHOD SetKeys(const nsACString & clientKey, const nsACString & wrappedKey); \
         133                 :   NS_SCRIPTABLE NS_IMETHOD GetGethashUrl(nsACString & aGethashUrl); \
         134                 :   NS_SCRIPTABLE NS_IMETHOD SetGethashUrl(const nsACString & aGethashUrl);
         135                 :
         136                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
         137                 : #define NS_FORWARD_NSIURLCLASSIFIERHASHCOMPLETER(_to) \
         138                 :   NS_SCRIPTABLE NS_IMETHOD Complete(const nsACString & partialHash, nsIUrlClassifierHashCompleterCallback *callback) { return _to Complete(partialHash, callback); } \
         139                 :   NS_SCRIPTABLE NS_IMETHOD SetKeys(const nsACString & clientKey, const nsACString & wrappedKey) { return _to SetKeys(clientKey, wrappedKey); } \
         140                 :   NS_SCRIPTABLE NS_IMETHOD GetGethashUrl(nsACString & aGethashUrl) { return _to GetGethashUrl(aGethashUrl); } \
         141                 :   NS_SCRIPTABLE NS_IMETHOD SetGethashUrl(const nsACString & aGethashUrl) { return _to SetGethashUrl(aGethashUrl); }
         142                 :
         143                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         144                 : #define NS_FORWARD_SAFE_NSIURLCLASSIFIERHASHCOMPLETER(_to) \
         145                 :   NS_SCRIPTABLE NS_IMETHOD Complete(const nsACString & partialHash, nsIUrlClassifierHashCompleterCallback *callback) { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(partialHash, callback); } \
         146                 :   NS_SCRIPTABLE NS_IMETHOD SetKeys(const nsACString & clientKey, const nsACString & wrappedKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetKeys(clientKey, wrappedKey); } \
         147                 :   NS_SCRIPTABLE NS_IMETHOD GetGethashUrl(nsACString & aGethashUrl) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGethashUrl(aGethashUrl); } \
         148                 :   NS_SCRIPTABLE NS_IMETHOD SetGethashUrl(const nsACString & aGethashUrl) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGethashUrl(aGethashUrl); }
         149                 :
         150                 : #if 0
         151                 : /* Use the code below as a template for the implementation class for this interface. */
         152                 :
         153                 : /* Header file */
         154                 : class nsUrlClassifierHashCompleter : public nsIUrlClassifierHashCompleter
         155                 : {
         156                 : public:
         157                 :   NS_DECL_ISUPPORTS
         158                 :   NS_DECL_NSIURLCLASSIFIERHASHCOMPLETER
         159                 :
         160                 :   nsUrlClassifierHashCompleter();
         161                 :
         162                 : private:
         163                 :   ~nsUrlClassifierHashCompleter();
         164                 :
         165                 : protected:
         166                 :   /* additional members */
         167                 : };
         168                 :
         169                 : /* Implementation file */
         170                 : NS_IMPL_ISUPPORTS1(nsUrlClassifierHashCompleter, nsIUrlClassifierHashCompleter)
         171                 :
         172                 : nsUrlClassifierHashCompleter::nsUrlClassifierHashCompleter()
         173                 : {
         174                 :   /* member initializers and constructor code */
         175                 : }
         176                 :
         177                 : nsUrlClassifierHashCompleter::~nsUrlClassifierHashCompleter()
         178                 : {
         179                 :   /* destructor code */
         180                 : }
         181                 :
         182                 : /* void complete (in ACString partialHash, in nsIUrlClassifierHashCompleterCallback callback); */
         183                 : NS_IMETHODIMP nsUrlClassifierHashCompleter::Complete(const nsACString & partialHash, nsIUrlClassifierHashCompleterCallback *callback)
         184                 : {
         185                 :     return NS_ERROR_NOT_IMPLEMENTED;
         186                 : }
         187                 :
         188                 : /* void setKeys (in ACString clientKey, in ACString wrappedKey); */
         189                 : NS_IMETHODIMP nsUrlClassifierHashCompleter::SetKeys(const nsACString & clientKey, const nsACString & wrappedKey)
         190                 : {
         191                 :     return NS_ERROR_NOT_IMPLEMENTED;
         192                 : }
         193                 :
         194                 : /* attribute ACString gethashUrl; */
         195                 : NS_IMETHODIMP nsUrlClassifierHashCompleter::GetGethashUrl(nsACString & aGethashUrl)
         196                 : {
         197                 :     return NS_ERROR_NOT_IMPLEMENTED;
         198                 : }
         199                 : NS_IMETHODIMP nsUrlClassifierHashCompleter::SetGethashUrl(const nsACString & aGethashUrl)
         200                 : {
         201                 :     return NS_ERROR_NOT_IMPLEMENTED;
         202                 : }
         203                 :
         204                 : /* End of implementation class template. */
         205                 : #endif
         206                 :
         207                 :
         208                 : #endif /* __gen_nsIUrlClassifierHashCompleter_h__ */

Generated by: LCOV version 1.7