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 isCacheAwareLoadingEnabled() const { |
| 312 return m_isCacheAwareLoadingEnabled; |
| 313 } |
| 314 |
| 315 void setIsCacheAwareLoadingEnabled(bool isCacheAwareLoadingEnabled) { |
| 316 m_isCacheAwareLoadingEnabled = isCacheAwareLoadingEnabled; |
| 317 } |
| 318 |
| 319 bool isCacheAwareLoadingActivated() const { |
| 320 return m_isCacheAwareLoadingActivated; |
| 321 } |
| 322 |
| 323 void mayActivateCacheAwareLoading(); |
| 324 void deactivateCacheAwareLoading(); |
| 325 |
311 private: | 326 private: |
312 void initialize(const KURL&); | 327 void initialize(const KURL&); |
313 | 328 |
314 const CacheControlHeader& cacheControlHeader() const; | 329 const CacheControlHeader& cacheControlHeader() const; |
315 | 330 |
316 KURL m_url; | 331 KURL m_url; |
317 WebCachePolicy m_cachePolicy; | 332 WebCachePolicy m_cachePolicy; |
318 double m_timeoutInterval; // 0 is a magic value for platform default on | 333 double m_timeoutInterval; // 0 is a magic value for platform default on |
319 // platforms that have one. | 334 // platforms that have one. |
320 KURL m_firstPartyForCookies; | 335 KURL m_firstPartyForCookies; |
(...skipping 21 matching lines...) Expand all Loading... |
342 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 357 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
343 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 358 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
344 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 359 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
345 WebURLRequest::LoFiState m_loFiState; | 360 WebURLRequest::LoFiState m_loFiState; |
346 ReferrerPolicy m_referrerPolicy; | 361 ReferrerPolicy m_referrerPolicy; |
347 bool m_didSetHTTPReferrer; | 362 bool m_didSetHTTPReferrer; |
348 bool m_checkForBrowserSideNavigation; | 363 bool m_checkForBrowserSideNavigation; |
349 double m_uiStartTime; | 364 double m_uiStartTime; |
350 bool m_isExternalRequest; | 365 bool m_isExternalRequest; |
351 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 366 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 367 bool m_isCacheAwareLoadingEnabled; |
| 368 bool m_isCacheAwareLoadingActivated; |
| 369 WebCachePolicy m_savedCachePolicy; |
352 | 370 |
353 mutable CacheControlHeader m_cacheControlHeaderCache; | 371 mutable CacheControlHeader m_cacheControlHeaderCache; |
354 | 372 |
355 static double s_defaultTimeoutInterval; | 373 static double s_defaultTimeoutInterval; |
356 | 374 |
357 RedirectStatus m_redirectStatus; | 375 RedirectStatus m_redirectStatus; |
358 | 376 |
359 double m_navigationStart = 0; | 377 double m_navigationStart = 0; |
360 }; | 378 }; |
361 | 379 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 411 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
394 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 412 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
395 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 413 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
396 WebURLRequest::LoFiState m_loFiState; | 414 WebURLRequest::LoFiState m_loFiState; |
397 ReferrerPolicy m_referrerPolicy; | 415 ReferrerPolicy m_referrerPolicy; |
398 bool m_didSetHTTPReferrer; | 416 bool m_didSetHTTPReferrer; |
399 bool m_checkForBrowserSideNavigation; | 417 bool m_checkForBrowserSideNavigation; |
400 double m_uiStartTime; | 418 double m_uiStartTime; |
401 bool m_isExternalRequest; | 419 bool m_isExternalRequest; |
402 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 420 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 421 bool m_isCacheAwareLoadingEnabled; |
| 422 bool m_isCacheAwareLoadingActivated; |
| 423 WebCachePolicy m_savedCachePolicy; |
403 ResourceRequest::RedirectStatus m_redirectStatus; | 424 ResourceRequest::RedirectStatus m_redirectStatus; |
404 }; | 425 }; |
405 | 426 |
406 } // namespace blink | 427 } // namespace blink |
407 | 428 |
408 #endif // ResourceRequest_h | 429 #endif // ResourceRequest_h |
OLD | NEW |