Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/nsICacheInfoChannel.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsICacheInfoChannel.idl
3
 */
4
5
#ifndef __gen_nsICacheInfoChannel_h__
6
#define __gen_nsICacheInfoChannel_h__
7
8
9
#ifndef __gen_nsISupports_h__
10
#include "nsISupports.h"
11
#endif
12
13
#include "js/GCAnnotations.h"
14
15
/* For IDL files that don't want to include root IDL files. */
16
#ifndef NS_NO_VTABLE
17
#define NS_NO_VTABLE
18
#endif
19
class nsIOutputStream; /* forward declaration */
20
21
22
/* starting interface:    nsICacheInfoChannel */
23
#define NS_ICACHEINFOCHANNEL_IID_STR "72c34415-c6eb-48af-851f-772fa9ee5972"
24
25
#define NS_ICACHEINFOCHANNEL_IID \
26
  {0x72c34415, 0xc6eb, 0x48af, \
27
    { 0x85, 0x1f, 0x77, 0x2f, 0xa9, 0xee, 0x59, 0x72 }}
28
29
class NS_NO_VTABLE nsICacheInfoChannel : public nsISupports {
30
 public:
31
32
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEINFOCHANNEL_IID)
33
34
  /* readonly attribute int32_t cacheTokenFetchCount; */
35
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount) = 0;
36
37
  /* readonly attribute uint32_t cacheTokenExpirationTime; */
38
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime) = 0;
39
40
  /* attribute ACString cacheTokenCachedCharset; */
41
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCacheTokenCachedCharset(nsACString& aCacheTokenCachedCharset) = 0;
42
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCacheTokenCachedCharset(const nsACString& aCacheTokenCachedCharset) = 0;
43
44
  /* boolean isFromCache (); */
45
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsFromCache(bool *_retval) = 0;
46
47
  /* uint64_t getCacheEntryId (); */
48
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCacheEntryId(uint64_t *_retval) = 0;
49
50
  /* attribute unsigned long cacheKey; */
51
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCacheKey(uint32_t *aCacheKey) = 0;
52
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCacheKey(uint32_t aCacheKey) = 0;
53
54
  /* attribute boolean allowStaleCacheContent; */
55
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAllowStaleCacheContent(bool *aAllowStaleCacheContent) = 0;
56
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAllowStaleCacheContent(bool aAllowStaleCacheContent) = 0;
57
58
  /* void preferAlternativeDataType (in ACString type); */
59
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PreferAlternativeDataType(const nsACString& type) = 0;
60
61
  /* readonly attribute ACString preferredAlternativeDataType; */
62
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPreferredAlternativeDataType(nsACString& aPreferredAlternativeDataType) = 0;
63
64
  /* readonly attribute ACString alternativeDataType; */
65
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAlternativeDataType(nsACString& aAlternativeDataType) = 0;
66
67
  /* nsIOutputStream openAlternativeOutputStream (in ACString type, in long long predictedSize); */
68
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenAlternativeOutputStream(const nsACString& type, int64_t predictedSize, nsIOutputStream **_retval) = 0;
69
70
};
71
72
  NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheInfoChannel, NS_ICACHEINFOCHANNEL_IID)
73
74
/* Use this macro when declaring classes that implement this interface. */
75
#define NS_DECL_NSICACHEINFOCHANNEL \
76
  NS_IMETHOD GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount) override; \
77
  NS_IMETHOD GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime) override; \
78
  NS_IMETHOD GetCacheTokenCachedCharset(nsACString& aCacheTokenCachedCharset) override; \
79
  NS_IMETHOD SetCacheTokenCachedCharset(const nsACString& aCacheTokenCachedCharset) override; \
80
  NS_IMETHOD IsFromCache(bool *_retval) override; \
81
  NS_IMETHOD GetCacheEntryId(uint64_t *_retval) override; \
82
  NS_IMETHOD GetCacheKey(uint32_t *aCacheKey) override; \
83
  NS_IMETHOD SetCacheKey(uint32_t aCacheKey) override; \
84
  NS_IMETHOD GetAllowStaleCacheContent(bool *aAllowStaleCacheContent) override; \
85
  NS_IMETHOD SetAllowStaleCacheContent(bool aAllowStaleCacheContent) override; \
86
  NS_IMETHOD PreferAlternativeDataType(const nsACString& type) override; \
87
  NS_IMETHOD GetPreferredAlternativeDataType(nsACString& aPreferredAlternativeDataType) override; \
88
  NS_IMETHOD GetAlternativeDataType(nsACString& aAlternativeDataType) override; \
89
  NS_IMETHOD OpenAlternativeOutputStream(const nsACString& type, int64_t predictedSize, nsIOutputStream **_retval) override; 
90
91
/* Use this macro when declaring the members of this interface when the
92
   class doesn't implement the interface. This is useful for forwarding. */
93
#define NS_DECL_NON_VIRTUAL_NSICACHEINFOCHANNEL \
94
  nsresult GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount); \
95
  nsresult GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime); \
96
  nsresult GetCacheTokenCachedCharset(nsACString& aCacheTokenCachedCharset); \
97
  nsresult SetCacheTokenCachedCharset(const nsACString& aCacheTokenCachedCharset); \
98
  nsresult IsFromCache(bool *_retval); \
99
  nsresult GetCacheEntryId(uint64_t *_retval); \
100
  nsresult GetCacheKey(uint32_t *aCacheKey); \
