| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 RedirectStatus redirectStatus() const { return m_redirectStatus; } | 309 RedirectStatus redirectStatus() const { return m_redirectStatus; } |
| 310 | 310 |
| 311 void setNavigationStartTime(double); | 311 void setNavigationStartTime(double); |
| 312 double navigationStartTime() const { return m_navigationStart; } | 312 double navigationStartTime() const { return m_navigationStart; } |
| 313 | 313 |
| 314 void setIsSameDocumentNavigation(bool isSameDocument) { | 314 void setIsSameDocumentNavigation(bool isSameDocument) { |
| 315 m_isSameDocumentNavigation = isSameDocument; | 315 m_isSameDocumentNavigation = isSameDocument; |
| 316 } | 316 } |
| 317 bool isSameDocumentNavigation() const { return m_isSameDocumentNavigation; } | 317 bool isSameDocumentNavigation() const { return m_isSameDocumentNavigation; } |
| 318 | 318 |
| 319 // TODO(toyoshim): If it is reasonable, we try merging m_speculativePreload |
| 320 // and m_linkPreload into one enum type. See https://crbug.com/675883. |
| 321 bool isLinkPreload() const { return m_linkPreload; } |
| 322 void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } |
| 323 |
| 324 bool isSpeculativePreload() const { return m_speculativePreload; } |
| 325 void setSpeculativePreload(bool speculativePreload, double discoveryTime = 0); |
| 326 |
| 327 double preloadDiscoveryTime() const { return m_preloadDiscoveryTime; } |
| 328 |
| 319 private: | 329 private: |
| 320 const CacheControlHeader& cacheControlHeader() const; | 330 const CacheControlHeader& cacheControlHeader() const; |
| 321 | 331 |
| 322 bool needsHTTPOrigin() const; | 332 bool needsHTTPOrigin() const; |
| 323 | 333 |
| 324 KURL m_url; | 334 KURL m_url; |
| 325 WebCachePolicy m_cachePolicy; | 335 WebCachePolicy m_cachePolicy; |
| 326 double m_timeoutInterval; // 0 is a magic value for platform default on | 336 double m_timeoutInterval; // 0 is a magic value for platform default on |
| 327 // platforms that have one. | 337 // platforms that have one. |
| 328 KURL m_firstPartyForCookies; | 338 KURL m_firstPartyForCookies; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 350 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 360 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| 351 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 361 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
| 352 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 362 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
| 353 WebURLRequest::PreviewsState m_previewsState; | 363 WebURLRequest::PreviewsState m_previewsState; |
| 354 ReferrerPolicy m_referrerPolicy; | 364 ReferrerPolicy m_referrerPolicy; |
| 355 bool m_didSetHTTPReferrer; | 365 bool m_didSetHTTPReferrer; |
| 356 bool m_checkForBrowserSideNavigation; | 366 bool m_checkForBrowserSideNavigation; |
| 357 double m_uiStartTime; | 367 double m_uiStartTime; |
| 358 bool m_isExternalRequest; | 368 bool m_isExternalRequest; |
| 359 bool m_isSameDocumentNavigation; | 369 bool m_isSameDocumentNavigation; |
| 370 bool m_linkPreload; |
| 371 bool m_speculativePreload; |
| 372 double m_preloadDiscoveryTime; |
| 373 |
| 360 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 374 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 361 | 375 |
| 362 mutable CacheControlHeader m_cacheControlHeaderCache; | 376 mutable CacheControlHeader m_cacheControlHeaderCache; |
| 363 | 377 |
| 364 static double s_defaultTimeoutInterval; | 378 static double s_defaultTimeoutInterval; |
| 365 | 379 |
| 366 RedirectStatus m_redirectStatus; | 380 RedirectStatus m_redirectStatus; |
| 367 | 381 |
| 368 double m_navigationStart = 0; | 382 double m_navigationStart = 0; |
| 369 }; | 383 }; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 bool m_checkForBrowserSideNavigation; | 422 bool m_checkForBrowserSideNavigation; |
| 409 double m_uiStartTime; | 423 double m_uiStartTime; |
| 410 bool m_isExternalRequest; | 424 bool m_isExternalRequest; |
| 411 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 425 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 412 ResourceRequest::RedirectStatus m_redirectStatus; | 426 ResourceRequest::RedirectStatus m_redirectStatus; |
| 413 }; | 427 }; |
| 414 | 428 |
| 415 } // namespace blink | 429 } // namespace blink |
| 416 | 430 |
| 417 #endif // ResourceRequest_h | 431 #endif // ResourceRequest_h |
| OLD | NEW |