| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 bool downloadToFile() const { return m_downloadToFile; } | 177 bool downloadToFile() const { return m_downloadToFile; } |
| 178 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToF
ile; } | 178 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToF
ile; } |
| 179 | 179 |
| 180 // Extra data associated with this request. | 180 // Extra data associated with this request. |
| 181 ExtraData* extraData() const { return m_extraData.get(); } | 181 ExtraData* extraData() const { return m_extraData.get(); } |
| 182 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } | 182 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } |
| 183 | 183 |
| 184 blink::WebURLRequest::RequestContext requestContext() const { return m_reque
stContext; } | 184 blink::WebURLRequest::RequestContext requestContext() const { return m_reque
stContext; } |
| 185 void setRequestContext(blink::WebURLRequest::RequestContext context) { m_req
uestContext = context; } | 185 void setRequestContext(blink::WebURLRequest::RequestContext context) { m_req
uestContext = context; } |
| 186 | 186 |
| 187 blink::WebURLRequest::FrameType frameType() const { return m_frameType; } |
| 188 void setFrameType(blink::WebURLRequest::FrameType frameType) { m_frameType =
frameType; } |
| 189 |
| 187 bool cacheControlContainsNoCache() const; | 190 bool cacheControlContainsNoCache() const; |
| 188 bool cacheControlContainsNoStore() const; | 191 bool cacheControlContainsNoStore() const; |
| 189 bool hasCacheValidatorFields() const; | 192 bool hasCacheValidatorFields() const; |
| 190 | 193 |
| 191 static double defaultTimeoutInterval(); // May return 0 when using platform
default. | 194 static double defaultTimeoutInterval(); // May return 0 when using platform
default. |
| 192 static void setDefaultTimeoutInterval(double); | 195 static void setDefaultTimeoutInterval(double); |
| 193 | 196 |
| 194 static bool compare(const ResourceRequest&, const ResourceRequest&); | 197 static bool compare(const ResourceRequest&, const ResourceRequest&); |
| 195 | 198 |
| 196 private: | 199 private: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 210 bool m_reportRawHeaders : 1; | 213 bool m_reportRawHeaders : 1; |
| 211 bool m_hasUserGesture : 1; | 214 bool m_hasUserGesture : 1; |
| 212 bool m_downloadToFile : 1; | 215 bool m_downloadToFile : 1; |
| 213 ResourceLoadPriority m_priority; | 216 ResourceLoadPriority m_priority; |
| 214 int m_intraPriorityValue; | 217 int m_intraPriorityValue; |
| 215 int m_requestorID; | 218 int m_requestorID; |
| 216 int m_requestorProcessID; | 219 int m_requestorProcessID; |
| 217 int m_appCacheHostID; | 220 int m_appCacheHostID; |
| 218 RefPtr<ExtraData> m_extraData; | 221 RefPtr<ExtraData> m_extraData; |
| 219 blink::WebURLRequest::RequestContext m_requestContext; | 222 blink::WebURLRequest::RequestContext m_requestContext; |
| 223 blink::WebURLRequest::FrameType m_frameType; |
| 220 ReferrerPolicy m_referrerPolicy; | 224 ReferrerPolicy m_referrerPolicy; |
| 221 | 225 |
| 222 mutable CacheControlHeader m_cacheControlHeaderCache; | 226 mutable CacheControlHeader m_cacheControlHeaderCache; |
| 223 | 227 |
| 224 static double s_defaultTimeoutInterval; | 228 static double s_defaultTimeoutInterval; |
| 225 }; | 229 }; |
| 226 | 230 |
| 227 bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&); | 231 bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&); |
| 228 | 232 |
| 229 inline bool operator==(const ResourceRequest& a, const ResourceRequest& b) { ret
urn ResourceRequest::compare(a, b); } | 233 inline bool operator==(const ResourceRequest& a, const ResourceRequest& b) { ret
urn ResourceRequest::compare(a, b); } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 245 bool m_allowStoredCredentials; | 249 bool m_allowStoredCredentials; |
| 246 bool m_reportUploadProgress; | 250 bool m_reportUploadProgress; |
| 247 bool m_hasUserGesture; | 251 bool m_hasUserGesture; |
| 248 bool m_downloadToFile; | 252 bool m_downloadToFile; |
| 249 ResourceLoadPriority m_priority; | 253 ResourceLoadPriority m_priority; |
| 250 int m_intraPriorityValue; | 254 int m_intraPriorityValue; |
| 251 int m_requestorID; | 255 int m_requestorID; |
| 252 int m_requestorProcessID; | 256 int m_requestorProcessID; |
| 253 int m_appCacheHostID; | 257 int m_appCacheHostID; |
| 254 blink::WebURLRequest::RequestContext m_requestContext; | 258 blink::WebURLRequest::RequestContext m_requestContext; |
| 259 blink::WebURLRequest::FrameType m_frameType; |
| 255 ReferrerPolicy m_referrerPolicy; | 260 ReferrerPolicy m_referrerPolicy; |
| 256 }; | 261 }; |
| 257 | 262 |
| 258 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 263 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
| 259 | 264 |
| 260 } // namespace WebCore | 265 } // namespace WebCore |
| 261 | 266 |
| 262 #endif // ResourceRequest_h | 267 #endif // ResourceRequest_h |
| OLD | NEW |