1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/uriloader/prefetch/nsIPrefetchService.idl
3 : */
4 :
5 : #ifndef __gen_nsIPrefetchService_h__
6 : #define __gen_nsIPrefetchService_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 : class nsIDOMNode; /* forward declaration */
20 :
21 : class nsISimpleEnumerator; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIPrefetchService */
25 : #define NS_IPREFETCHSERVICE_IID_STR "cba513eb-c457-4b93-832c-1a979e66edd1"
26 :
27 : #define NS_IPREFETCHSERVICE_IID \
28 : {0xcba513eb, 0xc457, 0x4b93, \
29 : { 0x83, 0x2c, 0x1a, 0x97, 0x9e, 0x66, 0xed, 0xd1 }}
30 :
31 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPrefetchService : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPREFETCHSERVICE_IID)
35 :
36 : /* void prefetchURI (in nsIURI aURI, in nsIURI aReferrerURI, in nsIDOMNode aSource, in boolean aExplicit); */
37 : NS_SCRIPTABLE NS_IMETHOD PrefetchURI(nsIURI *aURI, nsIURI *aReferrerURI, nsIDOMNode *aSource, bool aExplicit) = 0;
38 :
39 : /* void prefetchURIForOfflineUse (in nsIURI aURI, in nsIURI aReferrerURI, in nsIDOMNode aSource, in boolean aExplicit); */
40 : NS_SCRIPTABLE NS_IMETHOD PrefetchURIForOfflineUse(nsIURI *aURI, nsIURI *aReferrerURI, nsIDOMNode *aSource, bool aExplicit) = 0;
41 :
42 : /* nsISimpleEnumerator enumerateQueue (in boolean aIncludeNormalItems, in boolean aIncludeOfflineItems); */
43 : NS_SCRIPTABLE NS_IMETHOD EnumerateQueue(bool aIncludeNormalItems, bool aIncludeOfflineItems, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrefetchService, NS_IPREFETCHSERVICE_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIPREFETCHSERVICE \
51 : NS_SCRIPTABLE NS_IMETHOD PrefetchURI(nsIURI *aURI, nsIURI *aReferrerURI, nsIDOMNode *aSource, bool aExplicit); \
52 : NS_SCRIPTABLE NS_IMETHOD PrefetchURIForOfflineUse(nsIURI *aURI, nsIURI *aReferrerURI, nsIDOMNode *aSource, bool aExplicit); \
53 : NS_SCRIPTABLE NS_IMETHOD EnumerateQueue(bool aIncludeNormalItems, bool aIncludeOfflineItems, nsISimpleEnumerator * *_retval NS_OUTPARAM);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIPREFETCHSERVICE(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD PrefetchURI(nsIURI *aURI, nsIURI *aReferrerURI, nsIDOMNode *aSource, bool aExplicit) { return _to PrefetchURI(aURI, aReferrerURI, aSource, aExplicit); } \
58 : NS_SCRIPTABLE NS_IMETHOD PrefetchURIForOfflineUse(nsIURI *aURI, nsIURI *aReferrerURI, nsIDOMNode *aSource, bool aExplicit) { return _to PrefetchURIForOfflineUse(aURI, aReferrerURI, aSource, aExplicit); } \
59 : NS_SCRIPTABLE NS_IMETHOD EnumerateQueue(bool aIncludeNormalItems, bool aIncludeOfflineItems, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to EnumerateQueue(aIncludeNormalItems, aIncludeOfflineItems, _retval); }
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
62 : #define NS_FORWARD_SAFE_NSIPREFETCHSERVICE(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD PrefetchURI(nsIURI *aURI, nsIURI *aReferrerURI, nsIDOMNode *aSource, bool aExplicit) { return !_to ? NS_ERROR_NULL_POINTER : _to->PrefetchURI(aURI, aReferrerURI, aSource, aExplicit); } \
64 : NS_SCRIPTABLE NS_IMETHOD PrefetchURIForOfflineUse(nsIURI *aURI, nsIURI *aReferrerURI, nsIDOMNode *aSource, bool aExplicit) { return !_to ? NS_ERROR_NULL_POINTER : _to->PrefetchURIForOfflineUse(aURI, aReferrerURI, aSource, aExplicit); } \
65 : NS_SCRIPTABLE NS_IMETHOD EnumerateQueue(bool aIncludeNormalItems, bool aIncludeOfflineItems, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateQueue(aIncludeNormalItems, aIncludeOfflineItems, _retval); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsPrefetchService : public nsIPrefetchService
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIPREFETCHSERVICE
76 :
77 : nsPrefetchService();
78 :
79 : private:
80 : ~nsPrefetchService();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsPrefetchService, nsIPrefetchService)
88 :
89 : nsPrefetchService::nsPrefetchService()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsPrefetchService::~nsPrefetchService()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* void prefetchURI (in nsIURI aURI, in nsIURI aReferrerURI, in nsIDOMNode aSource, in boolean aExplicit); */
100 : NS_IMETHODIMP nsPrefetchService::PrefetchURI(nsIURI *aURI, nsIURI *aReferrerURI, nsIDOMNode *aSource, bool aExplicit)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* void prefetchURIForOfflineUse (in nsIURI aURI, in nsIURI aReferrerURI, in nsIDOMNode aSource, in boolean aExplicit); */
106 : NS_IMETHODIMP nsPrefetchService::PrefetchURIForOfflineUse(nsIURI *aURI, nsIURI *aReferrerURI, nsIDOMNode *aSource, bool aExplicit)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* nsISimpleEnumerator enumerateQueue (in boolean aIncludeNormalItems, in boolean aIncludeOfflineItems); */
112 : NS_IMETHODIMP nsPrefetchService::EnumerateQueue(bool aIncludeNormalItems, bool aIncludeOfflineItems, nsISimpleEnumerator * *_retval NS_OUTPARAM)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* End of implementation class template. */
118 : #endif
119 :
120 :
121 : #endif /* __gen_nsIPrefetchService_h__ */
|