/work/obj-fuzz/dist/include/nsIDOMStorageManager.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/dom/interfaces/storage/nsIDOMStorageManager.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIDOMStorageManager_h__ |
6 | | #define __gen_nsIDOMStorageManager_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 nsIPrincipal; /* forward declaration */ |
20 | | |
21 | | class mozIDOMWindow; /* forward declaration */ |
22 | | |
23 | | namespace mozilla { |
24 | | namespace dom { |
25 | | class Storage; /* webidl Storage */ |
26 | | } // namespace dom |
27 | | } // namespace mozilla |
28 | | |
29 | | |
30 | | /* starting interface: nsIDOMStorageManager */ |
31 | | #define NS_IDOMSTORAGEMANAGER_IID_STR "a20c742e-3ed1-44fb-b897-4080a75b1662" |
32 | | |
33 | | #define NS_IDOMSTORAGEMANAGER_IID \ |
34 | | {0xa20c742e, 0x3ed1, 0x44fb, \ |
35 | | { 0xb8, 0x97, 0x40, 0x80, 0xa7, 0x5b, 0x16, 0x62 }} |
36 | | |
37 | | class NS_NO_VTABLE nsIDOMStorageManager : public nsISupports { |
38 | | public: |
39 | | |
40 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSTORAGEMANAGER_IID) |
41 | | |
42 | | /* Storage precacheStorage (in nsIPrincipal aPrincipal); */ |
43 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, mozilla::dom::Storage **_retval) = 0; |
44 | | |
45 | | /* Storage createStorage (in mozIDOMWindow aWindow, in nsIPrincipal aPrincipal, in DOMString aDocumentURI, [optional] in bool aPrivate); */ |
46 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString& aDocumentURI, bool aPrivate, mozilla::dom::Storage **_retval) = 0; |
47 | | |
48 | | /* Storage getStorage (in mozIDOMWindow aWindow, in nsIPrincipal aPrincipal, [optional] in bool aPrivate); */ |
49 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, mozilla::dom::Storage **_retval) = 0; |
50 | | |
51 | | /* void cloneStorage (in Storage aStorageToCloneFrom); */ |
52 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CloneStorage(mozilla::dom::Storage *aStorageToCloneFrom) = 0; |
53 | | |
54 | | /* bool checkStorage (in nsIPrincipal aPrincipal, in Storage aStorage); */ |
55 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, mozilla::dom::Storage *aStorage, bool *_retval) = 0; |
56 | | |
57 | | }; |
58 | | |
59 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMStorageManager, NS_IDOMSTORAGEMANAGER_IID) |
60 | | |
61 | | /* Use this macro when declaring classes that implement this interface. */ |
62 | | #define NS_DECL_NSIDOMSTORAGEMANAGER \ |
63 | | NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, mozilla::dom::Storage **_retval) override; \ |
64 | | NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString& aDocumentURI, bool aPrivate, mozilla::dom::Storage **_retval) override; \ |
65 | | NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, mozilla::dom::Storage **_retval) override; \ |
66 | | NS_IMETHOD CloneStorage(mozilla::dom::Storage *aStorageToCloneFrom) override; \ |
67 | | NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, mozilla::dom::Storage *aStorage, bool *_retval) override; |
68 | | |
69 | | /* Use this macro when declaring the members of this interface when the |
70 | | class doesn't implement the interface. This is useful for forwarding. */ |
71 | | #define NS_DECL_NON_VIRTUAL_NSIDOMSTORAGEMANAGER \ |
72 | | nsresult PrecacheStorage(nsIPrincipal *aPrincipal, mozilla::dom::Storage **_retval); \ |
73 | | nsresult CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString& aDocumentURI, bool aPrivate, mozilla::dom::Storage **_retval); \ |
74 | | nsresult GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, mozilla::dom::Storage **_retval); \ |
75 | | nsresult CloneStorage(mozilla::dom::Storage *aStorageToCloneFrom); \ |
76 | | nsresult CheckStorage(nsIPrincipal *aPrincipal, mozilla::dom::Storage *aStorage, bool *_retval); |
77 | | |
78 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
79 | | #define NS_FORWARD_NSIDOMSTORAGEMANAGER(_to) \ |
80 | | NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, mozilla::dom::Storage **_retval) override { return _to PrecacheStorage(aPrincipal, _retval); } \ |
81 | | NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString& aDocumentURI, bool aPrivate, mozilla::dom::Storage **_retval) override { return _to CreateStorage(aWindow, aPrincipal, aDocumentURI, aPrivate, _retval); } \ |
82 | | NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, mozilla::dom::Storage **_retval) override { return _to GetStorage(aWindow, aPrincipal, aPrivate, _retval); } \ |
83 | | NS_IMETHOD CloneStorage(mozilla::dom::Storage *aStorageToCloneFrom) override { return _to CloneStorage(aStorageToCloneFrom); } \ |
84 | | NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, mozilla::dom::Storage *aStorage, bool *_retval) override { return _to CheckStorage(aPrincipal, aStorage, _retval); } |
85 | | |
86 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
87 | | #define NS_FORWARD_SAFE_NSIDOMSTORAGEMANAGER(_to) \ |
88 | 0 | NS_IMETHOD PrecacheStorage(nsIPrincipal *aPrincipal, mozilla::dom::Storage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PrecacheStorage(aPrincipal, _retval); } \ |
89 | 0 | NS_IMETHOD CreateStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, const nsAString& aDocumentURI, bool aPrivate, mozilla::dom::Storage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateStorage(aWindow, aPrincipal, aDocumentURI, aPrivate, _retval); } \ |
90 | 0 | NS_IMETHOD GetStorage(mozIDOMWindow *aWindow, nsIPrincipal *aPrincipal, bool aPrivate, mozilla::dom::Storage **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStorage(aWindow, aPrincipal, aPrivate, _retval); } \ |
91 | 0 | NS_IMETHOD CloneStorage(mozilla::dom::Storage *aStorageToCloneFrom) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneStorage(aStorageToCloneFrom); } \ |
92 | 0 | NS_IMETHOD CheckStorage(nsIPrincipal *aPrincipal, mozilla::dom::Storage *aStorage, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckStorage(aPrincipal, aStorage, _retval); } |
93 | | |
94 | | |
95 | | #endif /* __gen_nsIDOMStorageManager_h__ */ |