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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // Extra data associated with this request. | 184 // Extra data associated with this request. |
185 ExtraData* extraData() const { return m_extraData.get(); } | 185 ExtraData* extraData() const { return m_extraData.get(); } |
186 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } | 186 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } |
187 | 187 |
188 blink::WebURLRequest::RequestContext requestContext() const { return m_reque
stContext; } | 188 blink::WebURLRequest::RequestContext requestContext() const { return m_reque
stContext; } |
189 void setRequestContext(blink::WebURLRequest::RequestContext context) { m_req
uestContext = context; } | 189 void setRequestContext(blink::WebURLRequest::RequestContext context) { m_req
uestContext = context; } |
190 | 190 |
191 blink::WebURLRequest::FrameType frameType() const { return m_frameType; } | 191 blink::WebURLRequest::FrameType frameType() const { return m_frameType; } |
192 void setFrameType(blink::WebURLRequest::FrameType frameType) { m_frameType =
frameType; } | 192 void setFrameType(blink::WebURLRequest::FrameType frameType) { m_frameType =
frameType; } |
193 | 193 |
| 194 blink::WebURLRequest::FetchRequestMode fetchRequestMode() const { return m_f
etchRequestMode; } |
| 195 void setFetchRequestMode(blink::WebURLRequest::FetchRequestMode mode) { m_fe
tchRequestMode = mode; } |
| 196 |
194 bool cacheControlContainsNoCache() const; | 197 bool cacheControlContainsNoCache() const; |
195 bool cacheControlContainsNoStore() const; | 198 bool cacheControlContainsNoStore() const; |
196 bool hasCacheValidatorFields() const; | 199 bool hasCacheValidatorFields() const; |
197 | 200 |
198 static double defaultTimeoutInterval(); // May return 0 when using platform
default. | 201 static double defaultTimeoutInterval(); // May return 0 when using platform
default. |
199 static void setDefaultTimeoutInterval(double); | 202 static void setDefaultTimeoutInterval(double); |
200 | 203 |
201 static bool compare(const ResourceRequest&, const ResourceRequest&); | 204 static bool compare(const ResourceRequest&, const ResourceRequest&); |
202 | 205 |
203 private: | 206 private: |
(...skipping 15 matching lines...) Expand all Loading... |
219 bool m_downloadToFile : 1; | 222 bool m_downloadToFile : 1; |
220 bool m_skipServiceWorker : 1; | 223 bool m_skipServiceWorker : 1; |
221 ResourceLoadPriority m_priority; | 224 ResourceLoadPriority m_priority; |
222 int m_intraPriorityValue; | 225 int m_intraPriorityValue; |
223 int m_requestorID; | 226 int m_requestorID; |
224 int m_requestorProcessID; | 227 int m_requestorProcessID; |
225 int m_appCacheHostID; | 228 int m_appCacheHostID; |
226 RefPtr<ExtraData> m_extraData; | 229 RefPtr<ExtraData> m_extraData; |
227 blink::WebURLRequest::RequestContext m_requestContext; | 230 blink::WebURLRequest::RequestContext m_requestContext; |
228 blink::WebURLRequest::FrameType m_frameType; | 231 blink::WebURLRequest::FrameType m_frameType; |
| 232 blink::WebURLRequest::FetchRequestMode m_fetchRequestMode; |
229 ReferrerPolicy m_referrerPolicy; | 233 ReferrerPolicy m_referrerPolicy; |
230 | 234 |
231 mutable CacheControlHeader m_cacheControlHeaderCache; | 235 mutable CacheControlHeader m_cacheControlHeaderCache; |
232 | 236 |
233 static double s_defaultTimeoutInterval; | 237 static double s_defaultTimeoutInterval; |
234 }; | 238 }; |
235 | 239 |
236 bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&); | 240 bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&); |
237 | 241 |
238 inline bool operator==(const ResourceRequest& a, const ResourceRequest& b) { ret
urn ResourceRequest::compare(a, b); } | 242 inline bool operator==(const ResourceRequest& a, const ResourceRequest& b) { ret
urn ResourceRequest::compare(a, b); } |
(...skipping 17 matching lines...) Expand all Loading... |
256 bool m_hasUserGesture; | 260 bool m_hasUserGesture; |
257 bool m_downloadToFile; | 261 bool m_downloadToFile; |
258 bool m_skipServiceWorker; | 262 bool m_skipServiceWorker; |
259 ResourceLoadPriority m_priority; | 263 ResourceLoadPriority m_priority; |
260 int m_intraPriorityValue; | 264 int m_intraPriorityValue; |
261 int m_requestorID; | 265 int m_requestorID; |
262 int m_requestorProcessID; | 266 int m_requestorProcessID; |
263 int m_appCacheHostID; | 267 int m_appCacheHostID; |
264 blink::WebURLRequest::RequestContext m_requestContext; | 268 blink::WebURLRequest::RequestContext m_requestContext; |
265 blink::WebURLRequest::FrameType m_frameType; | 269 blink::WebURLRequest::FrameType m_frameType; |
| 270 blink::WebURLRequest::FetchRequestMode m_fetchRequestMode; |
266 ReferrerPolicy m_referrerPolicy; | 271 ReferrerPolicy m_referrerPolicy; |
267 }; | 272 }; |
268 | 273 |
269 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 274 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
270 | 275 |
271 } // namespace blink | 276 } // namespace blink |
272 | 277 |
273 #endif // ResourceRequest_h | 278 #endif // ResourceRequest_h |
OLD | NEW |