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

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

Issue 1269813002: Add a NavigationThrottle to the public content/ interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation-api
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
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 7cbf6999946551028e17f588a2d5277e81119cff..0cb9ca561541aa067fbb61ed98c30c683f4cad22 100644
--- a/content/browser/loader/navigation_url_loader_impl_core.cc
+++ b/content/browser/loader/navigation_url_loader_impl_core.cc
@@ -58,10 +58,10 @@ void NavigationURLLoaderImplCore::FollowRedirect() {
resource_handler_->FollowRedirect();
}
-
void NavigationURLLoaderImplCore::NotifyRequestRedirected(
const net::RedirectInfo& redirect_info,
- ResourceResponse* response) {
+ ResourceResponse* response,
+ bool is_external_protocol) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
// Make a copy of the ResourceResponse before it is passed to another thread.
@@ -72,7 +72,7 @@ void NavigationURLLoaderImplCore::NotifyRequestRedirected(
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
base::Bind(&NavigationURLLoaderImpl::NotifyRequestRedirected, loader_,
- redirect_info, response->DeepCopy()));
+ redirect_info, response->DeepCopy(), is_external_protocol));
}
void NavigationURLLoaderImplCore::NotifyResponseStarted(

Powered by Google App Engine
This is Rietveld 408576698