| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/history/core/browser/history_types.h" | 9 #include "components/history/core/browser/history_types.h" |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 virtual void OnURLVisited(HistoryService* history_service, | 27 virtual void OnURLVisited(HistoryService* history_service, |
| 28 ui::PageTransition transition, | 28 ui::PageTransition transition, |
| 29 const URLRow& row, | 29 const URLRow& row, |
| 30 const RedirectList& redirects, | 30 const RedirectList& redirects, |
| 31 base::Time visit_time) {} | 31 base::Time visit_time) {} |
| 32 | 32 |
| 33 // Called on changes to the VisitDatabase. | 33 // Called on changes to the VisitDatabase. |
| 34 virtual void OnAddVisit(HistoryService* history_service, | 34 virtual void OnAddVisit(HistoryService* history_service, |
| 35 const BriefVisitInfo& info) {} | 35 const BriefVisitInfo& info) {} |
| 36 | 36 |
| 37 // Is called to notify when |history_service| has finished loading. |
| 38 virtual void OnHistoryServiceLoaded(HistoryService* history_service) {} |
| 39 |
| 37 private: | 40 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(HistoryServiceObserver); | 41 DISALLOW_COPY_AND_ASSIGN(HistoryServiceObserver); |
| 39 }; | 42 }; |
| 40 | 43 |
| 41 } // namespace history | 44 } // namespace history |
| 42 | 45 |
| 43 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ | 46 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ |
| OLD | NEW |