| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 return m_inputPerfMetricReportPolicy; | 295 return m_inputPerfMetricReportPolicy; |
| 296 } | 296 } |
| 297 void setInputPerfMetricReportPolicy( | 297 void setInputPerfMetricReportPolicy( |
| 298 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy) { | 298 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy) { |
| 299 m_inputPerfMetricReportPolicy = inputPerfMetricReportPolicy; | 299 m_inputPerfMetricReportPolicy = inputPerfMetricReportPolicy; |
| 300 } | 300 } |
| 301 | 301 |
| 302 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } | 302 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } |
| 303 RedirectStatus redirectStatus() const { return m_redirectStatus; } | 303 RedirectStatus redirectStatus() const { return m_redirectStatus; } |
| 304 | 304 |
| 305 bool isCacheAwareLoadingEnabled() const { |
| 306 return m_isCacheAwareLoadingEnabled; |
| 307 } |
| 308 |
| 309 void setIsCacheAwareLoadingEnabled(bool isCacheAwareLoadingEnabled) { |
| 310 m_isCacheAwareLoadingEnabled = isCacheAwareLoadingEnabled; |
| 311 } |
| 312 |
| 313 bool isCacheAwareLoadingActivated() const { |
| 314 return m_isCacheAwareLoadingActivated; |
| 315 } |
| 316 |
| 317 void mayActivateCacheAwareLoading(); |
| 318 void deactivateCacheAwareLoading(); |
| 319 |
| 305 private: | 320 private: |
| 306 void initialize(const KURL&); | 321 void initialize(const KURL&); |
| 307 | 322 |
| 308 const CacheControlHeader& cacheControlHeader() const; | 323 const CacheControlHeader& cacheControlHeader() const; |
| 309 | 324 |
| 310 KURL m_url; | 325 KURL m_url; |
| 311 WebCachePolicy m_cachePolicy; | 326 WebCachePolicy m_cachePolicy; |
| 312 double | 327 double |
| 313 m_timeoutInterval; // 0 is a magic value for platform default on platform
s that have one. | 328 m_timeoutInterval; // 0 is a magic value for platform default on platform
s that have one. |
| 314 KURL m_firstPartyForCookies; | 329 KURL m_firstPartyForCookies; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 336 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 351 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| 337 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 352 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
| 338 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 353 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
| 339 WebURLRequest::LoFiState m_loFiState; | 354 WebURLRequest::LoFiState m_loFiState; |
| 340 ReferrerPolicy m_referrerPolicy; | 355 ReferrerPolicy m_referrerPolicy; |
| 341 bool m_didSetHTTPReferrer; | 356 bool m_didSetHTTPReferrer; |
| 342 bool m_checkForBrowserSideNavigation; | 357 bool m_checkForBrowserSideNavigation; |
| 343 double m_uiStartTime; | 358 double m_uiStartTime; |
| 344 bool m_isExternalRequest; | 359 bool m_isExternalRequest; |
| 345 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 360 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 361 bool m_isCacheAwareLoadingEnabled; |
| 362 bool m_isCacheAwareLoadingActivated; |
| 363 WebCachePolicy m_savedCachePolicy; |
| 346 | 364 |
| 347 mutable CacheControlHeader m_cacheControlHeaderCache; | 365 mutable CacheControlHeader m_cacheControlHeaderCache; |
| 348 | 366 |
| 349 static double s_defaultTimeoutInterval; | 367 static double s_defaultTimeoutInterval; |
| 350 | 368 |
| 351 RedirectStatus m_redirectStatus; | 369 RedirectStatus m_redirectStatus; |
| 352 }; | 370 }; |
| 353 | 371 |
| 354 struct CrossThreadResourceRequestData { | 372 struct CrossThreadResourceRequestData { |
| 355 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); | 373 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 385 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 403 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| 386 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 404 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
| 387 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 405 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
| 388 WebURLRequest::LoFiState m_loFiState; | 406 WebURLRequest::LoFiState m_loFiState; |
| 389 ReferrerPolicy m_referrerPolicy; | 407 ReferrerPolicy m_referrerPolicy; |
| 390 bool m_didSetHTTPReferrer; | 408 bool m_didSetHTTPReferrer; |
| 391 bool m_checkForBrowserSideNavigation; | 409 bool m_checkForBrowserSideNavigation; |
| 392 double m_uiStartTime; | 410 double m_uiStartTime; |
| 393 bool m_isExternalRequest; | 411 bool m_isExternalRequest; |
| 394 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 412 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 413 bool m_isCacheAwareLoadingEnabled; |
| 414 bool m_isCacheAwareLoadingActivated; |
| 415 WebCachePolicy m_savedCachePolicy; |
| 395 ResourceRequest::RedirectStatus m_redirectStatus; | 416 ResourceRequest::RedirectStatus m_redirectStatus; |
| 396 }; | 417 }; |
| 397 | 418 |
| 398 } // namespace blink | 419 } // namespace blink |
| 399 | 420 |
| 400 #endif // ResourceRequest_h | 421 #endif // ResourceRequest_h |
| OLD | NEW |