chromium/out/Default/gen/third_party/blink/public/mojom/buckets/bucket_manager_host.mojom-blink.cc

// third_party/blink/public/mojom/buckets/bucket_manager_host.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/buckets/bucket_manager_host.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/buckets/bucket_manager_host.mojom-params-data.h"
#include "third_party/blink/public/mojom/buckets/bucket_manager_host.mojom-shared-message-ids.h"

#include "third_party/blink/public/mojom/buckets/bucket_manager_host.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/buckets/bucket_manager_host.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


namespace blink::mojom::blink {
BucketPolicies::BucketPolicies()
    :{}

BucketPolicies::BucketPolicies(
    bool persisted_in,
    bool has_persisted_in,
    ::blink::mojom::blink::BucketDurability durability_in,
    bool has_durability_in,
    int64_t quota_in,
    bool has_quota_in,
    std::optional<::base::Time> expires_in)
    :{}

BucketPolicies::~BucketPolicies() = default;

void BucketPolicies::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool BucketPolicies::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char BucketHost::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t BucketHost::Persist_Sym::IPCStableHash() {}
uint32_t BucketHost::Persisted_Sym::IPCStableHash() {}
uint32_t BucketHost::Estimate_Sym::IPCStableHash() {}
uint32_t BucketHost::Durability_Sym::IPCStableHash() {}
uint32_t BucketHost::SetExpires_Sym::IPCStableHash() {}
uint32_t BucketHost::Expires_Sym::IPCStableHash() {}
uint32_t BucketHost::GetIdbFactory_Sym::IPCStableHash() {}
uint32_t BucketHost::GetLockManager_Sym::IPCStableHash() {}
uint32_t BucketHost::GetCaches_Sym::IPCStableHash() {}
uint32_t BucketHost::GetDirectory_Sym::IPCStableHash() {}
uint32_t BucketHost::GetDirectoryForDevtools_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class BucketHost_Persist_ForwardToCallback
    : public mojo::MessageReceiver {};

class BucketHost_Persisted_ForwardToCallback
    : public mojo::MessageReceiver {};

class BucketHost_Estimate_ForwardToCallback
    : public mojo::MessageReceiver {};

class BucketHost_Durability_ForwardToCallback
    : public mojo::MessageReceiver {};

class BucketHost_SetExpires_ForwardToCallback
    : public mojo::MessageReceiver {};

class BucketHost_Expires_ForwardToCallback
    : public mojo::MessageReceiver {};

class BucketHost_GetDirectory_ForwardToCallback
    : public mojo::MessageReceiver {};

class BucketHost_GetDirectoryForDevtools_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void BucketHostProxy::Persist(
    PersistCallback callback) {}

void BucketHostProxy::Persisted(
    PersistedCallback callback) {}

void BucketHostProxy::Estimate(
    EstimateCallback callback) {}

void BucketHostProxy::Durability(
    DurabilityCallback callback) {}

void BucketHostProxy::SetExpires(
    ::base::Time in_expires, SetExpiresCallback callback) {}

void BucketHostProxy::Expires(
    ExpiresCallback callback) {}

void BucketHostProxy::GetIdbFactory(
    ::mojo::PendingReceiver<::blink::mojom::blink::IDBFactory> in_idb_factory) {}

void BucketHostProxy::GetLockManager(
    ::mojo::PendingReceiver<::blink::mojom::blink::LockManager> in_lock_manager) {}

void BucketHostProxy::GetCaches(
    ::mojo::PendingReceiver<::blink::mojom::blink::CacheStorage> in_cache_storage) {}

void BucketHostProxy::GetDirectory(
    GetDirectoryCallback callback) {}

void BucketHostProxy::GetDirectoryForDevtools(
    const WTF::Vector<WTF::String>& in_directory_path_components, GetDirectoryForDevtoolsCallback callback) {}
class BucketHost_Persist_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketHost_Persist_ProxyToResponder::Run(
    bool in_persisted, bool in_success) {}
class BucketHost_Persisted_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketHost_Persisted_ProxyToResponder::Run(
    bool in_persisted, bool in_success) {}
class BucketHost_Estimate_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketHost_Estimate_ProxyToResponder::Run(
    int64_t in_current_usage, int64_t in_current_quota, bool in_success) {}
class BucketHost_Durability_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketHost_Durability_ProxyToResponder::Run(
    ::blink::mojom::blink::BucketDurability in_durability, bool in_success) {}
class BucketHost_SetExpires_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketHost_SetExpires_ProxyToResponder::Run(
    bool in_success) {}
class BucketHost_Expires_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketHost_Expires_ProxyToResponder::Run(
    std::optional<::base::Time> in_expires, bool in_success) {}
class BucketHost_GetDirectory_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketHost_GetDirectory_ProxyToResponder::Run(
    ::blink::mojom::blink::FileSystemAccessErrorPtr in_result, ::mojo::PendingRemote<::blink::mojom::blink::FileSystemAccessDirectoryHandle> in_directory) {}
class BucketHost_GetDirectoryForDevtools_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketHost_GetDirectoryForDevtools_ProxyToResponder::Run(
    ::blink::mojom::blink::FileSystemAccessErrorPtr in_result, ::mojo::PendingRemote<::blink::mojom::blink::FileSystemAccessDirectoryHandle> in_directory) {}

// static
bool BucketHostStubDispatch::Accept(
    BucketHost* impl,
    mojo::Message* message) {}

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

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

bool BucketHostResponseValidator::Accept(mojo::Message* message) {}
const char BucketManagerHost::Name_[] =;

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t BucketManagerHost::OpenBucket_Sym::IPCStableHash() {}
uint32_t BucketManagerHost::GetBucketForDevtools_Sym::IPCStableHash() {}
uint32_t BucketManagerHost::Keys_Sym::IPCStableHash() {}
uint32_t BucketManagerHost::DeleteBucket_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class BucketManagerHost_OpenBucket_ForwardToCallback
    : public mojo::MessageReceiver {};

class BucketManagerHost_Keys_ForwardToCallback
    : public mojo::MessageReceiver {};

class BucketManagerHost_DeleteBucket_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void BucketManagerHostProxy::OpenBucket(
    const WTF::String& in_name, BucketPoliciesPtr in_policy, OpenBucketCallback callback) {}

void BucketManagerHostProxy::GetBucketForDevtools(
    const WTF::String& in_name, ::mojo::PendingReceiver<BucketHost> in_receiver) {}

void BucketManagerHostProxy::Keys(
    KeysCallback callback) {}

void BucketManagerHostProxy::DeleteBucket(
    const WTF::String& in_name, DeleteBucketCallback callback) {}
class BucketManagerHost_OpenBucket_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketManagerHost_OpenBucket_ProxyToResponder::Run(
    ::mojo::PendingRemote<BucketHost> in_remote, BucketError in_error) {}
class BucketManagerHost_Keys_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketManagerHost_Keys_ProxyToResponder::Run(
    const WTF::Vector<WTF::String>& in_buckets, bool in_success) {}
class BucketManagerHost_DeleteBucket_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void BucketManagerHost_DeleteBucket_ProxyToResponder::Run(
    bool in_success) {}

// static
bool BucketManagerHostStubDispatch::Accept(
    BucketManagerHost* impl,
    mojo::Message* message) {}

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

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

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


}  // blink::mojom::blink


