Index: chrome/browser/history/history_backend.h |
diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h |
index 1d2e03ccb463409c08356f9f014678bc6765ed34..8f1d84a465436b4c7939e697fecda9f8bc8ea0f4 100644 |
--- a/chrome/browser/history/history_backend.h |
+++ b/chrome/browser/history/history_backend.h |
@@ -26,7 +26,6 @@ |
#include "sql/init_status.h" |
#include "ui/base/layout.h" |
-class BookmarkService; |
class TestingProfile; |
class TypedUrlSyncableService; |
struct ThumbnailScore; |
@@ -37,6 +36,7 @@ class AndroidProviderBackend; |
#endif |
class CommitLaterTask; |
+class HistoryClient; |
class VisitFilter; |
struct DownloadRow; |
@@ -105,13 +105,13 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
// See the definition of BroadcastNotificationsCallback above. This function |
// takes ownership of the callback pointer. |
// |
- // |bookmark_service| is used to determine bookmarked URLs when deleting and |
+ // |history_client| is used to determine bookmarked URLs when deleting and |
// may be NULL. |
// |
// This constructor is fast and does no I/O, so can be called at any time. |
HistoryBackend(const base::FilePath& history_dir, |
Delegate* delegate, |
- BookmarkService* bookmark_service); |
+ HistoryClient* history_client); |
// Must be called after creation but before any objects are created. If this |
// fails, all other functions will fail as well. (Since this runs on another |
@@ -796,10 +796,6 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
// Deletes the FTS index database files, which are no longer used. |
void DeleteFTSIndexDatabases(); |
- // Returns the BookmarkService, blocking until it is loaded. This may return |
- // NULL during testing. |
- BookmarkService* GetBookmarkService(); |
- |
// Notify any observers of an addition to the visit database. |
void NotifyVisitObservers(const VisitRow& visit); |
@@ -863,12 +859,8 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
// done. |
std::list<HistoryDBTaskRequest*> db_task_requests_; |
- // Used to determine if a URL is bookmarked. This is owned by the Profile and |
- // may be NULL (during testing). |
- // |
- // Use GetBookmarkService to access this, which makes sure the service is |
- // loaded. |
- BookmarkService* bookmark_service_; |
+ // Used to determine if a URL is bookmarked; may be NULL. |
+ HistoryClient* history_client_; |
#if defined(OS_ANDROID) |
// Used to provide the Android ContentProvider APIs. |