| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // https://mikewest.github.io/cors-rfc1918/#external-request | 230 // https://mikewest.github.io/cors-rfc1918/#external-request |
| 231 bool isExternalRequest() const { return m_isExternalRequest; } | 231 bool isExternalRequest() const { return m_isExternalRequest; } |
| 232 void setExternalRequestStateFromRequestorAddressSpace(WebAddressSpace); | 232 void setExternalRequestStateFromRequestorAddressSpace(WebAddressSpace); |
| 233 | 233 |
| 234 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const { retu
rn m_inputPerfMetricReportPolicy; } | 234 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const { retu
rn m_inputPerfMetricReportPolicy; } |
| 235 void setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy inputP
erfMetricReportPolicy) { m_inputPerfMetricReportPolicy = inputPerfMetricReportPo
licy; } | 235 void setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy inputP
erfMetricReportPolicy) { m_inputPerfMetricReportPolicy = inputPerfMetricReportPo
licy; } |
| 236 | 236 |
| 237 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } | 237 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } |
| 238 RedirectStatus redirectStatus() const { return m_redirectStatus; } | 238 RedirectStatus redirectStatus() const { return m_redirectStatus; } |
| 239 | 239 |
| 240 void setNavigationStartTime(double); |
| 241 double navigationStartTime() const { return m_navigationStart; } |
| 242 |
| 240 private: | 243 private: |
| 241 void initialize(const KURL&); | 244 void initialize(const KURL&); |
| 242 | 245 |
| 243 const CacheControlHeader& cacheControlHeader() const; | 246 const CacheControlHeader& cacheControlHeader() const; |
| 244 | 247 |
| 245 KURL m_url; | 248 KURL m_url; |
| 246 WebCachePolicy m_cachePolicy; | 249 WebCachePolicy m_cachePolicy; |
| 247 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. | 250 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. |
| 248 KURL m_firstPartyForCookies; | 251 KURL m_firstPartyForCookies; |
| 249 RefPtr<SecurityOrigin> m_requestorOrigin; | 252 RefPtr<SecurityOrigin> m_requestorOrigin; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 276 bool m_checkForBrowserSideNavigation; | 279 bool m_checkForBrowserSideNavigation; |
| 277 double m_uiStartTime; | 280 double m_uiStartTime; |
| 278 bool m_isExternalRequest; | 281 bool m_isExternalRequest; |
| 279 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 282 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 280 | 283 |
| 281 mutable CacheControlHeader m_cacheControlHeaderCache; | 284 mutable CacheControlHeader m_cacheControlHeaderCache; |
| 282 | 285 |
| 283 static double s_defaultTimeoutInterval; | 286 static double s_defaultTimeoutInterval; |
| 284 | 287 |
| 285 RedirectStatus m_redirectStatus; | 288 RedirectStatus m_redirectStatus; |
| 289 |
| 290 double m_navigationStart = 0; |
| 286 }; | 291 }; |
| 287 | 292 |
| 288 struct CrossThreadResourceRequestData { | 293 struct CrossThreadResourceRequestData { |
| 289 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); USING_FAST_MALLOC(Cros
sThreadResourceRequestData); | 294 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); USING_FAST_MALLOC(Cros
sThreadResourceRequestData); |
| 290 public: | 295 public: |
| 291 CrossThreadResourceRequestData() { } | 296 CrossThreadResourceRequestData() { } |
| 292 KURL m_url; | 297 KURL m_url; |
| 293 | 298 |
| 294 WebCachePolicy m_cachePolicy; | 299 WebCachePolicy m_cachePolicy; |
| 295 double m_timeoutInterval; | 300 double m_timeoutInterval; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 323 bool m_checkForBrowserSideNavigation; | 328 bool m_checkForBrowserSideNavigation; |
| 324 double m_uiStartTime; | 329 double m_uiStartTime; |
| 325 bool m_isExternalRequest; | 330 bool m_isExternalRequest; |
| 326 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 331 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 327 ResourceRequest::RedirectStatus m_redirectStatus; | 332 ResourceRequest::RedirectStatus m_redirectStatus; |
| 328 }; | 333 }; |
| 329 | 334 |
| 330 } // namespace blink | 335 } // namespace blink |
| 331 | 336 |
| 332 #endif // ResourceRequest_h | 337 #endif // ResourceRequest_h |
| OLD | NEW |