Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIHstsPrimingCallback.idl
3 : */
4 :
5 : #ifndef __gen_nsIHstsPrimingCallback_h__
6 : #define __gen_nsIHstsPrimingCallback_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: nsIHstsPrimingCallback */
19 : #define NS_IHSTSPRIMINGCALLBACK_IID_STR "eca6daca-3f2a-4a2a-b3bf-9f24f79bc999"
20 :
21 : #define NS_IHSTSPRIMINGCALLBACK_IID \
22 : {0xeca6daca, 0x3f2a, 0x4a2a, \
23 : { 0xb3, 0xbf, 0x9f, 0x24, 0xf7, 0x9b, 0xc9, 0x99 }}
24 :
25 7 : class NS_NO_VTABLE nsIHstsPrimingCallback : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHSTSPRIMINGCALLBACK_IID)
29 :
30 : /* [must_use,noscript,nostdcall] void onHSTSPrimingSucceeded (in bool aCached); */
31 : MOZ_MUST_USE virtual nsresult OnHSTSPrimingSucceeded(bool aCached) = 0;
32 :
33 : /* [must_use,noscript,nostdcall] void onHSTSPrimingFailed (in nsresult aError, in bool aCached); */
34 : MOZ_MUST_USE virtual nsresult OnHSTSPrimingFailed(nsresult aError, bool aCached) = 0;
35 :
36 : };
37 :
38 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIHstsPrimingCallback, NS_IHSTSPRIMINGCALLBACK_IID)
39 :
40 : /* Use this macro when declaring classes that implement this interface. */
41 : #define NS_DECL_NSIHSTSPRIMINGCALLBACK \
42 : MOZ_MUST_USE virtual nsresult OnHSTSPrimingSucceeded(bool aCached) override; \
43 : MOZ_MUST_USE virtual nsresult OnHSTSPrimingFailed(nsresult aError, bool aCached) override;
44 :
45 : /* Use this macro when declaring the members of this interface when the
46 : class doesn't implement the interface. This is useful for forwarding. */
47 : #define NS_DECL_NON_VIRTUAL_NSIHSTSPRIMINGCALLBACK \
48 : MOZ_MUST_USE nsresult OnHSTSPrimingSucceeded(bool aCached); \
49 : MOZ_MUST_USE nsresult OnHSTSPrimingFailed(nsresult aError, bool aCached);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSIHSTSPRIMINGCALLBACK(_to) \
53 : MOZ_MUST_USE virtual nsresult OnHSTSPrimingSucceeded(bool aCached) override { return _to OnHSTSPrimingSucceeded(aCached); } \
54 : MOZ_MUST_USE virtual nsresult OnHSTSPrimingFailed(nsresult aError, bool aCached) override { return _to OnHSTSPrimingFailed(aError, aCached); }
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
57 : #define NS_FORWARD_SAFE_NSIHSTSPRIMINGCALLBACK(_to) \
58 : MOZ_MUST_USE virtual nsresult OnHSTSPrimingSucceeded(bool aCached) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnHSTSPrimingSucceeded(aCached); } \
59 : MOZ_MUST_USE virtual nsresult OnHSTSPrimingFailed(nsresult aError, bool aCached) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnHSTSPrimingFailed(aError, aCached); }
60 :
61 : #if 0
62 : /* Use the code below as a template for the implementation class for this interface. */
63 :
64 : /* Header file */
65 : class nsHstsPrimingCallback : public nsIHstsPrimingCallback
66 : {
67 : public:
68 : NS_DECL_ISUPPORTS
69 : NS_DECL_NSIHSTSPRIMINGCALLBACK
70 :
71 : nsHstsPrimingCallback();
72 :
73 : private:
74 : ~nsHstsPrimingCallback();
75 :
76 : protected:
77 : /* additional members */
78 : };
79 :
80 : /* Implementation file */
81 : NS_IMPL_ISUPPORTS(nsHstsPrimingCallback, nsIHstsPrimingCallback)
82 :
83 : nsHstsPrimingCallback::nsHstsPrimingCallback()
84 : {
85 : /* member initializers and constructor code */
86 : }
87 :
88 : nsHstsPrimingCallback::~nsHstsPrimingCallback()
89 : {
90 : /* destructor code */
91 : }
92 :
93 : /* [must_use,noscript,nostdcall] void onHSTSPrimingSucceeded (in bool aCached); */
94 : MOZ_MUST_USE nsresult nsHstsPrimingCallback::OnHSTSPrimingSucceeded(bool aCached)
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* [must_use,noscript,nostdcall] void onHSTSPrimingFailed (in nsresult aError, in bool aCached); */
100 : MOZ_MUST_USE nsresult nsHstsPrimingCallback::OnHSTSPrimingFailed(nsresult aError, bool aCached)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* End of implementation class template. */
106 : #endif
107 :
108 :
109 : #endif /* __gen_nsIHstsPrimingCallback_h__ */
|