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

Unified Diff: chrome/browser/prerender/prerender_local_predictor.h

Issue 642623004: Rename VisitDatabaseObserver to HistoryServiceObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@373326
Patch Set: Address comments & rebase Created 6 years, 2 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 | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/prerender/prerender_local_predictor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_local_predictor.h
diff --git a/chrome/browser/prerender/prerender_local_predictor.h b/chrome/browser/prerender/prerender_local_predictor.h
index e8d7e77793a2577d882bfab9fc8af39072b54247..44f3dad600842858be2624824661d2877fe9e231 100644
--- a/chrome/browser/prerender/prerender_local_predictor.h
+++ b/chrome/browser/prerender/prerender_local_predictor.h
@@ -14,6 +14,7 @@
#include "base/task/cancelable_task_tracker.h"
#include "base/timer/timer.h"
#include "chrome/browser/history/visit_database.h"
+#include "components/history/core/browser/history_service_observer.h"
#include "content/public/browser/session_storage_namespace.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "url/gurl.h"
@@ -41,7 +42,7 @@ class PrerenderManager;
// predictions.
// At this point, the class is not actually creating prerenders, but just
// recording timing stats about the effect prerendering would have.
-class PrerenderLocalPredictor : public history::VisitDatabaseObserver,
+class PrerenderLocalPredictor : public history::HistoryServiceObserver,
public net::URLFetcherDelegate {
public:
struct LocalPredictorURLInfo;
@@ -156,8 +157,9 @@ class PrerenderLocalPredictor : public history::VisitDatabaseObserver,
void Shutdown();
- // history::VisitDatabaseObserver implementation
- virtual void OnAddVisit(const history::BriefVisitInfo& info) override;
+ // history::HistoryServiceObserver:
+ virtual void OnAddVisit(HistoryService* history_service,
+ const history::BriefVisitInfo& info) override;
void OnGetInitialVisitHistory(
scoped_ptr<std::vector<history::BriefVisitInfo> > visit_history);
@@ -219,8 +221,8 @@ class PrerenderLocalPredictor : public history::VisitDatabaseObserver,
static const int kInitDelayMs = 5 * 1000;
// Whether we're registered with the history service as a
- // history::VisitDatabaseObserver.
- bool is_visit_database_observer_;
+ // history::HistoryServiceObserver.
+ bool is_history_service_observer_;
base::CancelableTaskTracker history_db_tracker_;
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/prerender/prerender_local_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698