#include "components/webdata/common/web_database_service.h"
#include <stddef.h>
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "components/webdata/common/web_data_request_manager.h"
#include "components/webdata/common/web_data_results.h"
#include "components/webdata/common/web_data_service_consumer.h"
#include "components/webdata/common/web_database_backend.h"
class WebDatabaseService::BackendDelegate
: public WebDatabaseBackend::Delegate { … };
WebDatabaseService::WebDatabaseService(
const base::FilePath& path,
scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
scoped_refptr<base::SequencedTaskRunner> db_task_runner)
: … { … }
WebDatabaseService::~WebDatabaseService() = default;
void WebDatabaseService::AddTable(std::unique_ptr<WebDatabaseTable> table) { … }
void WebDatabaseService::LoadDatabase() { … }
void WebDatabaseService::ShutdownDatabase() { … }
WebDatabase* WebDatabaseService::GetDatabaseOnDB() const { … }
scoped_refptr<WebDatabaseBackend> WebDatabaseService::GetBackend() const { … }
scoped_refptr<base::SequencedTaskRunner> WebDatabaseService::GetDbSequence() { … }
void WebDatabaseService::ScheduleDBTask(const base::Location& from_here,
WriteTask task) { … }
WebDataServiceBase::Handle WebDatabaseService::ScheduleDBTaskWithResult(
const base::Location& from_here,
ReadTask task,
WebDataServiceConsumer* consumer) { … }
void WebDatabaseService::CancelRequest(WebDataServiceBase::Handle h) { … }
void WebDatabaseService::RegisterDBErrorCallback(DBLoadErrorCallback callback) { … }
void WebDatabaseService::OnDatabaseLoadDone(sql::InitStatus status,
const std::string& diagnostics) { … }