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

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

Issue 1280733002: [3/3 blink] Support redirect option of Request and "opaqueredirect" response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Redirect1
Patch Set: 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 | « no previous file | Source/modules/fetch/Request.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/Request.cpp
diff --git a/Source/modules/fetch/Request.cpp b/Source/modules/fetch/Request.cpp
index bbba9e9b7131a5d6aa981a7742ad37e932ebf878..adbdfa200abd7303b9628cc785cb2886d4ab40a7 100644
--- a/Source/modules/fetch/Request.cpp
+++ b/Source/modules/fetch/Request.cpp
@@ -156,14 +156,13 @@ Request* Request::createRequestWithRequestOrString(ScriptState* scriptState, Req
// "22. If |init|'s redirect member is present, set |request|'s redirect
// mode to it."
- // TODO(horo): Support redirect flag when the chromium side patch land.
- // if (init.redirect == "follw") {
- // request->setRedirect(WebURLRequest::FetchRedirectModeFollow);
- // } else if (init.redirect == "error") {
- // request->setRedirect(WebURLRequest::FetchRedirectModeError);
- // } else if (init.redirect == "manual") {
- // request->setRedirect(WebURLRequest::FetchRedirectModeManual);
- // }
+ if (init.redirect == "follw") {
falken 2015/08/07 07:45:18 follow
horo 2015/08/07 10:04:13 Done.
+ request->setRedirect(WebURLRequest::FetchRedirectModeFollow);
+ } else if (init.redirect == "error") {
+ request->setRedirect(WebURLRequest::FetchRedirectModeError);
+ } else if (init.redirect == "manual") {
+ request->setRedirect(WebURLRequest::FetchRedirectModeManual);
+ }
// FIXME: "23. If |init|'s integrity member is present, set |request|'s
// integrity metadata to it."
« no previous file with comments | « no previous file | Source/modules/fetch/Request.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698