#include "components/history/core/browser/top_sites_backend.h"
#include <stddef.h>
#include <memory>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/metrics/histogram_macros.h"
#include "base/task/cancelable_task_tracker.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
#include "components/history/core/browser/top_sites_database.h"
#include "sql/database.h"
namespace history {
TopSitesBackend::TopSitesBackend()
: … { … }
void TopSitesBackend::Init(const base::FilePath& path) { … }
void TopSitesBackend::Shutdown() { … }
void TopSitesBackend::GetMostVisitedSites(
GetMostVisitedSitesCallback callback,
base::CancelableTaskTracker* tracker) { … }
void TopSitesBackend::UpdateTopSites(const TopSitesDelta& delta) { … }
void TopSitesBackend::ResetDatabase() { … }
TopSitesBackend::~TopSitesBackend() { … }
void TopSitesBackend::InitDBOnDBThread(const base::FilePath& path) { … }
void TopSitesBackend::ShutdownDBOnDBThread() { … }
MostVisitedURLList TopSitesBackend::GetMostVisitedSitesOnDBThread() { … }
void TopSitesBackend::UpdateTopSitesOnDBThread(const TopSitesDelta& delta) { … }
void TopSitesBackend::ResetDatabaseOnDBThread(const base::FilePath& file_path) { … }
}