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

Side by Side Diff: components/history/core/browser/history_service_observer.h

Issue 573553004: Eliminate NOTIFICATION_HISTORY_LOADED notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Listen HistoryServiceBeingDeleted in LastDownloadFinder for cleanup Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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
40 // Is called to notify when |history_service| is being deleted.
41 virtual void HistoryServiceBeingDeleted(HistoryService* history_service) {}
42
37 private: 43 private:
38 DISALLOW_COPY_AND_ASSIGN(HistoryServiceObserver); 44 DISALLOW_COPY_AND_ASSIGN(HistoryServiceObserver);
39 }; 45 };
40 46
41 } // namespace history 47 } // namespace history
42 48
43 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ 49 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_
OLDNEW
« chrome/test/base/ui_test_utils.cc ('K') | « chrome/test/base/ui_test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698