#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/data_decoder/public/mojom/structured_headers_parser.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 "services/data_decoder/public/mojom/structured_headers_parser.mojom-params-data.h"
#include "services/data_decoder/public/mojom/structured_headers_parser.mojom-shared-message-ids.h"
#include "services/data_decoder/public/mojom/structured_headers_parser.mojom-import-headers.h"
#include "services/data_decoder/public/mojom/structured_headers_parser.mojom-test-utils.h"
namespace data_decoder::mojom {
const char StructuredHeadersParser::Name_[] = …;
StructuredHeadersParser::IPCStableHashFunction StructuredHeadersParser::MessageToMethodInfo_(mojo::Message& message) { … }
const char* StructuredHeadersParser::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t StructuredHeadersParser::ParseItem_Sym::IPCStableHash() { … }
uint32_t StructuredHeadersParser::ParseList_Sym::IPCStableHash() { … }
uint32_t StructuredHeadersParser::ParseDictionary_Sym::IPCStableHash() { … }
# endif
class StructuredHeadersParser_ParseItem_ForwardToCallback
: public mojo::MessageReceiver { … };
class StructuredHeadersParser_ParseList_ForwardToCallback
: public mojo::MessageReceiver { … };
class StructuredHeadersParser_ParseDictionary_ForwardToCallback
: public mojo::MessageReceiver { … };
StructuredHeadersParserProxy::StructuredHeadersParserProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void StructuredHeadersParserProxy::ParseItem(
const std::string& in_header, ParseItemCallback callback) { … }
void StructuredHeadersParserProxy::ParseList(
const std::string& in_header, ParseListCallback callback) { … }
void StructuredHeadersParserProxy::ParseDictionary(
const std::string& in_header, ParseDictionaryCallback callback) { … }
class StructuredHeadersParser_ParseItem_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StructuredHeadersParser_ParseItem_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StructuredHeadersParser_ParseItem_ProxyToResponder::Run(
std::optional<::net::structured_headers::ParameterizedItem> in_result) { … }
class StructuredHeadersParser_ParseList_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StructuredHeadersParser_ParseList_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StructuredHeadersParser_ParseList_ProxyToResponder::Run(
std::optional<std::vector<::net::structured_headers::ParameterizedMember>> in_result) { … }
class StructuredHeadersParser_ParseDictionary_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool StructuredHeadersParser_ParseDictionary_ForwardToCallback::Accept(
mojo::Message* message) { … }
void StructuredHeadersParser_ParseDictionary_ProxyToResponder::Run(
std::optional<::net::structured_headers::Dictionary> in_result) { … }
bool StructuredHeadersParserStubDispatch::Accept(
StructuredHeadersParser* impl,
mojo::Message* message) { … }
bool StructuredHeadersParserStubDispatch::AcceptWithResponder(
StructuredHeadersParser* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kStructuredHeadersParserValidationInfo[] = …;
bool StructuredHeadersParserRequestValidator::Accept(mojo::Message* message) { … }
bool StructuredHeadersParserResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace data_decoder::mojom {
void StructuredHeadersParserInterceptorForTesting::ParseItem(const std::string& header, ParseItemCallback callback) { … }
void StructuredHeadersParserInterceptorForTesting::ParseList(const std::string& header, ParseListCallback callback) { … }
void StructuredHeadersParserInterceptorForTesting::ParseDictionary(const std::string& header, ParseDictionaryCallback callback) { … }
StructuredHeadersParserAsyncWaiter::StructuredHeadersParserAsyncWaiter(
StructuredHeadersParser* proxy) : … { … }
StructuredHeadersParserAsyncWaiter::~StructuredHeadersParserAsyncWaiter() = default;
void StructuredHeadersParserAsyncWaiter::ParseItem(
const std::string& header, std::optional<::net::structured_headers::ParameterizedItem>* out_result) { … }
std::optional<::net::structured_headers::ParameterizedItem> StructuredHeadersParserAsyncWaiter::ParseItem(
const std::string& header) { … }
void StructuredHeadersParserAsyncWaiter::ParseList(
const std::string& header, std::optional<std::vector<::net::structured_headers::ParameterizedMember>>* out_result) { … }
std::optional<std::vector<::net::structured_headers::ParameterizedMember>> StructuredHeadersParserAsyncWaiter::ParseList(
const std::string& header) { … }
void StructuredHeadersParserAsyncWaiter::ParseDictionary(
const std::string& header, std::optional<::net::structured_headers::Dictionary>* out_result) { … }
std::optional<::net::structured_headers::Dictionary> StructuredHeadersParserAsyncWaiter::ParseDictionary(
const std::string& header) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif