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: |