OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 void setAppCacheHostID(int id) { m_appCacheHostID = id; } | 164 void setAppCacheHostID(int id) { m_appCacheHostID = id; } |
165 | 165 |
166 // True if request was user initiated. | 166 // True if request was user initiated. |
167 bool hasUserGesture() const { return m_hasUserGesture; } | 167 bool hasUserGesture() const { return m_hasUserGesture; } |
168 void setHasUserGesture(bool hasUserGesture) { m_hasUserGesture = hasUserGest
ure; } | 168 void setHasUserGesture(bool hasUserGesture) { m_hasUserGesture = hasUserGest
ure; } |
169 | 169 |
170 // True if request should be downloaded to file. | 170 // True if request should be downloaded to file. |
171 bool downloadToFile() const { return m_downloadToFile; } | 171 bool downloadToFile() const { return m_downloadToFile; } |
172 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToF
ile; } | 172 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToF
ile; } |
173 | 173 |
| 174 // True if the requestor wants to receive a response body as |
| 175 // WebDataConsumerHandle. |
| 176 bool useStreamOnResponse() const { return m_useStreamOnResponse; } |
| 177 void setUseStreamOnResponse(bool useStreamOnResponse) { m_useStreamOnRespons
e = useStreamOnResponse; } |
| 178 |
174 // True if the request should not be handled by the ServiceWorker. | 179 // True if the request should not be handled by the ServiceWorker. |
175 bool skipServiceWorker() const { return m_skipServiceWorker; } | 180 bool skipServiceWorker() const { return m_skipServiceWorker; } |
176 void setSkipServiceWorker(bool skipServiceWorker) { m_skipServiceWorker = sk
ipServiceWorker; } | 181 void setSkipServiceWorker(bool skipServiceWorker) { m_skipServiceWorker = sk
ipServiceWorker; } |
177 | 182 |
178 // Extra data associated with this request. | 183 // Extra data associated with this request. |
179 ExtraData* extraData() const { return m_extraData.get(); } | 184 ExtraData* extraData() const { return m_extraData.get(); } |
180 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } | 185 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } |
181 | 186 |
182 WebURLRequest::RequestContext requestContext() const { return m_requestConte
xt; } | 187 WebURLRequest::RequestContext requestContext() const { return m_requestConte
xt; } |
183 void setRequestContext(WebURLRequest::RequestContext context) { m_requestCon
text = context; } | 188 void setRequestContext(WebURLRequest::RequestContext context) { m_requestCon
text = context; } |
(...skipping 26 matching lines...) Expand all Loading... |
210 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. | 215 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. |
211 KURL m_firstPartyForCookies; | 216 KURL m_firstPartyForCookies; |
212 AtomicString m_httpMethod; | 217 AtomicString m_httpMethod; |
213 HTTPHeaderMap m_httpHeaderFields; | 218 HTTPHeaderMap m_httpHeaderFields; |
214 RefPtr<FormData> m_httpBody; | 219 RefPtr<FormData> m_httpBody; |
215 bool m_allowStoredCredentials : 1; | 220 bool m_allowStoredCredentials : 1; |
216 bool m_reportUploadProgress : 1; | 221 bool m_reportUploadProgress : 1; |
217 bool m_reportRawHeaders : 1; | 222 bool m_reportRawHeaders : 1; |
218 bool m_hasUserGesture : 1; | 223 bool m_hasUserGesture : 1; |
219 bool m_downloadToFile : 1; | 224 bool m_downloadToFile : 1; |
| 225 bool m_useStreamOnResponse : 1; |
220 bool m_skipServiceWorker : 1; | 226 bool m_skipServiceWorker : 1; |
221 ResourceLoadPriority m_priority; | 227 ResourceLoadPriority m_priority; |
222 int m_intraPriorityValue; | 228 int m_intraPriorityValue; |
223 int m_requestorID; | 229 int m_requestorID; |
224 int m_requestorProcessID; | 230 int m_requestorProcessID; |
225 int m_appCacheHostID; | 231 int m_appCacheHostID; |
226 RefPtr<ExtraData> m_extraData; | 232 RefPtr<ExtraData> m_extraData; |
227 WebURLRequest::RequestContext m_requestContext; | 233 WebURLRequest::RequestContext m_requestContext; |
228 WebURLRequest::FrameType m_frameType; | 234 WebURLRequest::FrameType m_frameType; |
229 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 235 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
(...skipping 21 matching lines...) Expand all Loading... |
251 KURL m_firstPartyForCookies; | 257 KURL m_firstPartyForCookies; |
252 | 258 |
253 String m_httpMethod; | 259 String m_httpMethod; |
254 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; | 260 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; |
255 RefPtr<FormData> m_httpBody; | 261 RefPtr<FormData> m_httpBody; |
256 bool m_allowStoredCredentials; | 262 bool m_allowStoredCredentials; |
257 bool m_reportUploadProgress; | 263 bool m_reportUploadProgress; |
258 bool m_hasUserGesture; | 264 bool m_hasUserGesture; |
259 bool m_downloadToFile; | 265 bool m_downloadToFile; |
260 bool m_skipServiceWorker; | 266 bool m_skipServiceWorker; |
| 267 bool m_useStreamOnResponse; |
261 ResourceLoadPriority m_priority; | 268 ResourceLoadPriority m_priority; |
262 int m_intraPriorityValue; | 269 int m_intraPriorityValue; |
263 int m_requestorID; | 270 int m_requestorID; |
264 int m_requestorProcessID; | 271 int m_requestorProcessID; |
265 int m_appCacheHostID; | 272 int m_appCacheHostID; |
266 WebURLRequest::RequestContext m_requestContext; | 273 WebURLRequest::RequestContext m_requestContext; |
267 WebURLRequest::FrameType m_frameType; | 274 WebURLRequest::FrameType m_frameType; |
268 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 275 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
269 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 276 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
270 ReferrerPolicy m_referrerPolicy; | 277 ReferrerPolicy m_referrerPolicy; |
271 }; | 278 }; |
272 | 279 |
273 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 280 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
274 | 281 |
275 } // namespace blink | 282 } // namespace blink |
276 | 283 |
277 #endif // ResourceRequest_h | 284 #endif // ResourceRequest_h |
OLD | NEW |