/work/obj-fuzz/dist/include/nsIApplicationCacheContainer.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsIApplicationCacheContainer.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIApplicationCacheContainer_h__ |
6 | | #define __gen_nsIApplicationCacheContainer_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 nsIApplicationCache; /* forward declaration */ |
20 | | |
21 | | |
22 | | /* starting interface: nsIApplicationCacheContainer */ |
23 | | #define NS_IAPPLICATIONCACHECONTAINER_IID_STR "bbb80700-1f7f-4258-aff4-1743cc5a7d23" |
24 | | |
25 | | #define NS_IAPPLICATIONCACHECONTAINER_IID \ |
26 | | {0xbbb80700, 0x1f7f, 0x4258, \ |
27 | | { 0xaf, 0xf4, 0x17, 0x43, 0xcc, 0x5a, 0x7d, 0x23 }} |
28 | | |
29 | | class NS_NO_VTABLE nsIApplicationCacheContainer : public nsISupports { |
30 | | public: |
31 | | |
32 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONCACHECONTAINER_IID) |
33 | | |
34 | | /* attribute nsIApplicationCache applicationCache; */ |
35 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetApplicationCache(nsIApplicationCache **aApplicationCache) = 0; |
36 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetApplicationCache(nsIApplicationCache *aApplicationCache) = 0; |
37 | | |
38 | | }; |
39 | | |
40 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationCacheContainer, NS_IAPPLICATIONCACHECONTAINER_IID) |
41 | | |
42 | | /* Use this macro when declaring classes that implement this interface. */ |
43 | | #define NS_DECL_NSIAPPLICATIONCACHECONTAINER \ |
44 | | NS_IMETHOD GetApplicationCache(nsIApplicationCache **aApplicationCache) override; \ |
45 | | NS_IMETHOD SetApplicationCache(nsIApplicationCache *aApplicationCache) override; |
46 | | |
47 | | /* Use this macro when declaring the members of this interface when the |
48 | | class doesn't implement the interface. This is useful for forwarding. */ |
49 | | #define NS_DECL_NON_VIRTUAL_NSIAPPLICATIONCACHECONTAINER \ |
50 | | nsresult GetApplicationCache(nsIApplicationCache **aApplicationCache); \ |
51 | | nsresult SetApplicationCache(nsIApplicationCache *aApplicationCache); |
52 | | |
53 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
54 | | #define NS_FORWARD_NSIAPPLICATIONCACHECONTAINER(_to) \ |
55 | 0 | NS_IMETHOD GetApplicationCache(nsIApplicationCache **aApplicationCache) override { return _to GetApplicationCache(aApplicationCache); } \ |
56 | 0 | NS_IMETHOD SetApplicationCache(nsIApplicationCache *aApplicationCache) override { return _to SetApplicationCache(aApplicationCache); } |
57 | | |
58 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
59 | | #define NS_FORWARD_SAFE_NSIAPPLICATIONCACHECONTAINER(_to) \ |
60 | 0 | NS_IMETHOD GetApplicationCache(nsIApplicationCache **aApplicationCache) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplicationCache(aApplicationCache); } \ |
61 | 0 | NS_IMETHOD SetApplicationCache(nsIApplicationCache *aApplicationCache) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetApplicationCache(aApplicationCache); } |
62 | | |
63 | | |
64 | | #endif /* __gen_nsIApplicationCacheContainer_h__ */ |