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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 const KURL& url() const; | 90 const KURL& url() const; |
91 void setURL(const KURL& url); | 91 void setURL(const KURL& url); |
92 | 92 |
93 void removeCredentials(); | 93 void removeCredentials(); |
94 | 94 |
95 WebCachePolicy getCachePolicy() const; | 95 WebCachePolicy getCachePolicy() const; |
96 void setCachePolicy(WebCachePolicy); | 96 void setCachePolicy(WebCachePolicy); |
97 | 97 |
98 double timeoutInterval() const; // May return 0 when using platform default. | 98 double timeoutInterval() const; // May return 0 when using platform default. |
99 void setTimeoutInterval(double timeoutInterval); | 99 void setTimeoutInterval(double); |
100 | 100 |
101 const KURL& firstPartyForCookies() const; | 101 const KURL& firstPartyForCookies() const; |
102 void setFirstPartyForCookies(const KURL& firstPartyForCookies); | 102 void setFirstPartyForCookies(const KURL& firstPartyForCookies); |
103 | 103 |
104 PassRefPtr<SecurityOrigin> requestorOrigin() const; | 104 PassRefPtr<SecurityOrigin> requestorOrigin() const; |
105 void setRequestorOrigin(PassRefPtr<SecurityOrigin>); | 105 void setRequestorOrigin(PassRefPtr<SecurityOrigin>); |
106 | 106 |
107 const AtomicString& httpMethod() const; | 107 const AtomicString& httpMethod() const; |
108 void setHTTPMethod(const AtomicString&); | 108 void setHTTPMethod(const AtomicString&); |
109 | 109 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 bool hasCacheValidatorFields() const; | 279 bool hasCacheValidatorFields() const; |
280 | 280 |
281 bool checkForBrowserSideNavigation() const { | 281 bool checkForBrowserSideNavigation() const { |
282 return m_checkForBrowserSideNavigation; | 282 return m_checkForBrowserSideNavigation; |
283 } | 283 } |
284 void setCheckForBrowserSideNavigation(bool check) { | 284 void setCheckForBrowserSideNavigation(bool check) { |
285 m_checkForBrowserSideNavigation = check; | 285 m_checkForBrowserSideNavigation = check; |
286 } | 286 } |
287 | 287 |
288 double uiStartTime() const { return m_uiStartTime; } | 288 double uiStartTime() const { return m_uiStartTime; } |
289 void setUIStartTime(double uiStartTime) { m_uiStartTime = uiStartTime; } | 289 void setUIStartTime(double uiStartTimeSeconds) { |
| 290 m_uiStartTime = uiStartTimeSeconds; |
| 291 } |
290 | 292 |
291 // https://mikewest.github.io/cors-rfc1918/#external-request | 293 // https://mikewest.github.io/cors-rfc1918/#external-request |
292 bool isExternalRequest() const { return m_isExternalRequest; } | 294 bool isExternalRequest() const { return m_isExternalRequest; } |
293 void setExternalRequestStateFromRequestorAddressSpace(WebAddressSpace); | 295 void setExternalRequestStateFromRequestorAddressSpace(WebAddressSpace); |
294 | 296 |
295 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const { | 297 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const { |
296 return m_inputPerfMetricReportPolicy; | 298 return m_inputPerfMetricReportPolicy; |
297 } | 299 } |
298 void setInputPerfMetricReportPolicy( | 300 void setInputPerfMetricReportPolicy( |
299 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy) { | 301 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy) { |
300 m_inputPerfMetricReportPolicy = inputPerfMetricReportPolicy; | 302 m_inputPerfMetricReportPolicy = inputPerfMetricReportPolicy; |
301 } | 303 } |
302 | 304 |
303 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } | 305 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } |
304 RedirectStatus redirectStatus() const { return m_redirectStatus; } | 306 RedirectStatus redirectStatus() const { return m_redirectStatus; } |
305 | 307 |
| 308 void setNavigationStartTime(double); |
| 309 double navigationStartTime() const { return m_navigationStart; } |
| 310 |
306 private: | 311 private: |
307 void initialize(const KURL&); | 312 void initialize(const KURL&); |
308 | 313 |
309 const CacheControlHeader& cacheControlHeader() const; | 314 const CacheControlHeader& cacheControlHeader() const; |
310 | 315 |
311 KURL m_url; | 316 KURL m_url; |
312 WebCachePolicy m_cachePolicy; | 317 WebCachePolicy m_cachePolicy; |
313 double m_timeoutInterval; // 0 is a magic value for platform default on | 318 double m_timeoutInterval; // 0 is a magic value for platform default on |
314 // platforms that have one. | 319 // platforms that have one. |
315 KURL m_firstPartyForCookies; | 320 KURL m_firstPartyForCookies; |
(...skipping 27 matching lines...) Expand all Loading... |
343 bool m_checkForBrowserSideNavigation; | 348 bool m_checkForBrowserSideNavigation; |
344 double m_uiStartTime; | 349 double m_uiStartTime; |
345 bool m_isExternalRequest; | 350 bool m_isExternalRequest; |
346 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 351 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
347 | 352 |
348 mutable CacheControlHeader m_cacheControlHeaderCache; | 353 mutable CacheControlHeader m_cacheControlHeaderCache; |
349 | 354 |
350 static double s_defaultTimeoutInterval; | 355 static double s_defaultTimeoutInterval; |
351 | 356 |
352 RedirectStatus m_redirectStatus; | 357 RedirectStatus m_redirectStatus; |
| 358 |
| 359 double m_navigationStart = 0; |
353 }; | 360 }; |
354 | 361 |
355 struct CrossThreadResourceRequestData { | 362 struct CrossThreadResourceRequestData { |
356 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); | 363 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); |
357 USING_FAST_MALLOC(CrossThreadResourceRequestData); | 364 USING_FAST_MALLOC(CrossThreadResourceRequestData); |
358 | 365 |
359 public: | 366 public: |
360 CrossThreadResourceRequestData() {} | 367 CrossThreadResourceRequestData() {} |
361 KURL m_url; | 368 KURL m_url; |
362 | 369 |
(...skipping 29 matching lines...) Expand all Loading... |
392 bool m_checkForBrowserSideNavigation; | 399 bool m_checkForBrowserSideNavigation; |
393 double m_uiStartTime; | 400 double m_uiStartTime; |
394 bool m_isExternalRequest; | 401 bool m_isExternalRequest; |
395 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 402 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
396 ResourceRequest::RedirectStatus m_redirectStatus; | 403 ResourceRequest::RedirectStatus m_redirectStatus; |
397 }; | 404 }; |
398 | 405 |
399 } // namespace blink | 406 } // namespace blink |
400 | 407 |
401 #endif // ResourceRequest_h | 408 #endif // ResourceRequest_h |
OLD | NEW |