chromium/out/Default/gen/third_party/blink/public/mojom/webdatabase/web_database.mojom.cc

// third_party/blink/public/mojom/webdatabase/web_database.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "third_party/blink/public/mojom/webdatabase/web_database.mojom.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "third_party/blink/public/mojom/webdatabase/web_database.mojom-params-data.h"
#include "third_party/blink/public/mojom/webdatabase/web_database.mojom-shared-message-ids.h"

#include "third_party/blink/public/mojom/webdatabase/web_database.mojom-import-headers.h"
#include "third_party/blink/public/mojom/webdatabase/web_database.mojom-test-utils.h"


namespace blink::mojom {
const char WebDatabase::Name_[] =;

WebDatabase::IPCStableHashFunction WebDatabase::MessageToMethodInfo_(mojo::Message& message) {}


const char* WebDatabase::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t WebDatabase::UpdateSize_Sym::IPCStableHash() {}
uint32_t WebDatabase::CloseImmediately_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

WebDatabaseProxy::WebDatabaseProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void WebDatabaseProxy::UpdateSize(
    const ::url::Origin& in_origin, const ::std::u16string& in_name, int64_t in_size) {}

void WebDatabaseProxy::CloseImmediately(
    const ::url::Origin& in_origin, const ::std::u16string& in_name) {}

// static
bool WebDatabaseStubDispatch::Accept(
    WebDatabase* impl,
    mojo::Message* message) {}

// static
bool WebDatabaseStubDispatch::AcceptWithResponder(
    WebDatabase* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kWebDatabaseValidationInfo[] =;

bool WebDatabaseRequestValidator::Accept(mojo::Message* message) {}

const char WebDatabaseHost::Name_[] =;

WebDatabaseHost::IPCStableHashFunction WebDatabaseHost::MessageToMethodInfo_(mojo::Message& message) {}


const char* WebDatabaseHost::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t WebDatabaseHost::OpenFile_Sym::IPCStableHash() {}
uint32_t WebDatabaseHost::DeleteFile_Sym::IPCStableHash() {}
uint32_t WebDatabaseHost::GetFileAttributes_Sym::IPCStableHash() {}
uint32_t WebDatabaseHost::GetSpaceAvailable_Sym::IPCStableHash() {}
uint32_t WebDatabaseHost::Opened_Sym::IPCStableHash() {}
uint32_t WebDatabaseHost::Modified_Sym::IPCStableHash() {}
uint32_t WebDatabaseHost::Closed_Sym::IPCStableHash() {}
uint32_t WebDatabaseHost::HandleSqliteError_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)
bool WebDatabaseHost::OpenFile(const ::std::u16string& vfs_file_name, int32_t desired_flags, ::base::File* out_file) {}
bool WebDatabaseHost::DeleteFile(const ::std::u16string& vfs_file_name, bool sync_dir, int32_t* out_sqlite_error_code) {}
bool WebDatabaseHost::GetFileAttributes(const ::std::u16string& vfs_file_name, int32_t* out_attributes) {}
bool WebDatabaseHost::GetSpaceAvailable(const ::url::Origin& origin, int64_t* out_space_available) {}
class WebDatabaseHost_OpenFile_HandleSyncResponse
    : public mojo::MessageReceiver {};

class WebDatabaseHost_OpenFile_ForwardToCallback
    : public mojo::MessageReceiver {};
class WebDatabaseHost_DeleteFile_HandleSyncResponse
    : public mojo::MessageReceiver {};

class WebDatabaseHost_DeleteFile_ForwardToCallback
    : public mojo::MessageReceiver {};
class WebDatabaseHost_GetFileAttributes_HandleSyncResponse
    : public mojo::MessageReceiver {};

class WebDatabaseHost_GetFileAttributes_ForwardToCallback
    : public mojo::MessageReceiver {};
class WebDatabaseHost_GetSpaceAvailable_HandleSyncResponse
    : public mojo::MessageReceiver {};

class WebDatabaseHost_GetSpaceAvailable_ForwardToCallback
    : public mojo::MessageReceiver {};

WebDatabaseHostProxy::WebDatabaseHostProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}
bool WebDatabaseHostProxy::OpenFile(
    const ::std::u16string& param_vfs_file_name, int32_t param_desired_flags, ::base::File* out_param_file) {}

void WebDatabaseHostProxy::OpenFile(
    const ::std::u16string& in_vfs_file_name, int32_t in_desired_flags, OpenFileCallback callback) {}
bool WebDatabaseHostProxy::DeleteFile(
    const ::std::u16string& param_vfs_file_name, bool param_sync_dir, int32_t* out_param_sqlite_error_code) {}

void WebDatabaseHostProxy::DeleteFile(
    const ::std::u16string& in_vfs_file_name, bool in_sync_dir, DeleteFileCallback callback) {}
bool WebDatabaseHostProxy::GetFileAttributes(
    const ::std::u16string& param_vfs_file_name, int32_t* out_param_attributes) {}

void WebDatabaseHostProxy::GetFileAttributes(
    const ::std::u16string& in_vfs_file_name, GetFileAttributesCallback callback) {}
bool WebDatabaseHostProxy::GetSpaceAvailable(
    const ::url::Origin& param_origin, int64_t* out_param_space_available) {}

void WebDatabaseHostProxy::GetSpaceAvailable(
    const ::url::Origin& in_origin, GetSpaceAvailableCallback callback) {}

void WebDatabaseHostProxy::Opened(
    const ::url::Origin& in_origin, const ::std::u16string& in_database_name, const ::std::u16string& in_database_description) {}

void WebDatabaseHostProxy::Modified(
    const ::url::Origin& in_origin, const ::std::u16string& in_database_name) {}