101
  nsresult SetCacheKey(uint32_t aCacheKey); \
102
  nsresult GetAllowStaleCacheContent(bool *aAllowStaleCacheContent); \
103
  nsresult SetAllowStaleCacheContent(bool aAllowStaleCacheContent); \
104
  nsresult PreferAlternativeDataType(const nsACString& type); \
105
  nsresult GetPreferredAlternativeDataType(nsACString& aPreferredAlternativeDataType); \
106
  nsresult GetAlternativeDataType(nsACString& aAlternativeDataType); \
107
  nsresult OpenAlternativeOutputStream(const nsACString& type, int64_t predictedSize, nsIOutputStream **_retval); 
108
109
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
110
#define NS_FORWARD_NSICACHEINFOCHANNEL(_to) \
111
  NS_IMETHOD GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount) override { return _to GetCacheTokenFetchCount(aCacheTokenFetchCount); } \
112
  NS_IMETHOD GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime) override { return _to GetCacheTokenExpirationTime(aCacheTokenExpirationTime); } \
113
  NS_IMETHOD GetCacheTokenCachedCharset(nsACString& aCacheTokenCachedCharset) override { return _to GetCacheTokenCachedCharset(aCacheTokenCachedCharset); } \
114
  NS_IMETHOD SetCacheTokenCachedCharset(const nsACString& aCacheTokenCachedCharset) override { return _to SetCacheTokenCachedCharset(aCacheTokenCachedCharset); } \
115
  NS_IMETHOD IsFromCache(bool *_retval) override { return _to IsFromCache(_retval); } \
116
  NS_IMETHOD GetCacheEntryId(uint64_t *_retval) override { return _to GetCacheEntryId(_retval); } \
117
  NS_IMETHOD GetCacheKey(uint32_t *aCacheKey) override { return _to GetCacheKey(aCacheKey); } \
118
  NS_IMETHOD SetCacheKey(uint32_t aCacheKey) override { return _to SetCacheKey(aCacheKey); } \
119
  NS_IMETHOD GetAllowStaleCacheContent(bool *aAllowStaleCacheContent) override { return _to GetAllowStaleCacheContent(aAllowStaleCacheContent); } \
120
  NS_IMETHOD SetAllowStaleCacheContent(bool aAllowStaleCacheContent) override { return _to SetAllowStaleCacheContent(aAllowStaleCacheContent); } \
121
  NS_IMETHOD PreferAlternativeDataType(const nsACString& type) override { return _to PreferAlternativeDataType(type); } \
122
  NS_IMETHOD GetPreferredAlternativeDataType(nsACString& aPreferredAlternativeDataType) override { return _to GetPreferredAlternativeDataType(aPreferredAlternativeDataType); } \
123
  NS_IMETHOD GetAlternativeDataType(nsACString& aAlternativeDataType) override { return _to GetAlternativeDataType(aAlternativeDataType); } \
124
  NS_IMETHOD OpenAlternativeOutputStream(const nsACString& type, int64_t predictedSize, nsIOutputStream **_retval) override { return _to OpenAlternativeOutputStream(type, predictedSize, _retval); } 
125
126
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
127
#define NS_FORWARD_SAFE_NSICACHEINFOCHANNEL(_to) \
128
0
  NS_IMETHOD GetCacheTokenFetchCount(int32_t *aCacheTokenFetchCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheTokenFetchCount(aCacheTokenFetchCount); } \
129
0
  NS_IMETHOD GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheTokenExpirationTime(aCacheTokenExpirationTime); } \
130
0
  NS_IMETHOD GetCacheTokenCachedCharset(nsACString& aCacheTokenCachedCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheTokenCachedCharset(aCacheTokenCachedCharset); } \
131
0
  NS_IMETHOD SetCacheTokenCachedCharset(const nsACString& aCacheTokenCachedCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCacheTokenCachedCharset(aCacheTokenCachedCharset); } \
132
0
  NS_IMETHOD IsFromCache(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsFromCache(_retval); } \
133
0
  NS_IMETHOD GetCacheEntryId(uint64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheEntryId(_retval); } \
134
0
  NS_IMETHOD GetCacheKey(uint32_t *aCacheKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheKey(aCacheKey); } \
135
0
  NS_IMETHOD SetCacheKey(uint32_t aCacheKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCacheKey(aCacheKey); } \
136
0
  NS_IMETHOD GetAllowStaleCacheContent(bool *aAllowStaleCacheContent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowStaleCacheContent(aAllowStaleCacheContent); } \
137
0
  NS_IMETHOD SetAllowStaleCacheContent(bool aAllowStaleCacheContent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowStaleCacheContent(aAllowStaleCacheContent); } \
138
0
  NS_IMETHOD PreferAlternativeDataType(const nsACString& type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PreferAlternativeDataType(type); } \
139
0
  NS_IMETHOD GetPreferredAlternativeDataType(nsACString& aPreferredAlternativeDataType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferredAlternativeDataType(aPreferredAlternativeDataType); } \
140
0
  NS_IMETHOD GetAlternativeDataType(nsACString& aAlternativeDataType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlternativeDataType(aAlternativeDataType); } \
141
0
  NS_IMETHOD OpenAlternativeOutputStream(const nsACString& type, int64_t predictedSize, nsIOutputStream **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenAlternativeOutputStream(type, predictedSize, _retval); } 
142
143
144
#endif /* __gen_nsICacheInfoChannel_h__ */