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

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

Issue 1416953007: Add a function to add extra headers from NavigationThrottle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@data-reduction-proxy-resource-throttle
Patch Set: Rebase Created 5 years 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/navigation_url_loader_impl_core.cc
diff --git a/content/browser/loader/navigation_url_loader_impl_core.cc b/content/browser/loader/navigation_url_loader_impl_core.cc
index f7c1dde688b6b9bfd246b8c1887c8c52a392cf4c..ef5e56c170f4e726807ec284305fa5136362439b 100644
--- a/content/browser/loader/navigation_url_loader_impl_core.cc
+++ b/content/browser/loader/navigation_url_loader_impl_core.cc
@@ -51,11 +51,12 @@ void NavigationURLLoaderImplCore::Start(
resource_context, *request_info, this, service_worker_handle_core);
}
-void NavigationURLLoaderImplCore::FollowRedirect() {
+void NavigationURLLoaderImplCore::FollowRedirect(
+ const std::vector<std::pair<std::string, std::string>>& extra_headers) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (resource_handler_)
- resource_handler_->FollowRedirect();
+ resource_handler_->FollowRedirect(extra_headers);
}
void NavigationURLLoaderImplCore::NotifyRequestRedirected(

Powered by Google App Engine
This is Rietveld 408576698