| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy) { | 303 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy) { |
| 304 m_inputPerfMetricReportPolicy = inputPerfMetricReportPolicy; | 304 m_inputPerfMetricReportPolicy = inputPerfMetricReportPolicy; |
| 305 } | 305 } |
| 306 | 306 |
| 307 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } | 307 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } |
| 308 RedirectStatus redirectStatus() const { return m_redirectStatus; } | 308 RedirectStatus redirectStatus() const { return m_redirectStatus; } |
| 309 | 309 |
| 310 void setNavigationStartTime(double); | 310 void setNavigationStartTime(double); |
| 311 double navigationStartTime() const { return m_navigationStart; } | 311 double navigationStartTime() const { return m_navigationStart; } |
| 312 | 312 |
| 313 void setNavigationInitiatedByRenderer(bool navigationInitiatedByRenderer) { |
| 314 m_navigationInitiatedByRenderer = navigationInitiatedByRenderer; |
| 315 } |
| 316 bool getNavigationInitiatedByRenderer() const { |
| 317 return m_navigationInitiatedByRenderer; |
| 318 } |
| 319 |
| 313 private: | 320 private: |
| 314 const CacheControlHeader& cacheControlHeader() const; | 321 const CacheControlHeader& cacheControlHeader() const; |
| 315 | 322 |
| 316 bool needsHTTPOrigin() const; | 323 bool needsHTTPOrigin() const; |
| 317 | 324 |
| 318 KURL m_url; | 325 KURL m_url; |
| 319 WebCachePolicy m_cachePolicy; | 326 WebCachePolicy m_cachePolicy; |
| 320 double m_timeoutInterval; // 0 is a magic value for platform default on | 327 double m_timeoutInterval; // 0 is a magic value for platform default on |
| 321 // platforms that have one. | 328 // platforms that have one. |
| 322 KURL m_firstPartyForCookies; | 329 KURL m_firstPartyForCookies; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 352 bool m_isExternalRequest; | 359 bool m_isExternalRequest; |
| 353 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 360 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 354 | 361 |
| 355 mutable CacheControlHeader m_cacheControlHeaderCache; | 362 mutable CacheControlHeader m_cacheControlHeaderCache; |
| 356 | 363 |
| 357 static double s_defaultTimeoutInterval; | 364 static double s_defaultTimeoutInterval; |
| 358 | 365 |
| 359 RedirectStatus m_redirectStatus; | 366 RedirectStatus m_redirectStatus; |
| 360 | 367 |
| 361 double m_navigationStart = 0; | 368 double m_navigationStart = 0; |
| 369 |
| 370 // Browser side navigation. |
| 371 // Set to true for renderer initiated navigation requests. Defaults to false. |
| 372 bool m_navigationInitiatedByRenderer = false; |
| 362 }; | 373 }; |
| 363 | 374 |
| 364 struct CrossThreadResourceRequestData { | 375 struct CrossThreadResourceRequestData { |
| 365 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); | 376 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); |
| 366 USING_FAST_MALLOC(CrossThreadResourceRequestData); | 377 USING_FAST_MALLOC(CrossThreadResourceRequestData); |
| 367 | 378 |
| 368 public: | 379 public: |
| 369 CrossThreadResourceRequestData() {} | 380 CrossThreadResourceRequestData() {} |
| 370 KURL m_url; | 381 KURL m_url; |
| 371 | 382 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 396 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 407 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
| 397 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 408 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
| 398 WebURLRequest::PreviewsState m_previewsState; | 409 WebURLRequest::PreviewsState m_previewsState; |
| 399 ReferrerPolicy m_referrerPolicy; | 410 ReferrerPolicy m_referrerPolicy; |
| 400 bool m_didSetHTTPReferrer; | 411 bool m_didSetHTTPReferrer; |
| 401 bool m_checkForBrowserSideNavigation; | 412 bool m_checkForBrowserSideNavigation; |
| 402 double m_uiStartTime; | 413 double m_uiStartTime; |
| 403 bool m_isExternalRequest; | 414 bool m_isExternalRequest; |
| 404 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 415 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 405 ResourceRequest::RedirectStatus m_redirectStatus; | 416 ResourceRequest::RedirectStatus m_redirectStatus; |
| 417 bool m_navigationInitiatedByRenderer; |
| 406 }; | 418 }; |
| 407 | 419 |
| 408 } // namespace blink | 420 } // namespace blink |
| 409 | 421 |
| 410 #endif // ResourceRequest_h | 422 #endif // ResourceRequest_h |
| OLD | NEW |