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

Unified Diff: chrome/browser/history/history_backend.h

Issue 631253002: Refactor sending NOTIFICATION_HISTORY_URL_VISITED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: chrome/browser/history/history_backend.h
diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h
index b6ac8b946164078a064b44b578274b0ae3f8e53c..ae069cc883407009e0484614ab5b0ed184031b32 100644
--- a/chrome/browser/history/history_backend.h
+++ b/chrome/browser/history/history_backend.h
@@ -124,6 +124,13 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
// the events to the FaviconChangedObservers in the correct thread.
virtual void NotifyFaviconChanged(const std::set<GURL>& urls) = 0;
+ // Notify HistoryService that the user is visiting an URL. The event will
+ // be forwarded to the HistoryServiceObservers in the correct thread.
+ virtual void NotifyURLVisited(ui::PageTransition transition,
+ const URLRow& row,
+ const RedirectList& redirects,
+ const base::Time& visit_time) = 0;
brettw 2014/10/07 16:47:39 I usually pass times by copy, since a time is real
sdefresne 2014/10/09 09:38:15 Apparently not using const reference is the most c
+
// Broadcasts the specified notification to the notification service.
// This is implemented here because notifications must only be sent from
// the main thread. This is the only method that doesn't identify the

Powered by Google App Engine
This is Rietveld 408576698