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

// third_party/blink/public/mojom/webdatabase/web_database.mojom-blink.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-blink.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-blink-import-headers.h"
#include "third_party/blink/public/mojom/webdatabase/web_database.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


namespace blink::mojom::blink {
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 ::scoped_refptr<const ::blink::SecurityOrigin>& in_origin, const ::WTF::String& in_name, int64_t in_size) {}

void WebDatabaseProxy::CloseImmediately(
    const ::scoped_refptr<const ::blink::SecurityOrigin>& in_origin, const ::WTF::String& 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 ::WTF::String& vfs_file_name, int32_t desired_flags, ::base::File* out_file) {}
bool WebDatabaseHost::DeleteFile(const ::WTF::String& vfs_file_name, bool sync_dir, int32_t* out_sqlite_error_code) {}
bool WebDatabaseHost::GetFileAttributes(const ::WTF::String& vfs_file_name, int32_t* out_attributes) {}
bool WebDatabaseHost::GetSpaceAvailable(const ::scoped_refptr<const ::blink::SecurityOrigin>& 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 ::WTF::String& param_vfs_file_name, int32_t param_desired_flags, ::base::File* out_param_file) {}

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

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

void WebDatabaseHostProxy::GetFileAttributes(
    const ::WTF::String& in_vfs_file_name, GetFileAttributesCallback callback) {}
bool WebDatabaseHostProxy::GetSpaceAvailable(
    const ::scoped_refptr<const ::blink::SecurityOrigin>& param_origin, int64_t* out_param_space_available) {}

void WebDatabaseHostProxy::GetSpaceAvailable(
    const ::scoped_refptr<const ::blink::SecurityOrigin>& in_origin, GetSpaceAvailableCallback callback) {}

void WebDatabaseHostProxy::Opened(
    const ::scoped_refptr<const ::blink::SecurityOrigin>& in_origin, const ::WTF::String& in_database_name, const ::WTF::String& in_database_description) {}

void WebDatabaseHostProxy::Modified(
    const ::scoped_refptr<const ::blink::SecurityOrigin>& in_origin, const ::WTF::String& in_database_name) {}

void WebDatabaseHostProxy::Closed(
    const ::scoped_refptr<const ::blink::SecurityOrigin>& in_origin, const ::WTF::String& in_database_name) {}

void WebDatabaseHostProxy::HandleSqliteError(
    const ::scoped_refptr<const ::blink::SecurityOrigin>& in_origin, const ::WTF::String& 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::blink


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::blink {


void WebDatabaseInterceptorForTesting::UpdateSize(const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, const ::WTF::String& name, int64_t size) {}
void WebDatabaseInterceptorForTesting::CloseImmediately(const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, const ::WTF::String& name) {}
WebDatabaseAsyncWaiter::WebDatabaseAsyncWaiter(
    WebDatabase* proxy) :{}

WebDatabaseAsyncWaiter::~WebDatabaseAsyncWaiter() = default;




void WebDatabaseHostInterceptorForTesting::OpenFile(const ::WTF::String& vfs_file_name, int32_t desired_flags, OpenFileCallback callback) {}
void WebDatabaseHostInterceptorForTesting::DeleteFile(const ::WTF::String& vfs_file_name, bool sync_dir, DeleteFileCallback callback) {}
void WebDatabaseHostInterceptorForTesting::GetFileAttributes(const ::WTF::String& vfs_file_name, GetFileAttributesCallback callback) {}
void WebDatabaseHostInterceptorForTesting::GetSpaceAvailable(const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, GetSpaceAvailableCallback callback) {}
void WebDatabaseHostInterceptorForTesting::Opened(const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, const ::WTF::String& database_name, const ::WTF::String& database_description) {}
void WebDatabaseHostInterceptorForTesting::Modified(const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, const ::WTF::String& database_name) {}
void WebDatabaseHostInterceptorForTesting::Closed(const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, const ::WTF::String& database_name) {}
void WebDatabaseHostInterceptorForTesting::HandleSqliteError(const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, const ::WTF::String& database_name, int32_t error) {}
WebDatabaseHostAsyncWaiter::WebDatabaseHostAsyncWaiter(
    WebDatabaseHost* proxy) :{}

WebDatabaseHostAsyncWaiter::~WebDatabaseHostAsyncWaiter() = default;

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

::base::File WebDatabaseHostAsyncWaiter::OpenFile(
    const ::WTF::String& vfs_file_name, int32_t desired_flags) {}

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

int32_t WebDatabaseHostAsyncWaiter::DeleteFile(
    const ::WTF::String& vfs_file_name, bool sync_dir) {}

void WebDatabaseHostAsyncWaiter::GetFileAttributes(
    const ::WTF::String& vfs_file_name, int32_t* out_attributes) {}

int32_t WebDatabaseHostAsyncWaiter::GetFileAttributes(
    const ::WTF::String& vfs_file_name) {}

void WebDatabaseHostAsyncWaiter::GetSpaceAvailable(
    const ::scoped_refptr<const ::blink::SecurityOrigin>& origin, int64_t* out_space_available) {}

int64_t WebDatabaseHostAsyncWaiter::GetSpaceAvailable(
    const ::scoped_refptr<const ::blink::SecurityOrigin>& origin) {}






}  // blink::mojom::blink


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