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

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

Issue 2716373002: predictors: Call StopPrefetching with an url before redirect. (Closed)
Patch Set: Fix nit #2. Created 3 years, 10 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
« 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 60f057c23ec67f49667a4299998307bd05e1fdb4..1bfdf8718f907e3d1fd1d7b38111d1607add0df9 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor.h
@@ -429,13 +429,17 @@ class TestObserver {
// De-registers itself from |predictor_| on destruction.
virtual ~TestObserver();
+ virtual void OnPredictorInitialized() {}
+
virtual void OnNavigationLearned(
size_t url_visit_count,
const ResourcePrefetchPredictor::PageRequestSummary& summary) {}
- virtual void OnPrefetchingFinished(const GURL& main_frame_url) {}
+ virtual void OnPrefetchingStarted(const GURL& main_frame_url) {}
- virtual void OnPredictorInitialized() {}
+ virtual void OnPrefetchingStopped(const GURL& main_frame_url) {}
+
+ virtual void OnPrefetchingFinished(const GURL& main_frame_url) {}
protected:
// |predictor| must be non-NULL and has to outlive the TestObserver.
« 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