LCOV - code coverage report
Current view: directory - objdir/dist/include - nsICacheEntryDescriptor.h (source / functions) Found Hit Coverage
Test: app.info Lines: 2 1 50.0 %
Date: 2012-06-02 Functions: 2 1 50.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/cache/nsICacheEntryDescriptor.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsICacheEntryDescriptor_h__
       6                 : #define __gen_nsICacheEntryDescriptor_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsICacheVisitor_h__
      10                 : #include "nsICacheVisitor.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsICache_h__
      14                 : #include "nsICache.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                 : class nsISimpleEnumerator; /* forward declaration */
      22                 : 
      23                 : class nsICacheListener; /* forward declaration */
      24                 : 
      25                 : class nsIInputStream; /* forward declaration */
      26                 : 
      27                 : class nsIOutputStream; /* forward declaration */
      28                 : 
      29                 : class nsIFile; /* forward declaration */
      30                 : 
      31                 : class nsICacheMetaDataVisitor; /* forward declaration */
      32                 : 
      33                 : 
      34                 : /* starting interface:    nsICacheEntryDescriptor */
      35                 : #define NS_ICACHEENTRYDESCRIPTOR_IID_STR "49c1a11d-f5d2-4f09-8262-551e64908ada"
      36                 : 
      37                 : #define NS_ICACHEENTRYDESCRIPTOR_IID \
      38                 :   {0x49c1a11d, 0xf5d2, 0x4f09, \
      39                 :     { 0x82, 0x62, 0x55, 0x1e, 0x64, 0x90, 0x8a, 0xda }}
      40                 : 
      41            1778 : class NS_NO_VTABLE NS_SCRIPTABLE nsICacheEntryDescriptor : public nsICacheEntryInfo {
      42                 :  public: 
      43                 : 
      44                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEENTRYDESCRIPTOR_IID)
      45                 : 
      46                 :   /* void setExpirationTime (in PRUint32 expirationTime); */
      47                 :   NS_SCRIPTABLE NS_IMETHOD SetExpirationTime(PRUint32 expirationTime) = 0;
      48                 : 
      49                 :   /* void setDataSize (in unsigned long size); */
      50                 :   NS_SCRIPTABLE NS_IMETHOD SetDataSize(PRUint32 size) = 0;
      51                 : 
      52                 :   /* nsIInputStream openInputStream (in unsigned long offset); */
      53                 :   NS_SCRIPTABLE NS_IMETHOD OpenInputStream(PRUint32 offset, nsIInputStream * *_retval NS_OUTPARAM) = 0;
      54                 : 
      55                 :   /* nsIOutputStream openOutputStream (in unsigned long offset); */
      56                 :   NS_SCRIPTABLE NS_IMETHOD OpenOutputStream(PRUint32 offset, nsIOutputStream * *_retval NS_OUTPARAM) = 0;
      57                 : 
      58                 :   /* attribute nsISupports cacheElement; */
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetCacheElement(nsISupports * *aCacheElement) = 0;
      60                 :   NS_SCRIPTABLE NS_IMETHOD SetCacheElement(nsISupports *aCacheElement) = 0;
      61                 : 
      62                 :   /* attribute PRInt64 predictedDataSize; */
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetPredictedDataSize(PRInt64 *aPredictedDataSize) = 0;
      64                 :   NS_SCRIPTABLE NS_IMETHOD SetPredictedDataSize(PRInt64 aPredictedDataSize) = 0;
      65                 : 
      66                 :   /* readonly attribute nsCacheAccessMode accessGranted; */
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetAccessGranted(nsCacheAccessMode *aAccessGranted) = 0;
      68                 : 
      69                 :   /* attribute nsCacheStoragePolicy storagePolicy; */
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetStoragePolicy(nsCacheStoragePolicy *aStoragePolicy) = 0;
      71                 :   NS_SCRIPTABLE NS_IMETHOD SetStoragePolicy(nsCacheStoragePolicy aStoragePolicy) = 0;
      72                 : 
      73                 :   /* readonly attribute nsIFile file; */
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) = 0;
      75                 : 
      76                 :   /* attribute nsISupports securityInfo; */
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) = 0;
      78                 :   NS_SCRIPTABLE NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo) = 0;
      79                 : 
      80                 :   /* readonly attribute unsigned long storageDataSize; */
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetStorageDataSize(PRUint32 *aStorageDataSize) = 0;
      82                 : 
      83                 :   /* void doom (); */
      84                 :   NS_SCRIPTABLE NS_IMETHOD Doom(void) = 0;
      85                 : 
      86                 :   /* void doomAndFailPendingRequests (in nsresult status); */
      87                 :   NS_SCRIPTABLE NS_IMETHOD DoomAndFailPendingRequests(nsresult status) = 0;
      88                 : 
      89                 :   /* void markValid (); */
      90                 :   NS_SCRIPTABLE NS_IMETHOD MarkValid(void) = 0;
      91                 : 
      92                 :   /* void close (); */
      93                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) = 0;
      94                 : 
      95                 :   /* string getMetaDataElement (in string key); */
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetMetaDataElement(const char * key, char * *_retval NS_OUTPARAM) = 0;
      97                 : 
      98                 :   /* void setMetaDataElement (in string key, in string value); */
      99                 :   NS_SCRIPTABLE NS_IMETHOD SetMetaDataElement(const char * key, const char * value) = 0;
     100                 : 
     101                 :   /* void visitMetaData (in nsICacheMetaDataVisitor visitor); */
     102                 :   NS_SCRIPTABLE NS_IMETHOD VisitMetaData(nsICacheMetaDataVisitor *visitor) = 0;
     103                 : 
     104                 : };
     105                 : 
     106                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheEntryDescriptor, NS_ICACHEENTRYDESCRIPTOR_IID)
     107                 : 
     108                 : /* Use this macro when declaring classes that implement this interface. */
     109                 : #define NS_DECL_NSICACHEENTRYDESCRIPTOR \
     110                 :   NS_SCRIPTABLE NS_IMETHOD SetExpirationTime(PRUint32 expirationTime); \
     111                 :   NS_SCRIPTABLE NS_IMETHOD SetDataSize(PRUint32 size); \
     112                 :   NS_SCRIPTABLE NS_IMETHOD OpenInputStream(PRUint32 offset, nsIInputStream * *_retval NS_OUTPARAM); \
     113                 :   NS_SCRIPTABLE NS_IMETHOD OpenOutputStream(PRUint32 offset, nsIOutputStream * *_retval NS_OUTPARAM); \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetCacheElement(nsISupports * *aCacheElement); \
     115                 :   NS_SCRIPTABLE NS_IMETHOD SetCacheElement(nsISupports *aCacheElement); \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetPredictedDataSize(PRInt64 *aPredictedDataSize); \
     117                 :   NS_SCRIPTABLE NS_IMETHOD SetPredictedDataSize(PRInt64 aPredictedDataSize); \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetAccessGranted(nsCacheAccessMode *aAccessGranted); \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetStoragePolicy(nsCacheStoragePolicy *aStoragePolicy); \
     120                 :   NS_SCRIPTABLE NS_IMETHOD SetStoragePolicy(nsCacheStoragePolicy aStoragePolicy); \
     121                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile); \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo); \
     123                 :   NS_SCRIPTABLE NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo); \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetStorageDataSize(PRUint32 *aStorageDataSize); \
     125                 :   NS_SCRIPTABLE NS_IMETHOD Doom(void); \
     126                 :   NS_SCRIPTABLE NS_IMETHOD DoomAndFailPendingRequests(nsresult status); \
     127                 :   NS_SCRIPTABLE NS_IMETHOD MarkValid(void); \
     128                 :   NS_SCRIPTABLE NS_IMETHOD Close(void); \
     129                 :   NS_SCRIPTABLE NS_IMETHOD GetMetaDataElement(const char * key, char * *_retval NS_OUTPARAM); \
     130                 :   NS_SCRIPTABLE NS_IMETHOD SetMetaDataElement(const char * key, const char * value); \
     131                 :   NS_SCRIPTABLE NS_IMETHOD VisitMetaData(nsICacheMetaDataVisitor *visitor); 
     132                 : 
     133                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     134                 : #define NS_FORWARD_NSICACHEENTRYDESCRIPTOR(_to) \
     135                 :   NS_SCRIPTABLE NS_IMETHOD SetExpirationTime(PRUint32 expirationTime) { return _to SetExpirationTime(expirationTime); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD SetDataSize(PRUint32 size) { return _to SetDataSize(size); } \
     137                 :   NS_SCRIPTABLE NS_IMETHOD OpenInputStream(PRUint32 offset, nsIInputStream * *_retval NS_OUTPARAM) { return _to OpenInputStream(offset, _retval); } \
     138                 :   NS_SCRIPTABLE NS_IMETHOD OpenOutputStream(PRUint32 offset, nsIOutputStream * *_retval NS_OUTPARAM) { return _to OpenOutputStream(offset, _retval); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD GetCacheElement(nsISupports * *aCacheElement) { return _to GetCacheElement(aCacheElement); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD SetCacheElement(nsISupports *aCacheElement) { return _to SetCacheElement(aCacheElement); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD GetPredictedDataSize(PRInt64 *aPredictedDataSize) { return _to GetPredictedDataSize(aPredictedDataSize); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD SetPredictedDataSize(PRInt64 aPredictedDataSize) { return _to SetPredictedDataSize(aPredictedDataSize); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD GetAccessGranted(nsCacheAccessMode *aAccessGranted) { return _to GetAccessGranted(aAccessGranted); } \
     144                 :   NS_SCRIPTABLE NS_IMETHOD GetStoragePolicy(nsCacheStoragePolicy *aStoragePolicy) { return _to GetStoragePolicy(aStoragePolicy); } \
     145                 :   NS_SCRIPTABLE NS_IMETHOD SetStoragePolicy(nsCacheStoragePolicy aStoragePolicy) { return _to SetStoragePolicy(aStoragePolicy); } \
     146                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) { return _to GetFile(aFile); } \
     147                 :   NS_SCRIPTABLE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) { return _to GetSecurityInfo(aSecurityInfo); } \
     148                 :   NS_SCRIPTABLE NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo) { return _to SetSecurityInfo(aSecurityInfo); } \
     149                 :   NS_SCRIPTABLE NS_IMETHOD GetStorageDataSize(PRUint32 *aStorageDataSize) { return _to GetStorageDataSize(aStorageDataSize); } \
     150                 :   NS_SCRIPTABLE NS_IMETHOD Doom(void) { return _to Doom(); } \
     151                 :   NS_SCRIPTABLE NS_IMETHOD DoomAndFailPendingRequests(nsresult status) { return _to DoomAndFailPendingRequests(status); } \
     152                 :   NS_SCRIPTABLE NS_IMETHOD MarkValid(void) { return _to MarkValid(); } \
     153                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) { return _to Close(); } \
     154                 :   NS_SCRIPTABLE NS_IMETHOD GetMetaDataElement(const char * key, char * *_retval NS_OUTPARAM) { return _to GetMetaDataElement(key, _retval); } \
     155                 :   NS_SCRIPTABLE NS_IMETHOD SetMetaDataElement(const char * key, const char * value) { return _to SetMetaDataElement(key, value); } \
     156                 :   NS_SCRIPTABLE NS_IMETHOD VisitMetaData(nsICacheMetaDataVisitor *visitor) { return _to VisitMetaData(visitor); } 
     157                 : 
     158                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     159                 : #define NS_FORWARD_SAFE_NSICACHEENTRYDESCRIPTOR(_to) \
     160                 :   NS_SCRIPTABLE NS_IMETHOD SetExpirationTime(PRUint32 expirationTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExpirationTime(expirationTime); } \
     161                 :   NS_SCRIPTABLE NS_IMETHOD SetDataSize(PRUint32 size) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDataSize(size); } \
     162                 :   NS_SCRIPTABLE NS_IMETHOD OpenInputStream(PRUint32 offset, nsIInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenInputStream(offset, _retval); } \
     163                 :   NS_SCRIPTABLE NS_IMETHOD OpenOutputStream(PRUint32 offset, nsIOutputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenOutputStream(offset, _retval); } \
     164                 :   NS_SCRIPTABLE NS_IMETHOD GetCacheElement(nsISupports * *aCacheElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheElement(aCacheElement); } \
     165                 :   NS_SCRIPTABLE NS_IMETHOD SetCacheElement(nsISupports *aCacheElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCacheElement(aCacheElement); } \
     166                 :   NS_SCRIPTABLE NS_IMETHOD GetPredictedDataSize(PRInt64 *aPredictedDataSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPredictedDataSize(aPredictedDataSize); } \
     167                 :   NS_SCRIPTABLE NS_IMETHOD SetPredictedDataSize(PRInt64 aPredictedDataSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPredictedDataSize(aPredictedDataSize); } \
     168                 :   NS_SCRIPTABLE NS_IMETHOD GetAccessGranted(nsCacheAccessMode *aAccessGranted) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessGranted(aAccessGranted); } \
     169                 :   NS_SCRIPTABLE NS_IMETHOD GetStoragePolicy(nsCacheStoragePolicy *aStoragePolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStoragePolicy(aStoragePolicy); } \
     170                 :   NS_SCRIPTABLE NS_IMETHOD SetStoragePolicy(nsCacheStoragePolicy aStoragePolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStoragePolicy(aStoragePolicy); } \
     171                 :   NS_SCRIPTABLE NS_IMETHOD GetFile(nsIFile * *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(aFile); } \
     172                 :   NS_SCRIPTABLE NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityInfo(aSecurityInfo); } \
     173                 :   NS_SCRIPTABLE NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityInfo(aSecurityInfo); } \
     174                 :   NS_SCRIPTABLE NS_IMETHOD GetStorageDataSize(PRUint32 *aStorageDataSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStorageDataSize(aStorageDataSize); } \
     175                 :   NS_SCRIPTABLE NS_IMETHOD Doom(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Doom(); } \
     176                 :   NS_SCRIPTABLE NS_IMETHOD DoomAndFailPendingRequests(nsresult status) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoomAndFailPendingRequests(status); } \
     177                 :   NS_SCRIPTABLE NS_IMETHOD MarkValid(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkValid(); } \
     178                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
     179                 :   NS_SCRIPTABLE NS_IMETHOD GetMetaDataElement(const char * key, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetaDataElement(key, _retval); } \
     180                 :   NS_SCRIPTABLE NS_IMETHOD SetMetaDataElement(const char * key, const char * value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMetaDataElement(key, value); } \
     181                 :   NS_SCRIPTABLE NS_IMETHOD VisitMetaData(nsICacheMetaDataVisitor *visitor) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitMetaData(visitor); } 
     182                 : 
     183                 : #if 0
     184                 : /* Use the code below as a template for the implementation class for this interface. */
     185                 : 
     186                 : /* Header file */
     187                 : class nsCacheEntryDescriptor : public nsICacheEntryDescriptor
     188                 : {
     189                 : public:
     190                 :   NS_DECL_ISUPPORTS
     191                 :   NS_DECL_NSICACHEENTRYDESCRIPTOR
     192                 : 
     193                 :   nsCacheEntryDescriptor();
     194                 : 
     195                 : private:
     196                 :   ~nsCacheEntryDescriptor();
     197                 : 
     198                 : protected:
     199                 :   /* additional members */
     200                 : };
     201                 : 
     202                 : /* Implementation file */
     203                 : NS_IMPL_ISUPPORTS1(nsCacheEntryDescriptor, nsICacheEntryDescriptor)
     204                 : 
     205                 : nsCacheEntryDescriptor::nsCacheEntryDescriptor()
     206                 : {
     207                 :   /* member initializers and constructor code */
     208                 : }
     209                 : 
     210                 : nsCacheEntryDescriptor::~nsCacheEntryDescriptor()
     211                 : {
     212                 :   /* destructor code */
     213                 : }
     214                 : 
     215                 : /* void setExpirationTime (in PRUint32 expirationTime); */
     216                 : NS_IMETHODIMP nsCacheEntryDescriptor::SetExpirationTime(PRUint32 expirationTime)
     217                 : {
     218                 :     return NS_ERROR_NOT_IMPLEMENTED;
     219                 : }
     220                 : 
     221                 : /* void setDataSize (in unsigned long size); */
     222                 : NS_IMETHODIMP nsCacheEntryDescriptor::SetDataSize(PRUint32 size)
     223                 : {
     224                 :     return NS_ERROR_NOT_IMPLEMENTED;
     225                 : }
     226                 : 
     227                 : /* nsIInputStream openInputStream (in unsigned long offset); */
     228                 : NS_IMETHODIMP nsCacheEntryDescriptor::OpenInputStream(PRUint32 offset, nsIInputStream * *_retval NS_OUTPARAM)
     229                 : {
     230                 :     return NS_ERROR_NOT_IMPLEMENTED;
     231                 : }
     232                 : 
     233                 : /* nsIOutputStream openOutputStream (in unsigned long offset); */
     234                 : NS_IMETHODIMP nsCacheEntryDescriptor::OpenOutputStream(PRUint32 offset, nsIOutputStream * *_retval NS_OUTPARAM)
     235                 : {
     236                 :     return NS_ERROR_NOT_IMPLEMENTED;
     237                 : }
     238                 : 
     239                 : /* attribute nsISupports cacheElement; */
     240                 : NS_IMETHODIMP nsCacheEntryDescriptor::GetCacheElement(nsISupports * *aCacheElement)
     241                 : {
     242                 :     return NS_ERROR_NOT_IMPLEMENTED;
     243                 : }
     244                 : NS_IMETHODIMP nsCacheEntryDescriptor::SetCacheElement(nsISupports *aCacheElement)
     245                 : {
     246                 :     return NS_ERROR_NOT_IMPLEMENTED;
     247                 : }
     248                 : 
     249                 : /* attribute PRInt64 predictedDataSize; */
     250                 : NS_IMETHODIMP nsCacheEntryDescriptor::GetPredictedDataSize(PRInt64 *aPredictedDataSize)
     251                 : {
     252                 :     return NS_ERROR_NOT_IMPLEMENTED;
     253                 : }
     254                 : NS_IMETHODIMP nsCacheEntryDescriptor::SetPredictedDataSize(PRInt64 aPredictedDataSize)
     255                 : {
     256                 :     return NS_ERROR_NOT_IMPLEMENTED;
     257                 : }
     258                 : 
     259                 : /* readonly attribute nsCacheAccessMode accessGranted; */
     260                 : NS_IMETHODIMP nsCacheEntryDescriptor::GetAccessGranted(nsCacheAccessMode *aAccessGranted)
     261                 : {
     262                 :     return NS_ERROR_NOT_IMPLEMENTED;
     263                 : }
     264                 : 
     265                 : /* attribute nsCacheStoragePolicy storagePolicy; */
     266                 : NS_IMETHODIMP nsCacheEntryDescriptor::GetStoragePolicy(nsCacheStoragePolicy *aStoragePolicy)
     267                 : {
     268                 :     return NS_ERROR_NOT_IMPLEMENTED;
     269                 : }
     270                 : NS_IMETHODIMP nsCacheEntryDescriptor::SetStoragePolicy(nsCacheStoragePolicy aStoragePolicy)
     271                 : {
     272                 :     return NS_ERROR_NOT_IMPLEMENTED;
     273                 : }
     274                 : 
     275                 : /* readonly attribute nsIFile file; */
     276                 : NS_IMETHODIMP nsCacheEntryDescriptor::GetFile(nsIFile * *aFile)
     277                 : {
     278                 :     return NS_ERROR_NOT_IMPLEMENTED;
     279                 : }
     280                 : 
     281                 : /* attribute nsISupports securityInfo; */
     282                 : NS_IMETHODIMP nsCacheEntryDescriptor::GetSecurityInfo(nsISupports * *aSecurityInfo)
     283                 : {
     284                 :     return NS_ERROR_NOT_IMPLEMENTED;
     285                 : }
     286                 : NS_IMETHODIMP nsCacheEntryDescriptor::SetSecurityInfo(nsISupports *aSecurityInfo)
     287                 : {
     288                 :     return NS_ERROR_NOT_IMPLEMENTED;
     289                 : }
     290                 : 
     291                 : /* readonly attribute unsigned long storageDataSize; */
     292                 : NS_IMETHODIMP nsCacheEntryDescriptor::GetStorageDataSize(PRUint32 *aStorageDataSize)
     293                 : {
     294                 :     return NS_ERROR_NOT_IMPLEMENTED;
     295                 : }
     296                 : 
     297                 : /* void doom (); */
     298                 : NS_IMETHODIMP nsCacheEntryDescriptor::Doom()
     299                 : {
     300                 :     return NS_ERROR_NOT_IMPLEMENTED;
     301                 : }
     302                 : 
     303                 : /* void doomAndFailPendingRequests (in nsresult status); */
     304                 : NS_IMETHODIMP nsCacheEntryDescriptor::DoomAndFailPendingRequests(nsresult status)
     305                 : {
     306                 :     return NS_ERROR_NOT_IMPLEMENTED;
     307                 : }
     308                 : 
     309                 : /* void markValid (); */
     310                 : NS_IMETHODIMP nsCacheEntryDescriptor::MarkValid()
     311                 : {
     312                 :     return NS_ERROR_NOT_IMPLEMENTED;
     313                 : }
     314                 : 
     315                 : /* void close (); */
     316                 : NS_IMETHODIMP nsCacheEntryDescriptor::Close()
     317                 : {
     318                 :     return NS_ERROR_NOT_IMPLEMENTED;
     319                 : }
     320                 : 
     321                 : /* string getMetaDataElement (in string key); */
     322                 : NS_IMETHODIMP nsCacheEntryDescriptor::GetMetaDataElement(const char * key, char * *_retval NS_OUTPARAM)
     323                 : {
     324                 :     return NS_ERROR_NOT_IMPLEMENTED;
     325                 : }
     326                 : 
     327                 : /* void setMetaDataElement (in string key, in string value); */
     328                 : NS_IMETHODIMP nsCacheEntryDescriptor::SetMetaDataElement(const char * key, const char * value)
     329                 : {
     330                 :     return NS_ERROR_NOT_IMPLEMENTED;
     331                 : }
     332                 : 
     333                 : /* void visitMetaData (in nsICacheMetaDataVisitor visitor); */
     334                 : NS_IMETHODIMP nsCacheEntryDescriptor::VisitMetaData(nsICacheMetaDataVisitor *visitor)
     335                 : {
     336                 :     return NS_ERROR_NOT_IMPLEMENTED;
     337                 : }
     338                 : 
     339                 : /* End of implementation class template. */
     340                 : #endif
     341                 : 
     342                 : 
     343                 : /* starting interface:    nsICacheMetaDataVisitor */
     344                 : #define NS_ICACHEMETADATAVISITOR_IID_STR "22f9a49c-3cf8-4c23-8006-54efb11ac562"
     345                 : 
     346                 : #define NS_ICACHEMETADATAVISITOR_IID \
     347                 :   {0x22f9a49c, 0x3cf8, 0x4c23, \
     348                 :     { 0x80, 0x06, 0x54, 0xef, 0xb1, 0x1a, 0xc5, 0x62 }}
     349                 : 
     350               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsICacheMetaDataVisitor : public nsISupports {
     351                 :  public: 
     352                 : 
     353                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEMETADATAVISITOR_IID)
     354                 : 
     355                 :   /* boolean visitMetaDataElement (in string key, in string value); */
     356                 :   NS_SCRIPTABLE NS_IMETHOD VisitMetaDataElement(const char * key, const char * value, bool *_retval NS_OUTPARAM) = 0;
     357                 : 
     358                 : };
     359                 : 
     360                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheMetaDataVisitor, NS_ICACHEMETADATAVISITOR_IID)
     361                 : 
     362                 : /* Use this macro when declaring classes that implement this interface. */
     363                 : #define NS_DECL_NSICACHEMETADATAVISITOR \
     364                 :   NS_SCRIPTABLE NS_IMETHOD VisitMetaDataElement(const char * key, const char * value, bool *_retval NS_OUTPARAM); 
     365                 : 
     366                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     367                 : #define NS_FORWARD_NSICACHEMETADATAVISITOR(_to) \
     368                 :   NS_SCRIPTABLE NS_IMETHOD VisitMetaDataElement(const char * key, const char * value, bool *_retval NS_OUTPARAM) { return _to VisitMetaDataElement(key, value, _retval); } 
     369                 : 
     370                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     371                 : #define NS_FORWARD_SAFE_NSICACHEMETADATAVISITOR(_to) \
     372                 :   NS_SCRIPTABLE NS_IMETHOD VisitMetaDataElement(const char * key, const char * value, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitMetaDataElement(key, value, _retval); } 
     373                 : 
     374                 : #if 0
     375                 : /* Use the code below as a template for the implementation class for this interface. */
     376                 : 
     377                 : /* Header file */
     378                 : class nsCacheMetaDataVisitor : public nsICacheMetaDataVisitor
     379                 : {
     380                 : public:
     381                 :   NS_DECL_ISUPPORTS
     382                 :   NS_DECL_NSICACHEMETADATAVISITOR
     383                 : 
     384                 :   nsCacheMetaDataVisitor();
     385                 : 
     386                 : private:
     387                 :   ~nsCacheMetaDataVisitor();
     388                 : 
     389                 : protected:
     390                 :   /* additional members */
     391                 : };
     392                 : 
     393                 : /* Implementation file */
     394                 : NS_IMPL_ISUPPORTS1(nsCacheMetaDataVisitor, nsICacheMetaDataVisitor)
     395                 : 
     396                 : nsCacheMetaDataVisitor::nsCacheMetaDataVisitor()
     397                 : {
     398                 :   /* member initializers and constructor code */
     399                 : }
     400                 : 
     401                 : nsCacheMetaDataVisitor::~nsCacheMetaDataVisitor()
     402                 : {
     403                 :   /* destructor code */
     404                 : }
     405                 : 
     406                 : /* boolean visitMetaDataElement (in string key, in string value); */
     407                 : NS_IMETHODIMP nsCacheMetaDataVisitor::VisitMetaDataElement(const char * key, const char * value, bool *_retval NS_OUTPARAM)
     408                 : {
     409                 :     return NS_ERROR_NOT_IMPLEMENTED;
     410                 : }
     411                 : 
     412                 : /* End of implementation class template. */
     413                 : #endif
     414                 : 
     415                 : 
     416                 : #endif /* __gen_nsICacheEntryDescriptor_h__ */

Generated by: LCOV version 1.7