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

Unified Diff: Source/modules/fetch/FetchRequestData.cpp

Issue 1265133002: [1/3 blink] Support redirect option of Request and "opaqueredirect" response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/fetch/FetchRequestData.h ('k') | Source/modules/fetch/FetchResponseData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/FetchRequestData.cpp
diff --git a/Source/modules/fetch/FetchRequestData.cpp b/Source/modules/fetch/FetchRequestData.cpp
index 5a8cb5139a7ecbab9ee443544da7284df412982c..d5904f98ebbfaca3655067e922d6ab8010ebfd4b 100644
--- a/Source/modules/fetch/FetchRequestData.cpp
+++ b/Source/modules/fetch/FetchRequestData.cpp
@@ -36,6 +36,7 @@ FetchRequestData* FetchRequestData::create(ExecutionContext* executionContext, c
request->m_referrer.setURL(webRequest.referrer());
request->setMode(webRequest.mode());
request->setCredentials(webRequest.credentialsMode());
+ request->setRedirect(webRequest.redirectMode());
request->setMIMEType(request->m_headerList->extractMIMEType());
return request;
}
@@ -53,6 +54,7 @@ FetchRequestData* FetchRequestData::cloneExceptBody()
request->m_referrer = m_referrer;
request->m_mode = m_mode;
request->m_credentials = m_credentials;
+ request->m_redirect = m_redirect;
request->m_responseTainting = m_responseTainting;
request->m_mimeType = m_mimeType;
return request;
@@ -93,6 +95,7 @@ FetchRequestData::FetchRequestData()
, m_sameOriginDataURLFlag(false)
, m_mode(WebURLRequest::FetchRequestModeNoCORS)
, m_credentials(WebURLRequest::FetchCredentialsModeOmit)
+ , m_redirect(WebURLRequest::FetchRedirectModeFollow)
, m_responseTainting(BasicTainting)
, m_buffer(new BodyStreamBuffer)
{
« no previous file with comments | « Source/modules/fetch/FetchRequestData.h ('k') | Source/modules/fetch/FetchResponseData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698