#include "components/webdata/common/web_database_backend.h"
#include <algorithm>
#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_database.h"
#include "components/webdata/common/web_database_table.h"
#include "sql/error_delegate_util.h"
#include "sql/sqlite_result_code.h"
WebDatabaseBackend::WebDatabaseBackend(
const base::FilePath& path,
std::unique_ptr<Delegate> delegate,
const scoped_refptr<base::SequencedTaskRunner>& db_thread)
: … { … }
void WebDatabaseBackend::AddTable(std::unique_ptr<WebDatabaseTable> table) { … }
void WebDatabaseBackend::InitDatabase() { … }
void WebDatabaseBackend::ShutdownDatabase() { … }
void WebDatabaseBackend::DBWriteTaskWrapper(
WebDatabaseService::WriteTask task,
std::unique_ptr<WebDataRequest> request) { … }
void WebDatabaseBackend::ExecuteWriteTask(WebDatabaseService::WriteTask task) { … }
void WebDatabaseBackend::DBReadTaskWrapper(
WebDatabaseService::ReadTask task,
std::unique_ptr<WebDataRequest> request) { … }
std::unique_ptr<WDTypedResult> WebDatabaseBackend::ExecuteReadTask(
WebDatabaseService::ReadTask task) { … }
WebDatabaseBackend::~WebDatabaseBackend() { … }
void WebDatabaseBackend::LoadDatabaseIfNecessary() { … }
void WebDatabaseBackend::DatabaseErrorCallback(int error,
sql::Statement* statement) { … }
void WebDatabaseBackend::Commit() { … }