| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy) { | 301 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy) { |
| 302 m_inputPerfMetricReportPolicy = inputPerfMetricReportPolicy; | 302 m_inputPerfMetricReportPolicy = inputPerfMetricReportPolicy; |
| 303 } | 303 } |
| 304 | 304 |
| 305 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } | 305 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } |
| 306 RedirectStatus redirectStatus() const { return m_redirectStatus; } | 306 RedirectStatus redirectStatus() const { return m_redirectStatus; } |
| 307 | 307 |
| 308 void setNavigationStartTime(double); | 308 void setNavigationStartTime(double); |
| 309 double navigationStartTime() const { return m_navigationStart; } | 309 double navigationStartTime() const { return m_navigationStart; } |
| 310 | 310 |
| 311 bool isCacheAwareLoadingActivated() const { |
| 312 return m_isCacheAwareLoadingActivated; |
| 313 } |
| 314 |
| 315 void activateCacheAwareLoading(); |
| 316 void deactivateCacheAwareLoading(); |
| 317 |
| 311 private: | 318 private: |
| 312 void initialize(const KURL&); | 319 void initialize(const KURL&); |
| 313 | 320 |
| 314 const CacheControlHeader& cacheControlHeader() const; | 321 const CacheControlHeader& cacheControlHeader() const; |
| 315 | 322 |
| 316 KURL m_url; | 323 KURL m_url; |
| 317 WebCachePolicy m_cachePolicy; | 324 WebCachePolicy m_cachePolicy; |
| 318 double m_timeoutInterval; // 0 is a magic value for platform default on | 325 double m_timeoutInterval; // 0 is a magic value for platform default on |
| 319 // platforms that have one. | 326 // platforms that have one. |
| 320 KURL m_firstPartyForCookies; | 327 KURL m_firstPartyForCookies; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 342 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 349 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| 343 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 350 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
| 344 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 351 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
| 345 WebURLRequest::LoFiState m_loFiState; | 352 WebURLRequest::LoFiState m_loFiState; |
| 346 ReferrerPolicy m_referrerPolicy; | 353 ReferrerPolicy m_referrerPolicy; |
| 347 bool m_didSetHTTPReferrer; | 354 bool m_didSetHTTPReferrer; |
| 348 bool m_checkForBrowserSideNavigation; | 355 bool m_checkForBrowserSideNavigation; |
| 349 double m_uiStartTime; | 356 double m_uiStartTime; |
| 350 bool m_isExternalRequest; | 357 bool m_isExternalRequest; |
| 351 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 358 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 359 bool m_isCacheAwareLoadingActivated; |
| 360 WebCachePolicy m_savedCachePolicy; |
| 352 | 361 |
| 353 mutable CacheControlHeader m_cacheControlHeaderCache; | 362 mutable CacheControlHeader m_cacheControlHeaderCache; |
| 354 | 363 |
| 355 static double s_defaultTimeoutInterval; | 364 static double s_defaultTimeoutInterval; |
| 356 | 365 |
| 357 RedirectStatus m_redirectStatus; | 366 RedirectStatus m_redirectStatus; |
| 358 | 367 |
| 359 double m_navigationStart = 0; | 368 double m_navigationStart = 0; |
| 360 }; | 369 }; |
| 361 | 370 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 402 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| 394 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 403 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
| 395 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 404 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
| 396 WebURLRequest::LoFiState m_loFiState; | 405 WebURLRequest::LoFiState m_loFiState; |
| 397 ReferrerPolicy m_referrerPolicy; | 406 ReferrerPolicy m_referrerPolicy; |
| 398 bool m_didSetHTTPReferrer; | 407 bool m_didSetHTTPReferrer; |
| 399 bool m_checkForBrowserSideNavigation; | 408 bool m_checkForBrowserSideNavigation; |
| 400 double m_uiStartTime; | 409 double m_uiStartTime; |
| 401 bool m_isExternalRequest; | 410 bool m_isExternalRequest; |
| 402 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 411 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 412 bool m_isCacheAwareLoadingActivated; |
| 413 WebCachePolicy m_savedCachePolicy; |
| 403 ResourceRequest::RedirectStatus m_redirectStatus; | 414 ResourceRequest::RedirectStatus m_redirectStatus; |
| 404 }; | 415 }; |
| 405 | 416 |
| 406 } // namespace blink | 417 } // namespace blink |
| 407 | 418 |
| 408 #endif // ResourceRequest_h | 419 #endif // ResourceRequest_h |
| OLD | NEW |