| 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..3c11a77cfd290fad3dcfaa52efff99ba2d5e8d00 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,9 +796,9 @@ 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
|
| + // Returns the HistoryClient, blocking until it is loaded. This may return
|
| // NULL during testing.
|
| - BookmarkService* GetBookmarkService();
|
| + HistoryClient* GetHistoryClient();
|
|
|
| // Notify any observers of an addition to the visit database.
|
| void NotifyVisitObservers(const VisitRow& visit);
|
| @@ -863,12 +863,10 @@ 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).
|
| + // Used to determine if a URL is bookmarked; may be NULL.
|
| //
|
| - // Use GetBookmarkService to access this, which makes sure the service is
|
| - // loaded.
|
| - BookmarkService* bookmark_service_;
|
| + // Use GetHistoryClient to access this, which makes sure the data is loaded.
|
| + HistoryClient* history_client_;
|
|
|
| #if defined(OS_ANDROID)
|
| // Used to provide the Android ContentProvider APIs.
|
|
|