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

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

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/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 d3bcf01efc3eecafad495a2ddbde809e5ecdc4b5..1433ddccd306c260b54f3f06b9e8fe8fc9bb1c5e 100644
--- a/Source/modules/fetch/FetchRequestData.h
+++ b/Source/modules/fetch/FetchRequestData.h
@@ -81,6 +81,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(); }
@@ -112,8 +114,8 @@ 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;
Tainting m_responseTainting;
Member<BodyStreamBuffer> m_buffer;
« 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