namespace mojo {


// static
bool StructTraits<::blink::mojom::blink::BucketPolicies::DataView, ::blink::mojom::blink::BucketPoliciesPtr>::Read(
    ::blink::mojom::blink::BucketPolicies::DataView input,
    ::blink::mojom::blink::BucketPoliciesPtr* output) {}

}  // 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 BucketHostInterceptorForTesting::Persist(PersistCallback callback) {}
void BucketHostInterceptorForTesting::Persisted(PersistedCallback callback) {}
void BucketHostInterceptorForTesting::Estimate(EstimateCallback callback) {}
void BucketHostInterceptorForTesting::Durability(DurabilityCallback callback) {}
void BucketHostInterceptorForTesting::SetExpires(::base::Time expires, SetExpiresCallback callback) {}
void BucketHostInterceptorForTesting::Expires(ExpiresCallback callback) {}
void BucketHostInterceptorForTesting::GetIdbFactory(::mojo::PendingReceiver<::blink::mojom::blink::IDBFactory> idb_factory) {}
void BucketHostInterceptorForTesting::GetLockManager(::mojo::PendingReceiver<::blink::mojom::blink::LockManager> lock_manager) {}
void BucketHostInterceptorForTesting::GetCaches(::mojo::PendingReceiver<::blink::mojom::blink::CacheStorage> cache_storage) {}
void BucketHostInterceptorForTesting::GetDirectory(GetDirectoryCallback callback) {}
void BucketHostInterceptorForTesting::GetDirectoryForDevtools(const WTF::Vector<WTF::String>& directory_path_components, GetDirectoryForDevtoolsCallback callback) {}
BucketHostAsyncWaiter::BucketHostAsyncWaiter(
    BucketHost* proxy) :{}

