| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 int requestorID() const { return m_requestorID; } | 144 int requestorID() const { return m_requestorID; } |
| 145 void setRequestorID(int requestorID) { m_requestorID = requestorID; } | 145 void setRequestorID(int requestorID) { m_requestorID = requestorID; } |
| 146 | 146 |
| 147 // The process id of the process from which this request originated. In | 147 // The process id of the process from which this request originated. In |
| 148 // the case of out-of-process plugins, this allows to link back the | 148 // the case of out-of-process plugins, this allows to link back the |
| 149 // request to the plugin process (as it is processed through a render | 149 // request to the plugin process (as it is processed through a render |
| 150 // view process). | 150 // view process). |
| 151 int requestorProcessID() const { return m_requestorProcessID; } | 151 int requestorProcessID() const { return m_requestorProcessID; } |
| 152 void setRequestorProcessID(int requestorProcessID) { m_requestorProcessID =
requestorProcessID; } | 152 void setRequestorProcessID(int requestorProcessID) { m_requestorProcessID =
requestorProcessID; } |
| 153 | 153 |
| 154 // True if request was user initiated. | |
| 155 bool hasUserGesture() const { return m_hasUserGesture; } | |
| 156 void setHasUserGesture(bool hasUserGesture) { m_hasUserGesture = hasUserGest
ure; } | |
| 157 | |
| 158 // True if request should be downloaded to file. | 154 // True if request should be downloaded to file. |
| 159 bool downloadToFile() const { return m_downloadToFile; } | 155 bool downloadToFile() const { return m_downloadToFile; } |
| 160 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToF
ile; } | 156 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloadToF
ile; } |
| 161 | 157 |
| 162 // Extra data associated with this request. | 158 // Extra data associated with this request. |
| 163 ExtraData* extraData() const { return m_extraData.get(); } | 159 ExtraData* extraData() const { return m_extraData.get(); } |
| 164 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } | 160 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } |
| 165 | 161 |
| 166 blink::WebURLRequest::RequestContext requestContext() const { return m_reque
stContext; } | 162 blink::WebURLRequest::RequestContext requestContext() const { return m_reque
stContext; } |
| 167 void setRequestContext(blink::WebURLRequest::RequestContext context) { m_req
uestContext = context; } | 163 void setRequestContext(blink::WebURLRequest::RequestContext context) { m_req
uestContext = context; } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 185 | 181 |
| 186 KURL m_url; | 182 KURL m_url; |
| 187 ResourceRequestCachePolicy m_cachePolicy; | 183 ResourceRequestCachePolicy m_cachePolicy; |
| 188 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. | 184 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. |
| 189 AtomicString m_httpMethod; | 185 AtomicString m_httpMethod; |
| 190 HTTPHeaderMap m_httpHeaderFields; | 186 HTTPHeaderMap m_httpHeaderFields; |
| 191 RefPtr<FormData> m_httpBody; | 187 RefPtr<FormData> m_httpBody; |
| 192 bool m_allowStoredCredentials : 1; | 188 bool m_allowStoredCredentials : 1; |
| 193 bool m_reportUploadProgress : 1; | 189 bool m_reportUploadProgress : 1; |
| 194 bool m_reportRawHeaders : 1; | 190 bool m_reportRawHeaders : 1; |
| 195 bool m_hasUserGesture : 1; | |
| 196 bool m_downloadToFile : 1; | 191 bool m_downloadToFile : 1; |
| 197 ResourceLoadPriority m_priority; | 192 ResourceLoadPriority m_priority; |
| 198 int m_intraPriorityValue; | 193 int m_intraPriorityValue; |
| 199 int m_requestorID; | 194 int m_requestorID; |
| 200 int m_requestorProcessID; | 195 int m_requestorProcessID; |
| 201 RefPtr<ExtraData> m_extraData; | 196 RefPtr<ExtraData> m_extraData; |
| 202 blink::WebURLRequest::RequestContext m_requestContext; | 197 blink::WebURLRequest::RequestContext m_requestContext; |
| 203 blink::WebURLRequest::FrameType m_frameType; | 198 blink::WebURLRequest::FrameType m_frameType; |
| 204 ReferrerPolicy m_referrerPolicy; | 199 ReferrerPolicy m_referrerPolicy; |
| 205 | 200 |
| 206 mutable CacheControlHeader m_cacheControlHeaderCache; | 201 mutable CacheControlHeader m_cacheControlHeaderCache; |
| 207 | 202 |
| 208 static double s_defaultTimeoutInterval; | 203 static double s_defaultTimeoutInterval; |
| 209 }; | 204 }; |
| 210 | 205 |
| 211 bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&); | 206 bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&); |
| 212 | 207 |
| 213 inline bool operator==(const ResourceRequest& a, const ResourceRequest& b) { ret
urn ResourceRequest::compare(a, b); } | 208 inline bool operator==(const ResourceRequest& a, const ResourceRequest& b) { ret
urn ResourceRequest::compare(a, b); } |
| 214 inline bool operator!=(ResourceRequest& a, const ResourceRequest& b) { return !(
a == b); } | 209 inline bool operator!=(ResourceRequest& a, const ResourceRequest& b) { return !(
a == b); } |
| 215 | 210 |
| 216 } // namespace blink | 211 } // namespace blink |
| 217 | 212 |
| 218 #endif // SKY_ENGINE_PLATFORM_NETWORK_RESOURCEREQUEST_H_ | 213 #endif // SKY_ENGINE_PLATFORM_NETWORK_RESOURCEREQUEST_H_ |
| OLD | NEW |