#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/content_settings/common/content_settings_manager.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/content_settings/common/content_settings_manager.mojom-params-data.h"
#include "components/content_settings/common/content_settings_manager.mojom-shared-message-ids.h"
#include "components/content_settings/common/content_settings_manager.mojom-import-headers.h"
#include "components/content_settings/common/content_settings_manager.mojom-test-utils.h"
namespace content_settings::mojom {
const char ContentSettingsManager::Name_[] = …;
ContentSettingsManager::IPCStableHashFunction ContentSettingsManager::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ContentSettingsManager::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ContentSettingsManager::Clone_Sym::IPCStableHash() { … }
uint32_t ContentSettingsManager::AllowStorageAccess_Sym::IPCStableHash() { … }
uint32_t ContentSettingsManager::OnContentBlocked_Sym::IPCStableHash() { … }
# endif
bool ContentSettingsManager::AllowStorageAccess(const ::blink::LocalFrameToken& frame_token, ContentSettingsManager::StorageType storage_type, const ::url::Origin& origin, const ::net::SiteForCookies& site_for_cookies, const ::url::Origin& top_frame_origin, bool* out_allowed) { … }
class ContentSettingsManager_AllowStorageAccess_HandleSyncResponse
: public mojo::MessageReceiver { … };
class ContentSettingsManager_AllowStorageAccess_ForwardToCallback
: public mojo::MessageReceiver { … };
ContentSettingsManagerProxy::ContentSettingsManagerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ContentSettingsManagerProxy::Clone(
::mojo::PendingReceiver<ContentSettingsManager> in_clone) { … }
bool ContentSettingsManagerProxy::AllowStorageAccess(
const ::blink::LocalFrameToken& param_frame_token, ContentSettingsManager::StorageType param_storage_type, const ::url::Origin& param_origin, const ::net::SiteForCookies& param_site_for_cookies, const ::url::Origin& param_top_frame_origin, bool* out_param_allowed) { … }
void ContentSettingsManagerProxy::AllowStorageAccess(
const ::blink::LocalFrameToken& in_frame_token, ContentSettingsManager::StorageType in_storage_type, const ::url::Origin& in_origin, const ::net::SiteForCookies& in_site_for_cookies, const ::url::Origin& in_top_frame_origin, AllowStorageAccessCallback callback) { … }
void ContentSettingsManagerProxy::OnContentBlocked(
const ::blink::LocalFrameToken& in_frame_token, ::content_settings::mojom::ContentSettingsType in_type) { … }
class ContentSettingsManager_AllowStorageAccess_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool ContentSettingsManager_AllowStorageAccess_ForwardToCallback::Accept(
mojo::Message* message) { … }
void ContentSettingsManager_AllowStorageAccess_ProxyToResponder::Run(
bool in_allowed) { … }
bool ContentSettingsManager_AllowStorageAccess_HandleSyncResponse::Accept(
mojo::Message* message) { … }
bool ContentSettingsManagerStubDispatch::Accept(
ContentSettingsManager* impl,
mojo::Message* message) { … }
bool ContentSettingsManagerStubDispatch::AcceptWithResponder(
ContentSettingsManager* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kContentSettingsManagerValidationInfo[] = …;
bool ContentSettingsManagerRequestValidator::Accept(mojo::Message* message) { … }
bool ContentSettingsManagerResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace content_settings::mojom {
void ContentSettingsManagerInterceptorForTesting::Clone(::mojo::PendingReceiver<ContentSettingsManager> clone) { … }
void ContentSettingsManagerInterceptorForTesting::AllowStorageAccess(const ::blink::LocalFrameToken& frame_token, ContentSettingsManager::StorageType storage_type, const ::url::Origin& origin, const ::net::SiteForCookies& site_for_cookies, const ::url::Origin& top_frame_origin, AllowStorageAccessCallback callback) { … }
void ContentSettingsManagerInterceptorForTesting::OnContentBlocked(const ::blink::LocalFrameToken& frame_token, ::content_settings::mojom::ContentSettingsType type) { … }
ContentSettingsManagerAsyncWaiter::ContentSettingsManagerAsyncWaiter(
ContentSettingsManager* proxy) : … { … }
ContentSettingsManagerAsyncWaiter::~ContentSettingsManagerAsyncWaiter() = default;
void ContentSettingsManagerAsyncWaiter::AllowStorageAccess(
const ::blink::LocalFrameToken& frame_token, ContentSettingsManager::StorageType storage_type, const ::url::Origin& origin, const ::net::SiteForCookies& site_for_cookies, const ::url::Origin& top_frame_origin, bool* out_allowed) { … }
bool ContentSettingsManagerAsyncWaiter::AllowStorageAccess(
const ::blink::LocalFrameToken& frame_token, ContentSettingsManager::StorageType storage_type, const ::url::Origin& origin, const ::net::SiteForCookies& site_for_cookies, const ::url::Origin& top_frame_origin) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif