#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/services/storage/public/mojom/quota_client.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 "components/services/storage/public/mojom/quota_client.mojom-params-data.h"
#include "components/services/storage/public/mojom/quota_client.mojom-shared-message-ids.h"
#include "components/services/storage/public/mojom/quota_client.mojom-import-headers.h"
#include "components/services/storage/public/mojom/quota_client.mojom-test-utils.h"
namespace storage::mojom {
const char QuotaClient::Name_[] = …;
QuotaClient::IPCStableHashFunction QuotaClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* QuotaClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t QuotaClient::GetBucketUsage_Sym::IPCStableHash() { … }
uint32_t QuotaClient::GetStorageKeysForType_Sym::IPCStableHash() { … }
uint32_t QuotaClient::DeleteBucketData_Sym::IPCStableHash() { … }
uint32_t QuotaClient::PerformStorageCleanup_Sym::IPCStableHash() { … }
# endif
class QuotaClient_GetBucketUsage_ForwardToCallback
: public mojo::MessageReceiver { … };
class QuotaClient_GetStorageKeysForType_ForwardToCallback
: public mojo::MessageReceiver { … };
class QuotaClient_DeleteBucketData_ForwardToCallback
: public mojo::MessageReceiver { … };
class QuotaClient_PerformStorageCleanup_ForwardToCallback
: public mojo::MessageReceiver { … };
QuotaClientProxy::QuotaClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void QuotaClientProxy::GetBucketUsage(
const ::storage::BucketLocator& in_bucket, GetBucketUsageCallback callback) { … }
void QuotaClientProxy::GetStorageKeysForType(
::blink::mojom::StorageType in_type, GetStorageKeysForTypeCallback callback) { … }
void QuotaClientProxy::DeleteBucketData(
const ::storage::BucketLocator& in_bucket, DeleteBucketDataCallback callback) { … }
void QuotaClientProxy::PerformStorageCleanup(
::blink::mojom::StorageType in_type, PerformStorageCleanupCallback callback) { … }
class QuotaClient_GetBucketUsage_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool QuotaClient_GetBucketUsage_ForwardToCallback::Accept(
mojo::Message* message) { … }
void QuotaClient_GetBucketUsage_ProxyToResponder::Run(
int64_t in_usage) { … }
class QuotaClient_GetStorageKeysForType_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool QuotaClient_GetStorageKeysForType_ForwardToCallback::Accept(
mojo::Message* message) { … }
void QuotaClient_GetStorageKeysForType_ProxyToResponder::Run(
const std::vector<::blink::StorageKey>& in_storage_keys) { … }
class QuotaClient_DeleteBucketData_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool QuotaClient_DeleteBucketData_ForwardToCallback::Accept(
mojo::Message* message) { … }
void QuotaClient_DeleteBucketData_ProxyToResponder::Run(
::blink::mojom::QuotaStatusCode in_status) { … }
class QuotaClient_PerformStorageCleanup_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool QuotaClient_PerformStorageCleanup_ForwardToCallback::Accept(
mojo::Message* message) { … }
void QuotaClient_PerformStorageCleanup_ProxyToResponder::Run(
) { … }
bool QuotaClientStubDispatch::Accept(
QuotaClient* impl,
mojo::Message* message) { … }
bool QuotaClientStubDispatch::AcceptWithResponder(
QuotaClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kQuotaClientValidationInfo[] = …;
bool QuotaClientRequestValidator::Accept(mojo::Message* message) { … }
bool QuotaClientResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace storage::mojom {
void QuotaClientInterceptorForTesting::GetBucketUsage(const ::storage::BucketLocator& bucket, GetBucketUsageCallback callback) { … }
void QuotaClientInterceptorForTesting::GetStorageKeysForType(::blink::mojom::StorageType type, GetStorageKeysForTypeCallback callback) { … }
void QuotaClientInterceptorForTesting::DeleteBucketData(const ::storage::BucketLocator& bucket, DeleteBucketDataCallback callback) { … }
void QuotaClientInterceptorForTesting::PerformStorageCleanup(::blink::mojom::StorageType type, PerformStorageCleanupCallback callback) { … }
QuotaClientAsyncWaiter::QuotaClientAsyncWaiter(
QuotaClient* proxy) : … { … }
QuotaClientAsyncWaiter::~QuotaClientAsyncWaiter() = default;
void QuotaClientAsyncWaiter::GetBucketUsage(
const ::storage::BucketLocator& bucket, int64_t* out_usage) { … }
int64_t QuotaClientAsyncWaiter::GetBucketUsage(
const ::storage::BucketLocator& bucket) { … }
void QuotaClientAsyncWaiter::GetStorageKeysForType(
::blink::mojom::StorageType type, std::vector<::blink::StorageKey>* out_storage_keys) { … }
std::vector<::blink::StorageKey> QuotaClientAsyncWaiter::GetStorageKeysForType(
::blink::mojom::StorageType type) { … }
void QuotaClientAsyncWaiter::DeleteBucketData(
const ::storage::BucketLocator& bucket, ::blink::mojom::QuotaStatusCode* out_status) { … }
::blink::mojom::QuotaStatusCode QuotaClientAsyncWaiter::DeleteBucketData(
const ::storage::BucketLocator& bucket) { … }
void QuotaClientAsyncWaiter::PerformStorageCleanup(
::blink::mojom::StorageType type) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif