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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc

Issue 2937623007: predictors: Move more methods from ResourcePrefetchPredictor into LoadingDataCollector. (Closed)
Patch Set: Fix browser test Created 3 years, 5 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: chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc b/chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc
index e814cae5c5cb3a86e7aa05e0709d7f943a0e3ff6..72b22de00fffae2a4204700969bf0691acff5799 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc
@@ -50,14 +50,13 @@ void ResourcePrefetchPredictorTabHelper::DidLoadResourceFromMemoryCache(
if (!loading_predictor)
return;
- ResourcePrefetchPredictor::URLRequestSummary summary;
+ URLRequestSummary summary;
summary.navigation_id = NavigationID(web_contents());
summary.resource_url = url;
summary.request_url = url;
summary.mime_type = mime_type;
- summary.resource_type =
- ResourcePrefetchPredictor::GetResourceTypeFromMimeType(
- mime_type, resource_type);
+ summary.resource_type = LoadingDataCollector::GetResourceTypeFromMimeType(
+ mime_type, resource_type);
summary.was_cached = true;
auto* collector = loading_predictor->loading_data_collector();
collector->RecordURLResponse(summary);

Powered by Google App Engine
This is Rietveld 408576698