#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/network/public/mojom/proxy_config_with_annotation.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 "services/network/public/mojom/proxy_config_with_annotation.mojom-params-data.h"
#include "services/network/public/mojom/proxy_config_with_annotation.mojom-shared-message-ids.h"
#include "services/network/public/mojom/proxy_config_with_annotation.mojom-blink-import-headers.h"
#include "services/network/public/mojom/proxy_config_with_annotation.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace network::mojom::blink {
ProxyConfigWithAnnotation::ProxyConfigWithAnnotation()
: … { … }
ProxyConfigWithAnnotation::ProxyConfigWithAnnotation(
::network::mojom::blink::ProxyConfigPtr value_in,
const ::net::MutableNetworkTrafficAnnotationTag& traffic_annotation_in)
: … { … }
ProxyConfigWithAnnotation::~ProxyConfigWithAnnotation() = default;
void ProxyConfigWithAnnotation::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ProxyConfigWithAnnotation::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char ProxyConfigClient::Name_[] = …;
ProxyConfigClient::IPCStableHashFunction ProxyConfigClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ProxyConfigClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ProxyConfigClient::OnProxyConfigUpdated_Sym::IPCStableHash() { … }
uint32_t ProxyConfigClient::FlushProxyConfig_Sym::IPCStableHash() { … }
# endif
class ProxyConfigClient_FlushProxyConfig_ForwardToCallback
: public mojo::MessageReceiver { … };
ProxyConfigClientProxy::ProxyConfigClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ProxyConfigClientProxy::OnProxyConfigUpdated(
ProxyConfigWithAnnotationPtr in_proxy_config) { … }
void ProxyConfigClientProxy::FlushProxyConfig(
FlushProxyConfigCallback callback) { … }
class ProxyConfigClient_FlushProxyConfig_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool ProxyConfigClient_FlushProxyConfig_ForwardToCallback::Accept(
mojo::Message* message) { … }
void ProxyConfigClient_FlushProxyConfig_ProxyToResponder::Run(
) { … }
bool ProxyConfigClientStubDispatch::Accept(
ProxyConfigClient* impl,
mojo::Message* message) { … }
bool ProxyConfigClientStubDispatch::AcceptWithResponder(
ProxyConfigClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kProxyConfigClientValidationInfo[] = …;
bool ProxyConfigClientRequestValidator::Accept(mojo::Message* message) { … }
bool ProxyConfigClientResponseValidator::Accept(mojo::Message* message) { … }
const char ProxyConfigPollerClient::Name_[] = …;
ProxyConfigPollerClient::IPCStableHashFunction ProxyConfigPollerClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ProxyConfigPollerClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ProxyConfigPollerClient::OnLazyProxyConfigPoll_Sym::IPCStableHash() { … }
# endif
ProxyConfigPollerClientProxy::ProxyConfigPollerClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ProxyConfigPollerClientProxy::OnLazyProxyConfigPoll(
) { … }
bool ProxyConfigPollerClientStubDispatch::Accept(
ProxyConfigPollerClient* impl,
mojo::Message* message) { … }
bool ProxyConfigPollerClientStubDispatch::AcceptWithResponder(
ProxyConfigPollerClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kProxyConfigPollerClientValidationInfo[] = …;
bool ProxyConfigPollerClientRequestValidator::Accept(mojo::Message* message) { … }
const char ProxyErrorClient::Name_[] = …;
ProxyErrorClient::IPCStableHashFunction ProxyErrorClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ProxyErrorClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ProxyErrorClient::OnPACScriptError_Sym::IPCStableHash() { … }
uint32_t ProxyErrorClient::OnRequestMaybeFailedDueToProxySettings_Sym::IPCStableHash() { … }
# endif
ProxyErrorClientProxy::ProxyErrorClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ProxyErrorClientProxy::OnPACScriptError(
int32_t in_line_number, const WTF::String& in_details) { … }
void ProxyErrorClientProxy::OnRequestMaybeFailedDueToProxySettings(
int32_t in_net_error) { … }
bool ProxyErrorClientStubDispatch::Accept(
ProxyErrorClient* impl,
mojo::Message* message) { … }
bool ProxyErrorClientStubDispatch::AcceptWithResponder(
ProxyErrorClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kProxyErrorClientValidationInfo[] = …;
bool ProxyErrorClientRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::network::mojom::blink::ProxyConfigWithAnnotation::DataView, ::network::mojom::blink::ProxyConfigWithAnnotationPtr>::Read(
::network::mojom::blink::ProxyConfigWithAnnotation::DataView input,
::network::mojom::blink::ProxyConfigWithAnnotationPtr* output) { … }
}
namespace network::mojom::blink {
void ProxyConfigClientInterceptorForTesting::OnProxyConfigUpdated(ProxyConfigWithAnnotationPtr proxy_config) { … }
void ProxyConfigClientInterceptorForTesting::FlushProxyConfig(FlushProxyConfigCallback callback) { … }
ProxyConfigClientAsyncWaiter::ProxyConfigClientAsyncWaiter(
ProxyConfigClient* proxy) : … { … }
ProxyConfigClientAsyncWaiter::~ProxyConfigClientAsyncWaiter() = default;
void ProxyConfigClientAsyncWaiter::FlushProxyConfig(
) { … }
void ProxyConfigPollerClientInterceptorForTesting::OnLazyProxyConfigPoll() { … }
ProxyConfigPollerClientAsyncWaiter::ProxyConfigPollerClientAsyncWaiter(
ProxyConfigPollerClient* proxy) : … { … }
ProxyConfigPollerClientAsyncWaiter::~ProxyConfigPollerClientAsyncWaiter() = default;
void ProxyErrorClientInterceptorForTesting::OnPACScriptError(int32_t line_number, const WTF::String& details) { … }
void ProxyErrorClientInterceptorForTesting::OnRequestMaybeFailedDueToProxySettings(int32_t net_error) { … }
ProxyErrorClientAsyncWaiter::ProxyErrorClientAsyncWaiter(
ProxyErrorClient* proxy) : … { … }
ProxyErrorClientAsyncWaiter::~ProxyErrorClientAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif