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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_isSameDocumentNavigation(false), |
79 m_inputPerfMetricReportPolicy( | 79 m_inputPerfMetricReportPolicy( |
80 InputToLoadPerfMetricReportPolicy::NoReport), | 80 InputToLoadPerfMetricReportPolicy::NoReport), |
| 81 m_browserGeneratedRequestId(0), |
81 m_redirectStatus(RedirectStatus::NoRedirect) {} | 82 m_redirectStatus(RedirectStatus::NoRedirect) {} |
82 | 83 |
83 ResourceRequest::ResourceRequest(CrossThreadResourceRequestData* data) | 84 ResourceRequest::ResourceRequest(CrossThreadResourceRequestData* data) |
84 : ResourceRequest(data->m_url) { | 85 : ResourceRequest(data->m_url) { |
85 setCachePolicy(data->m_cachePolicy); | 86 setCachePolicy(data->m_cachePolicy); |
86 setTimeoutInterval(data->m_timeoutInterval); | 87 setTimeoutInterval(data->m_timeoutInterval); |
87 setFirstPartyForCookies(data->m_firstPartyForCookies); | 88 setFirstPartyForCookies(data->m_firstPartyForCookies); |
88 setRequestorOrigin(data->m_requestorOrigin); | 89 setRequestorOrigin(data->m_requestorOrigin); |
89 setHTTPMethod(AtomicString(data->m_httpMethod)); | 90 setHTTPMethod(AtomicString(data->m_httpMethod)); |
90 setPriority(data->m_priority, data->m_intraPriorityValue); | 91 setPriority(data->m_priority, data->m_intraPriorityValue); |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 // layer. | 418 // layer. |
418 if (httpMethod() == HTTPNames::GET || httpMethod() == HTTPNames::HEAD) | 419 if (httpMethod() == HTTPNames::GET || httpMethod() == HTTPNames::HEAD) |
419 return false; | 420 return false; |
420 | 421 |
421 // For non-GET and non-HEAD methods, always send an Origin header so the | 422 // For non-GET and non-HEAD methods, always send an Origin header so the |
422 // server knows we support this feature. | 423 // server knows we support this feature. |
423 return true; | 424 return true; |
424 } | 425 } |
425 | 426 |
426 } // namespace blink | 427 } // namespace blink |
OLD | NEW |