#include "chrome/browser/history/chrome_history_client.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/time/time.h"
#include "chrome/browser/history/chrome_history_backend_client.h"
#include "chrome/browser/history/history_utils.h"
#include "chrome/browser/profiles/sql_init_error_message_ids.h"
#include "chrome/browser/ui/profiles/profile_error_dialog.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/bookmarks/browser/model_loader.h"
#include "components/history/core/browser/history_service.h"
ChromeHistoryClient::ChromeHistoryClient(
bookmarks::BookmarkModel* bookmark_model)
: … { … }
ChromeHistoryClient::~ChromeHistoryClient() { … }
void ChromeHistoryClient::OnHistoryServiceCreated(
history::HistoryService* history_service) { … }
void ChromeHistoryClient::Shutdown() { … }
history::CanAddURLCallback ChromeHistoryClient::GetThreadSafeCanAddURLCallback()
const { … }
void ChromeHistoryClient::NotifyProfileError(sql::InitStatus init_status,
const std::string& diagnostics) { … }
std::unique_ptr<history::HistoryBackendClient>
ChromeHistoryClient::CreateBackendClient() { … }
void ChromeHistoryClient::UpdateBookmarkLastUsedTime(int64_t bookmark_node_id,
base::Time time) { … }
void ChromeHistoryClient::StopObservingBookmarkModel() { … }
void ChromeHistoryClient::BookmarkModelChanged() { … }
void ChromeHistoryClient::BookmarkModelBeingDeleted() { … }
void ChromeHistoryClient::BookmarkNodeRemoved(
const bookmarks::BookmarkNode* parent,
size_t old_index,
const bookmarks::BookmarkNode* node,
const std::set<GURL>& removed_urls,
const base::Location& location) { … }
void ChromeHistoryClient::BookmarkAllUserNodesRemoved(
const std::set<GURL>& removed_urls,
const base::Location& location) { … }