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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor.h

Issue 2743373002: predictors: Highlight prefetchable resources in webui. (Closed)
Patch Set: Created 3 years, 9 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.h
diff --git a/chrome/browser/predictors/resource_prefetch_predictor.h b/chrome/browser/predictors/resource_prefetch_predictor.h
index 1bfdf8718f907e3d1fd1d7b38111d1607add0df9..97432a54b51e1dedcc3e96a7b8888df183e1063b 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor.h
@@ -220,6 +220,10 @@ class ResourcePrefetchPredictor
// Returns true if prefetching data exists for the |main_frame_url|.
virtual bool IsUrlPrefetchable(const GURL& main_frame_url);
+ // Returns true iff |resource| has sufficient confidence level and required
+ // number of hits.
+ bool IsResourcePrefetchable(const ResourceData& resource) const;
+
// Sets the |observer| to be notified when the resource prefetch predictor
// data changes. Previously registered observer will be discarded. Call
// this with nullptr parameter to de-register observer.
@@ -370,10 +374,6 @@ class ResourcePrefetchPredictor
size_t max_redirect_map_size,
RedirectDataMap* redirect_map);
- // Returns true iff |resource| has sufficient confidence level and required
- // number of hits.
- bool IsResourcePrefetchable(const ResourceData& resource) const;
-
// Reports database readiness metric defined as percentage of navigated hosts
// found in DB for last X entries in history.
void ReportDatabaseReadiness(const history::TopHostsList& top_hosts) const;

Powered by Google App Engine
This is Rietveld 408576698