| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 WebURLRequest::LoFiState loFiState() const { return m_loFiState; } | 224 WebURLRequest::LoFiState loFiState() const { return m_loFiState; } |
| 225 void setLoFiState(WebURLRequest::LoFiState loFiState) { m_loFiState = loFiSt
ate; } | 225 void setLoFiState(WebURLRequest::LoFiState loFiState) { m_loFiState = loFiSt
ate; } |
| 226 | 226 |
| 227 bool cacheControlContainsNoCache() const; | 227 bool cacheControlContainsNoCache() const; |
| 228 bool cacheControlContainsNoStore() const; | 228 bool cacheControlContainsNoStore() const; |
| 229 bool hasCacheValidatorFields() const; | 229 bool hasCacheValidatorFields() const; |
| 230 | 230 |
| 231 bool checkForBrowserSideNavigation() const { return m_checkForBrowserSideNav
igation; } | 231 bool checkForBrowserSideNavigation() const { return m_checkForBrowserSideNav
igation; } |
| 232 void setCheckForBrowserSideNavigation(bool check) { m_checkForBrowserSideNav
igation = check; } | 232 void setCheckForBrowserSideNavigation(bool check) { m_checkForBrowserSideNav
igation = check; } |
| 233 | 233 |
| 234 bool bypassBeforeUnload() const { return m_bypassBeforeUnload; } |
| 235 void setBypassBeforeUnload(bool bypass) { m_bypassBeforeUnload = bypass; } |
| 236 |
| 234 double uiStartTime() const { return m_uiStartTime; } | 237 double uiStartTime() const { return m_uiStartTime; } |
| 235 void setUIStartTime(double uiStartTime) { m_uiStartTime = uiStartTime; } | 238 void setUIStartTime(double uiStartTime) { m_uiStartTime = uiStartTime; } |
| 236 | 239 |
| 237 // https://mikewest.github.io/cors-rfc1918/#external-request | 240 // https://mikewest.github.io/cors-rfc1918/#external-request |
| 238 bool isExternalRequest() const { return m_isExternalRequest; } | 241 bool isExternalRequest() const { return m_isExternalRequest; } |
| 239 void setExternalRequestStateFromRequestorAddressSpace(WebAddressSpace); | 242 void setExternalRequestStateFromRequestorAddressSpace(WebAddressSpace); |
| 240 | 243 |
| 241 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const { retu
rn m_inputPerfMetricReportPolicy; } | 244 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const { retu
rn m_inputPerfMetricReportPolicy; } |
| 242 void setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy inputP
erfMetricReportPolicy) { m_inputPerfMetricReportPolicy = inputPerfMetricReportPo
licy; } | 245 void setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy inputP
erfMetricReportPolicy) { m_inputPerfMetricReportPolicy = inputPerfMetricReportPo
licy; } |
| 243 | 246 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 274 RefPtr<ExtraData> m_extraData; | 277 RefPtr<ExtraData> m_extraData; |
| 275 WebURLRequest::RequestContext m_requestContext; | 278 WebURLRequest::RequestContext m_requestContext; |
| 276 WebURLRequest::FrameType m_frameType; | 279 WebURLRequest::FrameType m_frameType; |
| 277 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 280 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| 278 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 281 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
| 279 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 282 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
| 280 WebURLRequest::LoFiState m_loFiState; | 283 WebURLRequest::LoFiState m_loFiState; |
| 281 ReferrerPolicy m_referrerPolicy; | 284 ReferrerPolicy m_referrerPolicy; |
| 282 bool m_didSetHTTPReferrer; | 285 bool m_didSetHTTPReferrer; |
| 283 bool m_checkForBrowserSideNavigation; | 286 bool m_checkForBrowserSideNavigation; |
| 287 bool m_bypassBeforeUnload; |
| 284 double m_uiStartTime; | 288 double m_uiStartTime; |
| 285 bool m_isExternalRequest; | 289 bool m_isExternalRequest; |
| 286 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 290 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 287 | 291 |
| 288 mutable CacheControlHeader m_cacheControlHeaderCache; | 292 mutable CacheControlHeader m_cacheControlHeaderCache; |
| 289 | 293 |
| 290 static double s_defaultTimeoutInterval; | 294 static double s_defaultTimeoutInterval; |
| 291 | 295 |
| 292 bool m_followedRedirect; | 296 bool m_followedRedirect; |
| 293 }; | 297 }; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 321 int m_appCacheHostID; | 325 int m_appCacheHostID; |
| 322 WebURLRequest::RequestContext m_requestContext; | 326 WebURLRequest::RequestContext m_requestContext; |
| 323 WebURLRequest::FrameType m_frameType; | 327 WebURLRequest::FrameType m_frameType; |
| 324 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 328 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| 325 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 329 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
| 326 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 330 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
| 327 WebURLRequest::LoFiState m_loFiState; | 331 WebURLRequest::LoFiState m_loFiState; |
| 328 ReferrerPolicy m_referrerPolicy; | 332 ReferrerPolicy m_referrerPolicy; |
| 329 bool m_didSetHTTPReferrer; | 333 bool m_didSetHTTPReferrer; |
| 330 bool m_checkForBrowserSideNavigation; | 334 bool m_checkForBrowserSideNavigation; |
| 335 bool m_bypassBeforeUnload; |
| 331 double m_uiStartTime; | 336 double m_uiStartTime; |
| 332 bool m_isExternalRequest; | 337 bool m_isExternalRequest; |
| 333 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 338 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 334 bool m_followedRedirect; | 339 bool m_followedRedirect; |
| 335 }; | 340 }; |
| 336 | 341 |
| 337 } // namespace blink | 342 } // namespace blink |
| 338 | 343 |
| 339 #endif // ResourceRequest_h | 344 #endif // ResourceRequest_h |
| OLD | NEW |