BucketHostAsyncWaiter::~BucketHostAsyncWaiter() = default;

void BucketHostAsyncWaiter::Persist(
    bool* out_persisted, bool* out_success) {}



void BucketHostAsyncWaiter::Persisted(
    bool* out_persisted, bool* out_success) {}



void BucketHostAsyncWaiter::Estimate(
    int64_t* out_current_usage, int64_t* out_current_quota, bool* out_success) {}



void BucketHostAsyncWaiter::Durability(
    ::blink::mojom::blink::BucketDurability* out_durability, bool* out_success) {}



void BucketHostAsyncWaiter::SetExpires(
    ::base::Time expires, bool* out_success) {}

bool BucketHostAsyncWaiter::SetExpires(
    ::base::Time expires) {}

void BucketHostAsyncWaiter::Expires(
    std::optional<::base::Time>* out_expires, bool* out_success) {}



void BucketHostAsyncWaiter::GetDirectory(
    ::blink::mojom::blink::FileSystemAccessErrorPtr* out_result, ::mojo::PendingRemote<::blink::mojom::blink::FileSystemAccessDirectoryHandle>* out_directory) {}



void BucketHostAsyncWaiter::GetDirectoryForDevtools(
    const WTF::Vector<WTF::String>& directory_path_components, ::blink::mojom::blink::FileSystemAccessErrorPtr* out_result, ::mojo::PendingRemote<::blink::mojom::blink::FileSystemAccessDirectoryHandle>* out_directory) {}






void BucketManagerHostInterceptorForTesting::OpenBucket(const WTF::String& name, BucketPoliciesPtr policy, OpenBucketCallback callback) {}
void BucketManagerHostInterceptorForTesting::GetBucketForDevtools(const WTF::String& name, ::mojo::PendingReceiver<BucketHost> receiver) {}
void BucketManagerHostInterceptorForTesting::Keys(KeysCallback callback) {}
void BucketManagerHostInterceptorForTesting::DeleteBucket(const WTF::String& name, DeleteBucketCallback callback) {}
BucketManagerHostAsyncWaiter::BucketManagerHostAsyncWaiter(
    BucketManagerHost* proxy) :{}

BucketManagerHostAsyncWaiter::~BucketManagerHostAsyncWaiter() = default;

void BucketManagerHostAsyncWaiter::OpenBucket(
    const WTF::String& name, BucketPoliciesPtr policy, ::mojo::PendingRemote<BucketHost>* out_remote, BucketError* out_error) {}



void BucketManagerHostAsyncWaiter::Keys(
    WTF::Vector<WTF::String>* out_buckets, bool* out_success) {}



void BucketManagerHostAsyncWaiter::DeleteBucket(
    const WTF::String& name, bool* out_success) {}

bool BucketManagerHostAsyncWaiter::DeleteBucket(
    const WTF::String& name) {}






}  // blink::mojom::blink


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