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

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

Issue 1143083002: Implement request's redirect mode and RequestRedirect for Fetch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/FetchManager.cpp ('k') | Source/modules/fetch/FetchRequestData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/FetchRequestData.h
diff --git a/Source/modules/fetch/FetchRequestData.h b/Source/modules/fetch/FetchRequestData.h
index 788ba4fd4efaaa8fb266e657e36264e2fa98fc49..312eef1d870223cf6018dd714d2a9e3ad4f499d1 100644
--- a/Source/modules/fetch/FetchRequestData.h
+++ b/Source/modules/fetch/FetchRequestData.h
@@ -79,6 +79,8 @@ public:
WebURLRequest::FetchRequestMode mode() const { return m_mode; }
void setCredentials(WebURLRequest::FetchCredentialsMode credentials) { m_credentials = credentials; }
WebURLRequest::FetchCredentialsMode credentials() const { return m_credentials; }
+ void setRedirect(WebURLRequest::FetchRedirectMode redirect) { m_redirect = redirect; }
+ WebURLRequest::FetchRedirectMode redirect() const { return m_redirect; }
void setResponseTainting(Tainting tainting) { m_responseTainting = tainting; }
Tainting tainting() const { return m_responseTainting; }
FetchHeaderList* headerList() const { return m_headerList.get(); }
@@ -108,6 +110,7 @@ private:
// FIXME: Support m_synchronousFlag;
WebURLRequest::FetchRequestMode m_mode;
WebURLRequest::FetchCredentialsMode m_credentials;
+ WebURLRequest::FetchRedirectMode m_redirect;
// FIXME: Support m_useURLCredentialsFlag;
// FIXME: Support m_manualRedirectFlag;
// FIXME: Support m_redirectCount;
« no previous file with comments | « Source/modules/fetch/FetchManager.cpp ('k') | Source/modules/fetch/FetchRequestData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698