void WebDatabaseHostProxy::Closed(
    const ::url::Origin& in_origin, const ::std::u16string& in_database_name) {}

void WebDatabaseHostProxy::HandleSqliteError(
    const ::url::Origin& in_origin, const ::std::u16string& in_database_name, int32_t in_error) {}
class WebDatabaseHost_OpenFile_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool WebDatabaseHost_OpenFile_ForwardToCallback::Accept(
    mojo::Message* message) {}

void WebDatabaseHost_OpenFile_ProxyToResponder::Run(
    ::base::File in_file) {}
bool WebDatabaseHost_OpenFile_HandleSyncResponse::Accept(
    mojo::Message* message) {}
class WebDatabaseHost_DeleteFile_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool WebDatabaseHost_DeleteFile_ForwardToCallback::Accept(
    mojo::Message* message) {}

void WebDatabaseHost_DeleteFile_ProxyToResponder::Run(
    int32_t in_sqlite_error_code) {}
bool WebDatabaseHost_DeleteFile_HandleSyncResponse::Accept(
    mojo::Message* message) {}
class WebDatabaseHost_GetFileAttributes_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool WebDatabaseHost_GetFileAttributes_ForwardToCallback::Accept(
    mojo::Message* message) {}

void WebDatabaseHost_GetFileAttributes_ProxyToResponder::Run(
    int32_t in_attributes) {}
bool WebDatabaseHost_GetFileAttributes_HandleSyncResponse::Accept(
    mojo::Message* message) {}
class WebDatabaseHost_GetSpaceAvailable_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool WebDatabaseHost_GetSpaceAvailable_ForwardToCallback::Accept(
    mojo::Message* message) {}

void WebDatabaseHost_GetSpaceAvailable_ProxyToResponder::Run(
    int64_t in_space_available) {}
bool WebDatabaseHost_GetSpaceAvailable_HandleSyncResponse::Accept(
    mojo::Message* message) {}

// static
bool WebDatabaseHostStubDispatch::Accept(
    WebDatabaseHost* impl,
    mojo::Message* message) {}

// static
bool WebDatabaseHostStubDispatch::AcceptWithResponder(
    WebDatabaseHost* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kWebDatabaseHostValidationInfo[] =;

bool WebDatabaseHostRequestValidator::Accept(mojo::Message* message) {}

bool WebDatabaseHostResponseValidator::Accept(mojo::Message* message) {}


}  // blink::mojom


namespace mojo {

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace blink::mojom {


void WebDatabaseInterceptorForTesting::UpdateSize(const ::url::Origin& origin, const ::std::u16string& name, int64_t size) {}
void WebDatabaseInterceptorForTesting::CloseImmediately(const ::url::Origin& origin, const ::std::u16string& name) {}
WebDatabaseAsyncWaiter::WebDatabaseAsyncWaiter(
    WebDatabase* proxy) :{}

WebDatabaseAsyncWaiter::~WebDatabaseAsyncWaiter() = default;




void WebDatabaseHostInterceptorForTesting::OpenFile(const ::std::u16string& vfs_file_name, int32_t desired_flags, OpenFileCallback callback) {}
void WebDatabaseHostInterceptorForTesting::DeleteFile(const ::std::u16string& vfs_file_name, bool sync_dir, DeleteFileCallback callback) {}
void WebDatabaseHostInterceptorForTesting::GetFileAttributes(const ::std::u16string& vfs_file_name, GetFileAttributesCallback callback) {}
void WebDatabaseHostInterceptorForTesting::GetSpaceAvailable(const ::url::Origin& origin, GetSpaceAvailableCallback callback) {}
void WebDatabaseHostInterceptorForTesting::Opened(const ::url::Origin& origin, const ::std::u16string& database_name, const ::std::u16string& database_description) {}
void WebDatabaseHostInterceptorForTesting::Modified(const ::url::Origin& origin, const ::std::u16string& database_name) {}
void WebDatabaseHostInterceptorForTesting::Closed(const ::url::Origin& origin, const ::std::u16string& database_name) {}
void WebDatabaseHostInterceptorForTesting::HandleSqliteError(const ::url::Origin& origin, const ::std::u16string& database_name, int32_t error) {}
WebDatabaseHostAsyncWaiter::WebDatabaseHostAsyncWaiter(
    WebDatabaseHost* proxy) :{}

WebDatabaseHostAsyncWaiter::~WebDatabaseHostAsyncWaiter() = default;

void WebDatabaseHostAsyncWaiter::OpenFile(
    const ::std::u16string& vfs_file_name, int32_t desired_flags, ::base::File* out_file) {}

::base::File WebDatabaseHostAsyncWaiter::OpenFile(
    const ::std::u16string& vfs_file_name, int32_t desired_flags) {}

void WebDatabaseHostAsyncWaiter::DeleteFile(
    const ::std::u16string& vfs_file_name, bool sync_dir, int32_t* out_sqlite_error_code) {}

int32_t WebDatabaseHostAsyncWaiter::DeleteFile(
    const ::std::u16string& vfs_file_name, bool sync_dir) {}

void WebDatabaseHostAsyncWaiter::GetFileAttributes(
    const ::std::u16string& vfs_file_name, int32_t* out_attributes) {}

int32_t WebDatabaseHostAsyncWaiter::GetFileAttributes(
    const ::std::u16string& vfs_file_name) {}

void WebDatabaseHostAsyncWaiter::GetSpaceAvailable(
    const ::url::Origin& origin, int64_t* out_space_available) {}

int64_t WebDatabaseHostAsyncWaiter::GetSpaceAvailable(
    const ::url::Origin& origin) {}






}  // blink::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif