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

Unified Diff: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc

Issue 2545943003: Accessing navigation information via webcontents (Closed)
Patch Set: Post-Review Modifications #3 Created 4 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
« no previous file with comments | « no previous file | chrome/browser/net/resource_prefetch_predictor_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
diff --git a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
index a2f943e4c801cb410424d447e87c0e70912f6476..e96955d232bdd5b7e8816968d7359d91ee176e26 100644
--- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
+++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
@@ -509,7 +509,7 @@ void ChromeResourceDispatcherHostDelegate::RequestBeginning(
if (io_data->resource_prefetch_predictor_observer()) {
io_data->resource_prefetch_predictor_observer()->OnRequestStarted(
- request, resource_type, info->GetChildID(), info->GetRenderFrameID());
+ request, resource_type, info->GetWebContentsGetterForRequest());
}
}
@@ -775,7 +775,8 @@ void ChromeResourceDispatcherHostDelegate::OnResponseStarted(
#endif
if (io_data->resource_prefetch_predictor_observer())
- io_data->resource_prefetch_predictor_observer()->OnResponseStarted(request);
+ io_data->resource_prefetch_predictor_observer()->OnResponseStarted(
+ request, info->GetWebContentsGetterForRequest());
mod_pagespeed::RecordMetrics(info->GetResourceType(), request->url(),
request->response_headers());
@@ -801,7 +802,7 @@ void ChromeResourceDispatcherHostDelegate::OnRequestRedirected(
if (io_data->resource_prefetch_predictor_observer()) {
io_data->resource_prefetch_predictor_observer()->OnRequestRedirected(
- redirect_url, request);
+ request, redirect_url, info->GetWebContentsGetterForRequest());
}
if (io_data->policy_header_helper())
« no previous file with comments | « no previous file | chrome/browser/net/resource_prefetch_predictor_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698