Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsINetworkPredictorVerifier.idl
3 : */
4 :
5 : #ifndef __gen_nsINetworkPredictorVerifier_h__
6 : #define __gen_nsINetworkPredictorVerifier_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 : class nsIURI; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsINetworkPredictorVerifier */
21 : #define NS_INETWORKPREDICTORVERIFIER_IID_STR "2e43bb32-dabf-4494-9f90-2b3195b1c73d"
22 :
23 : #define NS_INETWORKPREDICTORVERIFIER_IID \
24 : {0x2e43bb32, 0xdabf, 0x4494, \
25 : { 0x9f, 0x90, 0x2b, 0x31, 0x95, 0xb1, 0xc7, 0x3d }}
26 :
27 2 : class NS_NO_VTABLE nsINetworkPredictorVerifier : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INETWORKPREDICTORVERIFIER_IID)
31 :
32 : /* void onPredictPrefetch (in nsIURI uri, in uint32_t status); */
33 : NS_IMETHOD OnPredictPrefetch(nsIURI *uri, uint32_t status) = 0;
34 :
35 : /* void onPredictPreconnect (in nsIURI uri); */
36 : NS_IMETHOD OnPredictPreconnect(nsIURI *uri) = 0;
37 :
38 : /* void onPredictDNS (in nsIURI uri); */
39 : NS_IMETHOD OnPredictDNS(nsIURI *uri) = 0;
40 :
41 : };
42 :
43 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINetworkPredictorVerifier, NS_INETWORKPREDICTORVERIFIER_IID)
44 :
45 : /* Use this macro when declaring classes that implement this interface. */
46 : #define NS_DECL_NSINETWORKPREDICTORVERIFIER \
47 : NS_IMETHOD OnPredictPrefetch(nsIURI *uri, uint32_t status) override; \
48 : NS_IMETHOD OnPredictPreconnect(nsIURI *uri) override; \
49 : NS_IMETHOD OnPredictDNS(nsIURI *uri) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSINETWORKPREDICTORVERIFIER \
54 : nsresult OnPredictPrefetch(nsIURI *uri, uint32_t status); \
55 : nsresult OnPredictPreconnect(nsIURI *uri); \
56 : nsresult OnPredictDNS(nsIURI *uri);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSINETWORKPREDICTORVERIFIER(_to) \
60 : NS_IMETHOD OnPredictPrefetch(nsIURI *uri, uint32_t status) override { return _to OnPredictPrefetch(uri, status); } \
61 : NS_IMETHOD OnPredictPreconnect(nsIURI *uri) override { return _to OnPredictPreconnect(uri); } \
62 : NS_IMETHOD OnPredictDNS(nsIURI *uri) override { return _to OnPredictDNS(uri); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSINETWORKPREDICTORVERIFIER(_to) \
66 : NS_IMETHOD OnPredictPrefetch(nsIURI *uri, uint32_t status) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPredictPrefetch(uri, status); } \
67 : NS_IMETHOD OnPredictPreconnect(nsIURI *uri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPredictPreconnect(uri); } \
68 : NS_IMETHOD OnPredictDNS(nsIURI *uri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPredictDNS(uri); }
69 :
70 : #if 0
71 : /* Use the code below as a template for the implementation class for this interface. */
72 :
73 : /* Header file */
74 : class nsNetworkPredictorVerifier : public nsINetworkPredictorVerifier
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSINETWORKPREDICTORVERIFIER
79 :
80 : nsNetworkPredictorVerifier();
81 :
82 : private:
83 : ~nsNetworkPredictorVerifier();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS(nsNetworkPredictorVerifier, nsINetworkPredictorVerifier)
91 :
92 : nsNetworkPredictorVerifier::nsNetworkPredictorVerifier()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsNetworkPredictorVerifier::~nsNetworkPredictorVerifier()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* void onPredictPrefetch (in nsIURI uri, in uint32_t status); */
103 : NS_IMETHODIMP nsNetworkPredictorVerifier::OnPredictPrefetch(nsIURI *uri, uint32_t status)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* void onPredictPreconnect (in nsIURI uri); */
109 : NS_IMETHODIMP nsNetworkPredictorVerifier::OnPredictPreconnect(nsIURI *uri)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* void onPredictDNS (in nsIURI uri); */
115 : NS_IMETHODIMP nsNetworkPredictorVerifier::OnPredictDNS(nsIURI *uri)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* End of implementation class template. */
121 : #endif
122 :
123 :
124 : #endif /* __gen_nsINetworkPredictorVerifier_h__ */
|