#include "third_party/blink/renderer/modules/webdatabase/web_database_host.h"
#include <utility>
#include "base/task/single_thread_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "third_party/blink/public/common/thread_safe_browser_interface_broker_proxy.h"
#include "third_party/blink/public/mojom/webdatabase/web_database.mojom-blink.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/wtf/wtf.h"
#include "third_party/sqlite/sqlite3.h"
namespace blink {
WebDatabaseHost& WebDatabaseHost::GetInstance() { … }
void WebDatabaseHost::Init() { … }
WebDatabaseHost::WebDatabaseHost() = default;
mojom::blink::WebDatabaseHost& WebDatabaseHost::GetWebDatabaseHost() { … }
base::File WebDatabaseHost::OpenFile(const String& vfs_file_name,
int desired_flags) { … }
int WebDatabaseHost::DeleteFile(const String& vfs_file_name, bool sync_dir) { … }
int32_t WebDatabaseHost::GetFileAttributes(const String& vfs_file_name) { … }
int64_t WebDatabaseHost::GetSpaceAvailableForOrigin(
const SecurityOrigin& origin) { … }
void WebDatabaseHost::DatabaseOpened(const SecurityOrigin& origin,
const String& database_name,
const String& database_display_name) { … }
void WebDatabaseHost::DatabaseModified(const SecurityOrigin& origin,
const String& database_name) { … }
void WebDatabaseHost::DatabaseClosed(const SecurityOrigin& origin,
const String& database_name) { … }
void WebDatabaseHost::ReportSqliteError(const SecurityOrigin& origin,
const String& database_name,
int error) { … }
}