#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "chrome/common/renderer_configuration.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 "chrome/common/renderer_configuration.mojom-params-data.h"
#include "chrome/common/renderer_configuration.mojom-shared-message-ids.h"
#include "chrome/common/renderer_configuration.mojom-import-headers.h"
#include "chrome/common/renderer_configuration.mojom-test-utils.h"
namespace chrome::mojom {
BoundSessionThrottlerParams::BoundSessionThrottlerParams()
: … { … }
BoundSessionThrottlerParams::BoundSessionThrottlerParams(
const std::string& domain_in,
const std::string& path_in,
::base::Time cookie_expiry_date_in)
: … { … }
BoundSessionThrottlerParams::~BoundSessionThrottlerParams() = default;
void BoundSessionThrottlerParams::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool BoundSessionThrottlerParams::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DynamicParams::DynamicParams()
: … { … }
DynamicParams::DynamicParams(
std::vector<BoundSessionThrottlerParamsPtr> bound_session_throttler_params_in,
bool force_safe_search_in,
int32_t youtube_restrict_in,
const std::string& allowed_domains_for_apps_in)
: … { … }
DynamicParams::~DynamicParams() = default;
void DynamicParams::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DynamicParams::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char BoundSessionRequestThrottledHandler::Name_[] = …;
BoundSessionRequestThrottledHandler::IPCStableHashFunction BoundSessionRequestThrottledHandler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* BoundSessionRequestThrottledHandler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t BoundSessionRequestThrottledHandler::HandleRequestBlockedOnCookie_Sym::IPCStableHash() { … }
# endif
class BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ForwardToCallback
: public mojo::MessageReceiver { … };
BoundSessionRequestThrottledHandlerProxy::BoundSessionRequestThrottledHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void BoundSessionRequestThrottledHandlerProxy::HandleRequestBlockedOnCookie(
const ::GURL& in_untrusted_request_url, HandleRequestBlockedOnCookieCallback callback) { … }
class BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ForwardToCallback::Accept(
mojo::Message* message) { … }
void BoundSessionRequestThrottledHandler_HandleRequestBlockedOnCookie_ProxyToResponder::Run(
ResumeBlockedRequestsTrigger in_resume_trigger) { … }
bool BoundSessionRequestThrottledHandlerStubDispatch::Accept(
BoundSessionRequestThrottledHandler* impl,
mojo::Message* message) { … }
bool BoundSessionRequestThrottledHandlerStubDispatch::AcceptWithResponder(
BoundSessionRequestThrottledHandler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kBoundSessionRequestThrottledHandlerValidationInfo[] = …;
bool BoundSessionRequestThrottledHandlerRequestValidator::Accept(mojo::Message* message) { … }
bool BoundSessionRequestThrottledHandlerResponseValidator::Accept(mojo::Message* message) { … }
const char ChromeOSListener::Name_[] = …;
ChromeOSListener::IPCStableHashFunction ChromeOSListener::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ChromeOSListener::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
# endif
ChromeOSListenerProxy::ChromeOSListenerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
bool ChromeOSListenerStubDispatch::Accept(
ChromeOSListener* impl,
mojo::Message* message) { … }
bool ChromeOSListenerStubDispatch::AcceptWithResponder(
ChromeOSListener* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
bool ChromeOSListenerRequestValidator::Accept(mojo::Message* message) { … }
const char RendererConfiguration::Name_[] = …;
RendererConfiguration::IPCStableHashFunction RendererConfiguration::MessageToMethodInfo_(mojo::Message& message) { … }
const char* RendererConfiguration::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t RendererConfiguration::SetInitialConfiguration_Sym::IPCStableHash() { … }
uint32_t RendererConfiguration::SetConfiguration_Sym::IPCStableHash() { … }
# endif
RendererConfigurationProxy::RendererConfigurationProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void RendererConfigurationProxy::SetInitialConfiguration(
bool in_is_incognito_process, ::mojo::PendingReceiver<ChromeOSListener> in_chromeos_listener, ::mojo::PendingRemote<::content_settings::mojom::ContentSettingsManager> in_content_settings_manager, ::mojo::PendingRemote<BoundSessionRequestThrottledHandler> in_bound_session_request_throttled_handler) { … }
void RendererConfigurationProxy::SetConfiguration(
DynamicParamsPtr in_params) { … }
bool RendererConfigurationStubDispatch::Accept(
RendererConfiguration* impl,
mojo::Message* message) { … }
bool RendererConfigurationStubDispatch::AcceptWithResponder(
RendererConfiguration* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kRendererConfigurationValidationInfo[] = …;
bool RendererConfigurationRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::chrome::mojom::BoundSessionThrottlerParams::DataView, ::chrome::mojom::BoundSessionThrottlerParamsPtr>::Read(
::chrome::mojom::BoundSessionThrottlerParams::DataView input,
::chrome::mojom::BoundSessionThrottlerParamsPtr* output) { … }
bool StructTraits<::chrome::mojom::DynamicParams::DataView, ::chrome::mojom::DynamicParamsPtr>::Read(
::chrome::mojom::DynamicParams::DataView input,
::chrome::mojom::DynamicParamsPtr* output) { … }
}
namespace chrome::mojom {
void BoundSessionRequestThrottledHandlerInterceptorForTesting::HandleRequestBlockedOnCookie(const ::GURL& untrusted_request_url, HandleRequestBlockedOnCookieCallback callback) { … }
BoundSessionRequestThrottledHandlerAsyncWaiter::BoundSessionRequestThrottledHandlerAsyncWaiter(
BoundSessionRequestThrottledHandler* proxy) : … { … }
BoundSessionRequestThrottledHandlerAsyncWaiter::~BoundSessionRequestThrottledHandlerAsyncWaiter() = default;
void BoundSessionRequestThrottledHandlerAsyncWaiter::HandleRequestBlockedOnCookie(
const ::GURL& untrusted_request_url, ResumeBlockedRequestsTrigger* out_resume_trigger) { … }
ResumeBlockedRequestsTrigger BoundSessionRequestThrottledHandlerAsyncWaiter::HandleRequestBlockedOnCookie(
const ::GURL& untrusted_request_url) { … }
ChromeOSListenerAsyncWaiter::ChromeOSListenerAsyncWaiter(
ChromeOSListener* proxy) : … { … }
ChromeOSListenerAsyncWaiter::~ChromeOSListenerAsyncWaiter() = default;
void RendererConfigurationInterceptorForTesting::SetInitialConfiguration(bool is_incognito_process, ::mojo::PendingReceiver<ChromeOSListener> chromeos_listener, ::mojo::PendingRemote<::content_settings::mojom::ContentSettingsManager> content_settings_manager, ::mojo::PendingRemote<BoundSessionRequestThrottledHandler> bound_session_request_throttled_handler) { … }
void RendererConfigurationInterceptorForTesting::SetConfiguration(DynamicParamsPtr params) { … }
RendererConfigurationAsyncWaiter::RendererConfigurationAsyncWaiter(
RendererConfiguration* proxy) : … { … }
RendererConfigurationAsyncWaiter::~RendererConfigurationAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif