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

Unified Diff: components/history/core/browser/history_client.h

Issue 1205603002: Remove dependency of HistoryServiceFactory on ChromeBookmarkClientFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_history_client
Patch Set: Remove change to BookmarkModelObserver and use BaseBookmarkModelObserver Created 5 years, 6 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_client.h
diff --git a/components/history/core/browser/history_client.h b/components/history/core/browser/history_client.h
index ae9c19562e2fc0bde101137654331c79a8b88edc..ef11815b17ca0d5df5570263a442e99b69dde8a0 100644
--- a/components/history/core/browser/history_client.h
+++ b/components/history/core/browser/history_client.h
@@ -5,6 +5,9 @@
#ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_H_
#define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_CLIENT_H_
+#include <set>
sky 2015/06/23 17:38:50 Seems like you shouldn't need either of these new
sdefresne 2015/06/23 21:46:33 Good catch. Removed.
+
+#include "base/callback_forward.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "sql/init_status.h"
@@ -20,6 +23,7 @@ namespace history {
class HistoryBackend;
class HistoryBackendClient;
class HistoryDatabase;
+class HistoryService;
class ThumbnailDatabase;
// This class abstracts operations that depend on the embedder's environment,
@@ -29,6 +33,9 @@ class HistoryClient {
HistoryClient() {}
virtual ~HistoryClient() {}
+ // Called upon HistoryService creation.
+ virtual void Init(HistoryService* history_service) = 0;
sky 2015/06/23 17:38:50 This name seems misleading. It isn't that HistoryC
sdefresne 2015/06/23 21:46:33 Done.
+
// Called before HistoryService is shutdown.
virtual void Shutdown() = 0;

Powered by Google App Engine
This is Rietveld 408576698