#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/services/storage/public/mojom/local_storage_control.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/local_storage_control.mojom-params-data.h"
#include "components/services/storage/public/mojom/local_storage_control.mojom-shared-message-ids.h"
#include "components/services/storage/public/mojom/local_storage_control.mojom-import-headers.h"
#include "components/services/storage/public/mojom/local_storage_control.mojom-test-utils.h"
namespace storage::mojom {
const char LocalStorageControl::Name_[] = …;
LocalStorageControl::IPCStableHashFunction LocalStorageControl::MessageToMethodInfo_(mojo::Message& message) { … }
const char* LocalStorageControl::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t LocalStorageControl::BindStorageArea_Sym::IPCStableHash() { … }
uint32_t LocalStorageControl::GetUsage_Sym::IPCStableHash() { … }
uint32_t LocalStorageControl::DeleteStorage_Sym::IPCStableHash() { … }
uint32_t LocalStorageControl::CleanUpStorage_Sym::IPCStableHash() { … }
uint32_t LocalStorageControl::Flush_Sym::IPCStableHash() { … }
uint32_t LocalStorageControl::NeedsFlushForTesting_Sym::IPCStableHash() { … }
uint32_t LocalStorageControl::PurgeMemory_Sym::IPCStableHash() { … }
uint32_t LocalStorageControl::ApplyPolicyUpdates_Sym::IPCStableHash() { … }
uint32_t LocalStorageControl::ForceKeepSessionState_Sym::IPCStableHash() { … }
# endif
class LocalStorageControl_GetUsage_ForwardToCallback
: public mojo::MessageReceiver { … };
class LocalStorageControl_DeleteStorage_ForwardToCallback
: public mojo::MessageReceiver { … };
class LocalStorageControl_CleanUpStorage_ForwardToCallback
: public mojo::MessageReceiver { … };
class LocalStorageControl_NeedsFlushForTesting_ForwardToCallback
: public mojo::MessageReceiver { … };
LocalStorageControlProxy::LocalStorageControlProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void LocalStorageControlProxy::BindStorageArea(
const ::blink::StorageKey& in_storage_key, ::mojo::PendingReceiver<::blink::mojom::StorageArea> in_receiver) { … }
void LocalStorageControlProxy::GetUsage(
GetUsageCallback callback) { … }
void LocalStorageControlProxy::DeleteStorage(
const ::blink::StorageKey& in_storage_key, DeleteStorageCallback callback) { … }
void LocalStorageControlProxy::CleanUpStorage(
CleanUpStorageCallback callback) { … }
void LocalStorageControlProxy::Flush(
) { … }
void LocalStorageControlProxy::NeedsFlushForTesting(
NeedsFlushForTestingCallback callback) { … }
void LocalStorageControlProxy::PurgeMemory(
) { … }
void LocalStorageControlProxy::ApplyPolicyUpdates(
std::vector<::storage::mojom::StoragePolicyUpdatePtr> in_policy_updates) { … }
void LocalStorageControlProxy::ForceKeepSessionState(
) { … }
class LocalStorageControl_GetUsage_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool LocalStorageControl_GetUsage_ForwardToCallback::Accept(
mojo::Message* message) { … }
void LocalStorageControl_GetUsage_ProxyToResponder::Run(
std::vector<::storage::mojom::StorageUsageInfoPtr> in_info) { … }
class LocalStorageControl_DeleteStorage_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool LocalStorageControl_DeleteStorage_ForwardToCallback::Accept(
mojo::Message* message) { … }
void LocalStorageControl_DeleteStorage_ProxyToResponder::Run(
) { … }
class LocalStorageControl_CleanUpStorage_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool LocalStorageControl_CleanUpStorage_ForwardToCallback::Accept(
mojo::Message* message) { … }
void LocalStorageControl_CleanUpStorage_ProxyToResponder::Run(
) { … }
class LocalStorageControl_NeedsFlushForTesting_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool LocalStorageControl_NeedsFlushForTesting_ForwardToCallback::Accept(
mojo::Message* message) { … }
void LocalStorageControl_NeedsFlushForTesting_ProxyToResponder::Run(
bool in_commits_pending) { … }
bool LocalStorageControlStubDispatch::Accept(
LocalStorageControl* impl,
mojo::Message* message) { … }
bool LocalStorageControlStubDispatch::AcceptWithResponder(
LocalStorageControl* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kLocalStorageControlValidationInfo[] = …;
bool LocalStorageControlRequestValidator::Accept(mojo::Message* message) { … }
bool LocalStorageControlResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace storage::mojom {
void LocalStorageControlInterceptorForTesting::BindStorageArea(const ::blink::StorageKey& storage_key, ::mojo::PendingReceiver<::blink::mojom::StorageArea> receiver) { … }
void LocalStorageControlInterceptorForTesting::GetUsage(GetUsageCallback callback) { … }
void LocalStorageControlInterceptorForTesting::DeleteStorage(const ::blink::StorageKey& storage_key, DeleteStorageCallback callback) { … }
void LocalStorageControlInterceptorForTesting::CleanUpStorage(CleanUpStorageCallback callback) { … }
void LocalStorageControlInterceptorForTesting::Flush() { … }
void LocalStorageControlInterceptorForTesting::NeedsFlushForTesting(NeedsFlushForTestingCallback callback) { … }
void LocalStorageControlInterceptorForTesting::PurgeMemory() { … }
void LocalStorageControlInterceptorForTesting::ApplyPolicyUpdates(std::vector<::storage::mojom::StoragePolicyUpdatePtr> policy_updates) { … }
void LocalStorageControlInterceptorForTesting::ForceKeepSessionState() { … }
LocalStorageControlAsyncWaiter::LocalStorageControlAsyncWaiter(
LocalStorageControl* proxy) : … { … }
LocalStorageControlAsyncWaiter::~LocalStorageControlAsyncWaiter() = default;
void LocalStorageControlAsyncWaiter::GetUsage(
std::vector<::storage::mojom::StorageUsageInfoPtr>* out_info) { … }
std::vector<::storage::mojom::StorageUsageInfoPtr> LocalStorageControlAsyncWaiter::GetUsage(
) { … }
void LocalStorageControlAsyncWaiter::DeleteStorage(
const ::blink::StorageKey& storage_key) { … }
void LocalStorageControlAsyncWaiter::CleanUpStorage(
) { … }
void LocalStorageControlAsyncWaiter::NeedsFlushForTesting(
bool* out_commits_pending) { … }
bool LocalStorageControlAsyncWaiter::NeedsFlushForTesting(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif