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

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

Issue 2553083002: predictors: Add browsertest that tests prefetching. (Closed)
Patch Set: Rebase. 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/predictors/resource_prefetch_predictor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d2bbee3ce4e5b58a7451aaa71c729d45d98b45b6..a7ce8bf1a5d156850a9f1441bf4513bd8b50fdca 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor.h
@@ -160,6 +160,10 @@ class ResourcePrefetchPredictor
// |main_frame_url|.
void StopPrefetching(const GURL& main_frame_url);
+ // Called when ResourcePrefetcher is finished, i.e. there is nothing pending
+ // in flight.
+ void OnPrefetchingFinished(const GURL& main_frame_url);
+
// 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.
@@ -367,6 +371,8 @@ class TestObserver {
size_t url_visit_count,
const ResourcePrefetchPredictor::PageRequestSummary& summary) {}
+ virtual void OnPrefetchingFinished(const GURL& main_frame_url) {}
+
virtual void OnPredictorInitialized() {}
protected:
« no previous file with comments | « no previous file | chrome/browser/predictors/resource_prefetch_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698