Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: gecko-sdk/include/nsILoadGroup.h

Issue 20346: Version 1.8 of gecko-sdk. Downloaded from here:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gecko-sdk/include/nsIInterfaceRequestorUtils.h ('k') | gecko-sdk/include/nsILocalFile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0 -Release/WINNT_5.2_Depend/mozilla/netwerk/base/public/nsILoadGroup.idl
3 */
4
5 #ifndef __gen_nsILoadGroup_h__
6 #define __gen_nsILoadGroup_h__
7
8
9 #ifndef __gen_nsIRequest_h__
10 #include "nsIRequest.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 nsISimpleEnumerator; /* forward declaration */
18
19 class nsIRequestObserver; /* forward declaration */
20
21 class nsIInterfaceRequestor; /* forward declaration */
22
23
24 /* starting interface: nsILoadGroup */
25 #define NS_ILOADGROUP_IID_STR "3de0a31c-feaf-400f-9f1e-4ef71f8b20cc"
26
27 #define NS_ILOADGROUP_IID \
28 {0x3de0a31c, 0xfeaf, 0x400f, \
29 { 0x9f, 0x1e, 0x4e, 0xf7, 0x1f, 0x8b, 0x20, 0xcc }}
30
31 class NS_NO_VTABLE nsILoadGroup : public nsIRequest {
32 public:
33
34 NS_DEFINE_STATIC_IID_ACCESSOR(NS_ILOADGROUP_IID)
35
36 /**
37 * A load group maintains a collection of nsIRequest objects.
38 *
39 * @status FROZEN
40 */
41 /**
42 * The group observer is notified when requests are added to and removed
43 * from this load group. The groupObserver is weak referenced.
44 */
45 /* attribute nsIRequestObserver groupObserver; */
46 NS_IMETHOD GetGroupObserver(nsIRequestObserver * *aGroupObserver) = 0;
47 NS_IMETHOD SetGroupObserver(nsIRequestObserver * aGroupObserver) = 0;
48
49 /**
50 * Accesses the default load request for the group. Each time a number
51 * of requests are added to a group, the defaultLoadRequest may be set
52 * to indicate that all of the requests are related to a base request.
53 *
54 * The load group inherits its load flags from the default load request.
55 * If the default load request is NULL, then the group's load flags are
56 * not changed.
57 */
58 /* attribute nsIRequest defaultLoadRequest; */
59 NS_IMETHOD GetDefaultLoadRequest(nsIRequest * *aDefaultLoadRequest) = 0;
60 NS_IMETHOD SetDefaultLoadRequest(nsIRequest * aDefaultLoadRequest) = 0;
61
62 /**
63 * Adds a new request to the group. This will cause the default load
64 * flags to be applied to the request. If this is a foreground
65 * request then the groupObserver's onStartRequest will be called.
66 *
67 * If the request is the default load request or if the default load
68 * request is null, then the load group will inherit its load flags from
69 * the request.
70 */
71 /* void addRequest (in nsIRequest aRequest, in nsISupports aContext); */
72 NS_IMETHOD AddRequest(nsIRequest *aRequest, nsISupports *aContext) = 0;
73
74 /**
75 * Removes a request from the group. If this is a foreground request
76 * then the groupObserver's onStopRequest will be called.
77 */
78 /* void removeRequest (in nsIRequest aRequest, in nsISupports aContext, in nsr esult aStatus); */
79 NS_IMETHOD RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus) = 0;
80
81 /**
82 * Returns the requests contained directly in this group.
83 * Enumerator element type: nsIRequest.
84 */
85 /* readonly attribute nsISimpleEnumerator requests; */
86 NS_IMETHOD GetRequests(nsISimpleEnumerator * *aRequests) = 0;
87
88 /**
89 * Returns the count of "active" requests (ie. requests without the
90 * LOAD_BACKGROUND bit set).
91 */
92 /* readonly attribute unsigned long activeCount; */
93 NS_IMETHOD GetActiveCount(PRUint32 *aActiveCount) = 0;
94
95 /**
96 * Notification callbacks for the load group.
97 */
98 /* attribute nsIInterfaceRequestor notificationCallbacks; */
99 NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCall backs) = 0;
100 NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallb acks) = 0;
101
102 };
103
104 /* Use this macro when declaring classes that implement this interface. */
105 #define NS_DECL_NSILOADGROUP \
106 NS_IMETHOD GetGroupObserver(nsIRequestObserver * *aGroupObserver); \
107 NS_IMETHOD SetGroupObserver(nsIRequestObserver * aGroupObserver); \
108 NS_IMETHOD GetDefaultLoadRequest(nsIRequest * *aDefaultLoadRequest); \
109 NS_IMETHOD SetDefaultLoadRequest(nsIRequest * aDefaultLoadRequest); \
110 NS_IMETHOD AddRequest(nsIRequest *aRequest, nsISupports *aContext); \
111 NS_IMETHOD RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus); \
112 NS_IMETHOD GetRequests(nsISimpleEnumerator * *aRequests); \
113 NS_IMETHOD GetActiveCount(PRUint32 *aActiveCount); \
114 NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCall backs); \
115 NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallb acks);
116
117 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
118 #define NS_FORWARD_NSILOADGROUP(_to) \
119 NS_IMETHOD GetGroupObserver(nsIRequestObserver * *aGroupObserver) { return _to GetGroupObserver(aGroupObserver); } \
120 NS_IMETHOD SetGroupObserver(nsIRequestObserver * aGroupObserver) { return _to SetGroupObserver(aGroupObserver); } \
121 NS_IMETHOD GetDefaultLoadRequest(nsIRequest * *aDefaultLoadRequest) { return _ to GetDefaultLoadRequest(aDefaultLoadRequest); } \
122 NS_IMETHOD SetDefaultLoadRequest(nsIRequest * aDefaultLoadRequest) { return _t o SetDefaultLoadRequest(aDefaultLoadRequest); } \
123 NS_IMETHOD AddRequest(nsIRequest *aRequest, nsISupports *aContext) { return _t o AddRequest(aRequest, aContext); } \
124 NS_IMETHOD RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus) { return _to RemoveRequest(aRequest, aContext, aStatus); } \
125 NS_IMETHOD GetRequests(nsISimpleEnumerator * *aRequests) { return _to GetReque sts(aRequests); } \
126 NS_IMETHOD GetActiveCount(PRUint32 *aActiveCount) { return _to GetActiveCount( aActiveCount); } \
127 NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCall backs) { return _to GetNotificationCallbacks(aNotificationCallbacks); } \
128 NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallb acks) { return _to SetNotificationCallbacks(aNotificationCallbacks); }
129
130 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
131 #define NS_FORWARD_SAFE_NSILOADGROUP(_to) \
132 NS_IMETHOD GetGroupObserver(nsIRequestObserver * *aGroupObserver) { return !_t o ? NS_ERROR_NULL_POINTER : _to->GetGroupObserver(aGroupObserver); } \
133 NS_IMETHOD SetGroupObserver(nsIRequestObserver * aGroupObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGroupObserver(aGroupObserver); } \
134 NS_IMETHOD GetDefaultLoadRequest(nsIRequest * *aDefaultLoadRequest) { return ! _to ? NS_ERROR_NULL_POINTER : _to->GetDefaultLoadRequest(aDefaultLoadRequest); } \
135 NS_IMETHOD SetDefaultLoadRequest(nsIRequest * aDefaultLoadRequest) { return !_ to ? NS_ERROR_NULL_POINTER : _to->SetDefaultLoadRequest(aDefaultLoadRequest); } \
136 NS_IMETHOD AddRequest(nsIRequest *aRequest, nsISupports *aContext) { return !_ to ? NS_ERROR_NULL_POINTER : _to->AddRequest(aRequest, aContext); } \
137 NS_IMETHOD RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveRequest(aRequest, a Context, aStatus); } \
138 NS_IMETHOD GetRequests(nsISimpleEnumerator * *aRequests) { return !_to ? NS_ER ROR_NULL_POINTER : _to->GetRequests(aRequests); } \
139 NS_IMETHOD GetActiveCount(PRUint32 *aActiveCount) { return !_to ? NS_ERROR_NUL L_POINTER : _to->GetActiveCount(aActiveCount); } \
140 NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCall backs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNo tificationCallbacks); } \
141 NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallb acks) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationCallbacks(aNot ificationCallbacks); }
142
143 #if 0
144 /* Use the code below as a template for the implementation class for this interf ace. */
145
146 /* Header file */
147 class nsLoadGroup : public nsILoadGroup
148 {
149 public:
150 NS_DECL_ISUPPORTS
151 NS_DECL_NSILOADGROUP
152
153 nsLoadGroup();
154
155 private:
156 ~nsLoadGroup();
157
158 protected:
159 /* additional members */
160 };
161
162 /* Implementation file */
163 NS_IMPL_ISUPPORTS1(nsLoadGroup, nsILoadGroup)
164
165 nsLoadGroup::nsLoadGroup()
166 {
167 /* member initializers and constructor code */
168 }
169
170 nsLoadGroup::~nsLoadGroup()
171 {
172 /* destructor code */
173 }
174
175 /* attribute nsIRequestObserver groupObserver; */
176 NS_IMETHODIMP nsLoadGroup::GetGroupObserver(nsIRequestObserver * *aGroupObserver )
177 {
178 return NS_ERROR_NOT_IMPLEMENTED;
179 }
180 NS_IMETHODIMP nsLoadGroup::SetGroupObserver(nsIRequestObserver * aGroupObserver)
181 {
182 return NS_ERROR_NOT_IMPLEMENTED;
183 }
184
185 /* attribute nsIRequest defaultLoadRequest; */
186 NS_IMETHODIMP nsLoadGroup::GetDefaultLoadRequest(nsIRequest * *aDefaultLoadReque st)
187 {
188 return NS_ERROR_NOT_IMPLEMENTED;
189 }
190 NS_IMETHODIMP nsLoadGroup::SetDefaultLoadRequest(nsIRequest * aDefaultLoadReques t)
191 {
192 return NS_ERROR_NOT_IMPLEMENTED;
193 }
194
195 /* void addRequest (in nsIRequest aRequest, in nsISupports aContext); */
196 NS_IMETHODIMP nsLoadGroup::AddRequest(nsIRequest *aRequest, nsISupports *aContex t)
197 {
198 return NS_ERROR_NOT_IMPLEMENTED;
199 }
200
201 /* void removeRequest (in nsIRequest aRequest, in nsISupports aContext, in nsres ult aStatus); */
202 NS_IMETHODIMP nsLoadGroup::RemoveRequest(nsIRequest *aRequest, nsISupports *aCon text, nsresult aStatus)
203 {
204 return NS_ERROR_NOT_IMPLEMENTED;
205 }
206
207 /* readonly attribute nsISimpleEnumerator requests; */
208 NS_IMETHODIMP nsLoadGroup::GetRequests(nsISimpleEnumerator * *aRequests)
209 {
210 return NS_ERROR_NOT_IMPLEMENTED;
211 }
212
213 /* readonly attribute unsigned long activeCount; */
214 NS_IMETHODIMP nsLoadGroup::GetActiveCount(PRUint32 *aActiveCount)
215 {
216 return NS_ERROR_NOT_IMPLEMENTED;
217 }
218
219 /* attribute nsIInterfaceRequestor notificationCallbacks; */
220 NS_IMETHODIMP nsLoadGroup::GetNotificationCallbacks(nsIInterfaceRequestor * *aNo tificationCallbacks)
221 {
222 return NS_ERROR_NOT_IMPLEMENTED;
223 }
224 NS_IMETHODIMP nsLoadGroup::SetNotificationCallbacks(nsIInterfaceRequestor * aNot ificationCallbacks)
225 {
226 return NS_ERROR_NOT_IMPLEMENTED;
227 }
228
229 /* End of implementation class template. */
230 #endif
231
232
233 #endif /* __gen_nsILoadGroup_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIInterfaceRequestorUtils.h ('k') | gecko-sdk/include/nsILocalFile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698