| 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 |
| 195 { |
| 196 return m_fetchRequestMode; |
| 197 } |
| 198 void setFetchRequestMode(blink::WebURLRequest::FetchRequestMode mode) |
| 199 { |
| 200 m_fetchRequestMode = mode; |
| 201 } |
| 202 |
| 194 bool cacheControlContainsNoCache() const; | 203 bool cacheControlContainsNoCache() const; |
| 195 bool cacheControlContainsNoStore() const; | 204 bool cacheControlContainsNoStore() const; |
| 196 bool hasCacheValidatorFields() const; | 205 bool hasCacheValidatorFields() const; |
| 197 | 206 |
| 198 static double defaultTimeoutInterval(); // May return 0 when using platform
default. | 207 static double defaultTimeoutInterval(); // May return 0 when using platform
default. |
| 199 static void setDefaultTimeoutInterval(double); | 208 static void setDefaultTimeoutInterval(double); |
| 200 | 209 |
| 201 static bool compare(const ResourceRequest&, const ResourceRequest&); | 210 static bool compare(const ResourceRequest&, const ResourceRequest&); |
| 202 | 211 |
| 203 private: | 212 private: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 219 bool m_downloadToFile : 1; | 228 bool m_downloadToFile : 1; |
| 220 bool m_skipServiceWorker : 1; | 229 bool m_skipServiceWorker : 1; |
| 221 ResourceLoadPriority m_priority; | 230 ResourceLoadPriority m_priority; |
| 222 int m_intraPriorityValue; | 231 int m_intraPriorityValue; |
| 223 int m_requestorID; | 232 int m_requestorID; |
| 224 int m_requestorProcessID; | 233 int m_requestorProcessID; |
| 225 int m_appCacheHostID; | 234 int m_appCacheHostID; |
| 226 RefPtr<ExtraData> m_extraData; | 235 RefPtr<ExtraData> m_extraData; |
| 227 blink::WebURLRequest::RequestContext m_requestContext; | 236 blink::WebURLRequest::RequestContext m_requestContext; |
| 228 blink::WebURLRequest::FrameType m_frameType; | 237 blink::WebURLRequest::FrameType m_frameType; |
| 238 blink::WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| 229 ReferrerPolicy m_referrerPolicy; | 239 ReferrerPolicy m_referrerPolicy; |
| 230 | 240 |
| 231 mutable CacheControlHeader m_cacheControlHeaderCache; | 241 mutable CacheControlHeader m_cacheControlHeaderCache; |
| 232 | 242 |
| 233 static double s_defaultTimeoutInterval; | 243 static double s_defaultTimeoutInterval; |
| 234 }; | 244 }; |
| 235 | 245 |
| 236 bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&); | 246 bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&); |
| 237 | 247 |
| 238 inline bool operator==(const ResourceRequest& a, const ResourceRequest& b) { ret
urn ResourceRequest::compare(a, b); } | 248 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; | 266 bool m_hasUserGesture; |
| 257 bool m_downloadToFile; | 267 bool m_downloadToFile; |
| 258 bool m_skipServiceWorker; | 268 bool m_skipServiceWorker; |
| 259 ResourceLoadPriority m_priority; | 269 ResourceLoadPriority m_priority; |
| 260 int m_intraPriorityValue; | 270 int m_intraPriorityValue; |
| 261 int m_requestorID; | 271 int m_requestorID; |
| 262 int m_requestorProcessID; | 272 int m_requestorProcessID; |
| 263 int m_appCacheHostID; | 273 int m_appCacheHostID; |
| 264 blink::WebURLRequest::RequestContext m_requestContext; | 274 blink::WebURLRequest::RequestContext m_requestContext; |
| 265 blink::WebURLRequest::FrameType m_frameType; | 275 blink::WebURLRequest::FrameType m_frameType; |
| 276 blink::WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| 266 ReferrerPolicy m_referrerPolicy; | 277 ReferrerPolicy m_referrerPolicy; |
| 267 }; | 278 }; |
| 268 | 279 |
| 269 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 280 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
| 270 | 281 |
| 271 } // namespace blink | 282 } // namespace blink |
| 272 | 283 |
| 273 #endif // ResourceRequest_h | 284 #endif // ResourceRequest_h |
| OLD | NEW |