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

Unified Diff: chrome/browser/history/history.cc

Issue 10067018: Add PrerenderLocalPredictor, which will eventually perform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
Index: chrome/browser/history/history.cc
===================================================================
--- chrome/browser/history/history.cc (revision 131579)
+++ chrome/browser/history/history.cc (working copy)
@@ -892,3 +892,16 @@
ScheduleAndForget(PRIORITY_NORMAL,
&HistoryBackend::MigrateThumbnailsDatabase);
}
+
+void HistoryService::AddVisitDatabaseObserver(
+ history::VisitDatabaseObserver* observer) {
+ LoadBackendIfNecessary();
+ history_backend_->AddVisitDatabaseObserver(observer);
+}
+
+void HistoryService::RemoveVisitDatabaseObserver(
+ history::VisitDatabaseObserver* observer) {
+ // If the history backend is no longer present, nothing to do here.
+ if (history_backend_)
+ history_backend_->RemoveVisitDatabaseObserver(observer);
+}

Powered by Google App Engine
This is Rietveld 408576698