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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 bool isConditional() const; | 168 bool isConditional() const; |
169 | 169 |
170 // Whether the associated ResourceHandleClient needs to be notified of | 170 // Whether the associated ResourceHandleClient needs to be notified of |
171 // upload progress made for that resource. | 171 // upload progress made for that resource. |
172 bool reportUploadProgress() const { return m_reportUploadProgress; } | 172 bool reportUploadProgress() const { return m_reportUploadProgress; } |
173 void setReportUploadProgress(bool reportUploadProgress) { | 173 void setReportUploadProgress(bool reportUploadProgress) { |
174 m_reportUploadProgress = reportUploadProgress; | 174 m_reportUploadProgress = reportUploadProgress; |
175 } | 175 } |
176 | 176 |
177 // Whether actual headers being sent/received should be collected and reported
for the request. | 177 // Whether actual headers being sent/received should be collected and reported |
| 178 // for the request. |
178 bool reportRawHeaders() const { return m_reportRawHeaders; } | 179 bool reportRawHeaders() const { return m_reportRawHeaders; } |
179 void setReportRawHeaders(bool reportRawHeaders) { | 180 void setReportRawHeaders(bool reportRawHeaders) { |
180 m_reportRawHeaders = reportRawHeaders; | 181 m_reportRawHeaders = reportRawHeaders; |
181 } | 182 } |
182 | 183 |
183 // Allows the request to be matched up with its requestor. | 184 // Allows the request to be matched up with its requestor. |
184 int requestorID() const { return m_requestorID; } | 185 int requestorID() const { return m_requestorID; } |
185 void setRequestorID(int requestorID) { m_requestorID = requestorID; } | 186 void setRequestorID(int requestorID) { m_requestorID = requestorID; } |
186 | 187 |
187 // The process id of the process from which this request originated. In | 188 // The process id of the process from which this request originated. In |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } | 303 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } |
303 RedirectStatus redirectStatus() const { return m_redirectStatus; } | 304 RedirectStatus redirectStatus() const { return m_redirectStatus; } |
304 | 305 |
305 private: | 306 private: |
306 void initialize(const KURL&); | 307 void initialize(const KURL&); |
307 | 308 |
308 const CacheControlHeader& cacheControlHeader() const; | 309 const CacheControlHeader& cacheControlHeader() const; |
309 | 310 |
310 KURL m_url; | 311 KURL m_url; |
311 WebCachePolicy m_cachePolicy; | 312 WebCachePolicy m_cachePolicy; |
312 double | 313 double m_timeoutInterval; // 0 is a magic value for platform default on |
313 m_timeoutInterval; // 0 is a magic value for platform default on platform
s that have one. | 314 // platforms that have one. |
314 KURL m_firstPartyForCookies; | 315 KURL m_firstPartyForCookies; |
315 RefPtr<SecurityOrigin> m_requestorOrigin; | 316 RefPtr<SecurityOrigin> m_requestorOrigin; |
316 AtomicString m_httpMethod; | 317 AtomicString m_httpMethod; |
317 HTTPHeaderMap m_httpHeaderFields; | 318 HTTPHeaderMap m_httpHeaderFields; |
318 RefPtr<EncodedFormData> m_httpBody; | 319 RefPtr<EncodedFormData> m_httpBody; |
319 RefPtr<EncodedFormData> m_attachedCredential; | 320 RefPtr<EncodedFormData> m_attachedCredential; |
320 bool m_allowStoredCredentials : 1; | 321 bool m_allowStoredCredentials : 1; |
321 bool m_reportUploadProgress : 1; | 322 bool m_reportUploadProgress : 1; |
322 bool m_reportRawHeaders : 1; | 323 bool m_reportRawHeaders : 1; |
323 bool m_hasUserGesture : 1; | 324 bool m_hasUserGesture : 1; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 bool m_checkForBrowserSideNavigation; | 392 bool m_checkForBrowserSideNavigation; |
392 double m_uiStartTime; | 393 double m_uiStartTime; |
393 bool m_isExternalRequest; | 394 bool m_isExternalRequest; |
394 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 395 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
395 ResourceRequest::RedirectStatus m_redirectStatus; | 396 ResourceRequest::RedirectStatus m_redirectStatus; |
396 }; | 397 }; |
397 | 398 |
398 } // namespace blink | 399 } // namespace blink |
399 | 400 |
400 #endif // ResourceRequest_h | 401 #endif // ResourceRequest_h |
OLD | NEW |