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

Unified Diff: content/browser/loader/resource_request_info_impl.cc

Issue 1271733002: [2/3 chromium] Support redirect option of Request and "opaqueredirect" response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on 1272623002 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
Index: content/browser/loader/resource_request_info_impl.cc
diff --git a/content/browser/loader/resource_request_info_impl.cc b/content/browser/loader/resource_request_info_impl.cc
index 20ce8d98cea9c631dfd396e810c0934062b839ea..70789d57b5a8bcb4ea5f6c04bc2a8b9ca9ad1d2b 100644
--- a/content/browser/loader/resource_request_info_impl.cc
+++ b/content/browser/loader/resource_request_info_impl.cc
@@ -56,6 +56,7 @@ void ResourceRequestInfo::AllocateForTesting(net::URLRequest* request,
resource_type, // resource_type
ui::PAGE_TRANSITION_LINK, // transition_type
false, // should_replace_current_entry
+ FETCH_REDIRECT_MODE_FOLLOW, // fetch_redirect_mode
false, // is_download
false, // is_stream
allow_download, // allow_download
@@ -114,6 +115,7 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
ResourceType resource_type,
ui::PageTransition transition_type,
bool should_replace_current_entry,
+ FetchRedirectMode fetch_redirect_mode,
bool is_download,
bool is_stream,
bool allow_download,
@@ -139,6 +141,7 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
parent_is_main_frame_(parent_is_main_frame),
parent_render_frame_id_(parent_render_frame_id),
should_replace_current_entry_(should_replace_current_entry),
+ fetch_redirect_mode_(fetch_redirect_mode),
is_download_(is_download),
is_stream_(is_stream),
allow_download_(allow_download),

Powered by Google App Engine
This is Rietveld 408576698