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

Unified 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: Created 6 years, 3 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: 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
new file mode 100644
index 0000000000000000000000000000000000000000..b3b308bc70eb137582a42cdb575a96584169d127
--- /dev/null
+++ b/components/history/core/browser/history_service_observer.h
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_
+#define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_
+
+class HistoryService;
+
+namespace history {
+
+// Interface for observing notifications from HistoryService.
+class HistoryServiceObserver {
sdefresne 2014/09/23 08:45:10 This class need to have a virtual destructor.
sdefresne 2014/10/20 13:15:43 This class has already been added, please rebase.
+ public:
+ // Is called to notify when a history service has finished loading.
+ virtual void HistoryServiceLoaded(HistoryService* service) = 0;
sdefresne 2014/09/23 08:45:10 Use DISALLOW_COPY_AND_ASSIGN to disallow copying a
+};
+
+} // namespace history
+
+#endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_
« chrome/test/base/ui_test_utils.cc ('K') | « components/history/core/browser/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698