Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceRequest.cpp

Issue 2025633002: Move 'ContentSecurityPolicy::RedirectStatus' into 'ResourceRequest' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
68 setFetchRequestMode(data->m_fetchRequestMode); 68 setFetchRequestMode(data->m_fetchRequestMode);
69 setFetchCredentialsMode(data->m_fetchCredentialsMode); 69 setFetchCredentialsMode(data->m_fetchCredentialsMode);
70 setFetchRedirectMode(data->m_fetchRedirectMode); 70 setFetchRedirectMode(data->m_fetchRedirectMode);
71 setLoFiState(data->m_loFiState); 71 setLoFiState(data->m_loFiState);
72 m_referrerPolicy = data->m_referrerPolicy; 72 m_referrerPolicy = data->m_referrerPolicy;
73 m_didSetHTTPReferrer = data->m_didSetHTTPReferrer; 73 m_didSetHTTPReferrer = data->m_didSetHTTPReferrer;
74 m_checkForBrowserSideNavigation = data->m_checkForBrowserSideNavigation; 74 m_checkForBrowserSideNavigation = data->m_checkForBrowserSideNavigation;
75 m_uiStartTime = data->m_uiStartTime; 75 m_uiStartTime = data->m_uiStartTime;
76 m_isExternalRequest = data->m_isExternalRequest; 76 m_isExternalRequest = data->m_isExternalRequest;
77 m_inputPerfMetricReportPolicy = data->m_inputPerfMetricReportPolicy; 77 m_inputPerfMetricReportPolicy = data->m_inputPerfMetricReportPolicy;
78 m_followedRedirect = data->m_followedRedirect; 78 m_redirectStatus = data->m_redirectStatus;
79 } 79 }
80 80
81 PassOwnPtr<CrossThreadResourceRequestData> ResourceRequest::copyData() const 81 PassOwnPtr<CrossThreadResourceRequestData> ResourceRequest::copyData() const
82 { 82 {
83 OwnPtr<CrossThreadResourceRequestData> data = adoptPtr(new CrossThreadResour ceRequestData()); 83 OwnPtr<CrossThreadResourceRequestData> data = adoptPtr(new CrossThreadResour ceRequestData());
84 data->m_url = url().copy(); 84 data->m_url = url().copy();
85 data->m_cachePolicy = getCachePolicy(); 85 data->m_cachePolicy = getCachePolicy();
86 data->m_timeoutInterval = timeoutInterval(); 86 data->m_timeoutInterval = timeoutInterval();
87 data->m_firstPartyForCookies = firstPartyForCookies().copy(); 87 data->m_firstPartyForCookies = firstPartyForCookies().copy();
88 data->m_requestorOrigin = requestorOrigin() ? requestorOrigin()->isolatedCop y() : nullptr; 88 data->m_requestorOrigin = requestorOrigin() ? requestorOrigin()->isolatedCop y() : nullptr;
(...skipping 21 matching lines...) Expand all
110 data->m_fetchRequestMode = m_fetchRequestMode; 110 data->m_fetchRequestMode = m_fetchRequestMode;
111 data->m_fetchCredentialsMode = m_fetchCredentialsMode; 111 data->m_fetchCredentialsMode = m_fetchCredentialsMode;
112 data->m_fetchRedirectMode = m_fetchRedirectMode; 112 data->m_fetchRedirectMode = m_fetchRedirectMode;
113 data->m_loFiState = m_loFiState; 113 data->m_loFiState = m_loFiState;
114 data->m_referrerPolicy = m_referrerPolicy; 114 data->m_referrerPolicy = m_referrerPolicy;
115 data->m_didSetHTTPReferrer = m_didSetHTTPReferrer; 115 data->m_didSetHTTPReferrer = m_didSetHTTPReferrer;
116 data->m_checkForBrowserSideNavigation = m_checkForBrowserSideNavigation; 116 data->m_checkForBrowserSideNavigation = m_checkForBrowserSideNavigation;
117 data->m_uiStartTime = m_uiStartTime; 117 data->m_uiStartTime = m_uiStartTime;
118 data->m_isExternalRequest = m_isExternalRequest; 118 data->m_isExternalRequest = m_isExternalRequest;
119 data->m_inputPerfMetricReportPolicy = m_inputPerfMetricReportPolicy; 119 data->m_inputPerfMetricReportPolicy = m_inputPerfMetricReportPolicy;
120 data->m_followedRedirect = m_followedRedirect; 120 data->m_redirectStatus = m_redirectStatus;
121 return data; 121 return data;
122 } 122 }
123 123
124 bool ResourceRequest::isEmpty() const 124 bool ResourceRequest::isEmpty() const
125 { 125 {
126 return m_url.isEmpty(); 126 return m_url.isEmpty();
127 } 127 }
128 128
129 bool ResourceRequest::isNull() const 129 bool ResourceRequest::isNull() const
130 { 130 {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 m_fetchRequestMode = WebURLRequest::FetchRequestModeNoCORS; 419 m_fetchRequestMode = WebURLRequest::FetchRequestModeNoCORS;
420 m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeInclude; 420 m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeInclude;
421 m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow; 421 m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow;
422 m_referrerPolicy = ReferrerPolicyDefault; 422 m_referrerPolicy = ReferrerPolicyDefault;
423 m_loFiState = WebURLRequest::LoFiUnspecified; 423 m_loFiState = WebURLRequest::LoFiUnspecified;
424 m_didSetHTTPReferrer = false; 424 m_didSetHTTPReferrer = false;
425 m_checkForBrowserSideNavigation = true; 425 m_checkForBrowserSideNavigation = true;
426 m_uiStartTime = 0; 426 m_uiStartTime = 0;
427 m_isExternalRequest = false; 427 m_isExternalRequest = false;
428 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; 428 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport;
429 m_followedRedirect = false; 429 m_redirectStatus = RedirectStatus::NoRedirect;
430 m_requestorOrigin = SecurityOrigin::createUnique(); 430 m_requestorOrigin = SecurityOrigin::createUnique();
431 } 431 }
432 432
433 } // namespace blink 433 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698