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_; |