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) 2009, 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 m_frameType(WebURLRequest::FrameTypeNone), | 68 m_frameType(WebURLRequest::FrameTypeNone), |
69 m_fetchRequestMode(WebURLRequest::FetchRequestModeNoCORS), | 69 m_fetchRequestMode(WebURLRequest::FetchRequestModeNoCORS), |
70 m_fetchCredentialsMode(WebURLRequest::FetchCredentialsModeInclude), | 70 m_fetchCredentialsMode(WebURLRequest::FetchCredentialsModeInclude), |
71 m_fetchRedirectMode(WebURLRequest::FetchRedirectModeFollow), | 71 m_fetchRedirectMode(WebURLRequest::FetchRedirectModeFollow), |
72 m_previewsState(WebURLRequest::PreviewsUnspecified), | 72 m_previewsState(WebURLRequest::PreviewsUnspecified), |
73 m_referrerPolicy(ReferrerPolicyDefault), | 73 m_referrerPolicy(ReferrerPolicyDefault), |
74 m_didSetHTTPReferrer(false), | 74 m_didSetHTTPReferrer(false), |
75 m_checkForBrowserSideNavigation(true), | 75 m_checkForBrowserSideNavigation(true), |
76 m_uiStartTime(0), | 76 m_uiStartTime(0), |
77 m_isExternalRequest(false), | 77 m_isExternalRequest(false), |
| 78 m_isSameDocumentNavigation(false), |
78 m_inputPerfMetricReportPolicy( | 79 m_inputPerfMetricReportPolicy( |
79 InputToLoadPerfMetricReportPolicy::NoReport), | 80 InputToLoadPerfMetricReportPolicy::NoReport), |
80 m_redirectStatus(RedirectStatus::NoRedirect) {} | 81 m_redirectStatus(RedirectStatus::NoRedirect) {} |
81 | 82 |
82 ResourceRequest::ResourceRequest(CrossThreadResourceRequestData* data) | 83 ResourceRequest::ResourceRequest(CrossThreadResourceRequestData* data) |
83 : ResourceRequest(data->m_url) { | 84 : ResourceRequest(data->m_url) { |
84 setCachePolicy(data->m_cachePolicy); | 85 setCachePolicy(data->m_cachePolicy); |
85 setTimeoutInterval(data->m_timeoutInterval); | 86 setTimeoutInterval(data->m_timeoutInterval); |
86 setFirstPartyForCookies(data->m_firstPartyForCookies); | 87 setFirstPartyForCookies(data->m_firstPartyForCookies); |
87 setRequestorOrigin(data->m_requestorOrigin); | 88 setRequestorOrigin(data->m_requestorOrigin); |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 // layer. | 416 // layer. |
416 if (httpMethod() == HTTPNames::GET || httpMethod() == HTTPNames::HEAD) | 417 if (httpMethod() == HTTPNames::GET || httpMethod() == HTTPNames::HEAD) |
417 return false; | 418 return false; |
418 | 419 |
419 // For non-GET and non-HEAD methods, always send an Origin header so the | 420 // For non-GET and non-HEAD methods, always send an Origin header so the |
420 // server knows we support this feature. | 421 // server knows we support this feature. |
421 return true; | 422 return true; |
422 } | 423 } |
423 | 424 |
424 } // namespace blink | 425 } // namespace blink |
OLD | NEW |