Index: components/history/core/browser/history_service_observer.h |
diff --git a/components/history/core/browser/history_service_observer.h b/components/history/core/browser/history_service_observer.h |
index 6f1608be0edec83dec39f58ca085151702833403..3945aec2ff3d0b7ec93a3d33757c473c251f3841 100644 |
--- a/components/history/core/browser/history_service_observer.h |
+++ b/components/history/core/browser/history_service_observer.h |
@@ -17,6 +17,19 @@ class HistoryServiceObserver { |
HistoryServiceObserver() {} |
virtual ~HistoryServiceObserver() {} |
+ // Called when user visits an URL. |
+ // |
+ // The |row| ID will be set to the value that is currently in effect in the |
+ // main history database. |redirects| is the list of redirects leading up to |
+ // the URL. If we have a redirect chain A -> B -> C and user is visiting C, |
+ // then |redirects[0]=B| and |redirects[1]=A|. If there are no redirects, |
+ // |redirects| is an empty vector. |
+ virtual void OnURLVisited(HistoryService* history_service, |
+ ui::PageTransition transition, |
+ const URLRow& row, |
+ const RedirectList& redirects, |
+ base::Time visit_time) {} |
+ |
// Called on changes to the VisitDatabase. |
virtual void OnAddVisit(HistoryService* history_service, |
const BriefVisitInfo& info) {} |