#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/webapps/services/web_app_origin_association/public/mojom/web_app_origin_association_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 "components/webapps/services/web_app_origin_association/public/mojom/web_app_origin_association_parser.mojom-params-data.h"
#include "components/webapps/services/web_app_origin_association/public/mojom/web_app_origin_association_parser.mojom-shared-message-ids.h"
#include "components/webapps/services/web_app_origin_association/public/mojom/web_app_origin_association_parser.mojom-import-headers.h"
#include "components/webapps/services/web_app_origin_association/public/mojom/web_app_origin_association_parser.mojom-test-utils.h"
namespace webapps::mojom {
WebAppOriginAssociation::WebAppOriginAssociation()
: … { … }
WebAppOriginAssociation::WebAppOriginAssociation(
std::vector<AssociatedWebAppPtr> apps_in)
: … { … }
WebAppOriginAssociation::~WebAppOriginAssociation() = default;
void WebAppOriginAssociation::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool WebAppOriginAssociation::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AssociatedWebApp::AssociatedWebApp()
: … { … }
AssociatedWebApp::AssociatedWebApp(
const ::GURL& web_app_identity_in)
: … { … }
AssociatedWebApp::~AssociatedWebApp() = default;
void AssociatedWebApp::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AssociatedWebApp::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebAppOriginAssociationError::WebAppOriginAssociationError()
: … { … }
WebAppOriginAssociationError::WebAppOriginAssociationError(
const std::string& message_in,
int32_t line_in,
int32_t column_in)
: … { … }
WebAppOriginAssociationError::~WebAppOriginAssociationError() = default;
size_t WebAppOriginAssociationError::Hash(size_t seed) const { … }
void WebAppOriginAssociationError::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool WebAppOriginAssociationError::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char WebAppOriginAssociationParser::Name_[] = …;
WebAppOriginAssociationParser::IPCStableHashFunction WebAppOriginAssociationParser::MessageToMethodInfo_(mojo::Message& message) { … }
const char* WebAppOriginAssociationParser::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t WebAppOriginAssociationParser::ParseWebAppOriginAssociation_Sym::IPCStableHash() { … }
# endif
class WebAppOriginAssociationParser_ParseWebAppOriginAssociation_ForwardToCallback
: public mojo::MessageReceiver { … };
WebAppOriginAssociationParserProxy::WebAppOriginAssociationParserProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void WebAppOriginAssociationParserProxy::ParseWebAppOriginAssociation(
const std::string& in_raw_json, ParseWebAppOriginAssociationCallback callback) { … }
class WebAppOriginAssociationParser_ParseWebAppOriginAssociation_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WebAppOriginAssociationParser_ParseWebAppOriginAssociation_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WebAppOriginAssociationParser_ParseWebAppOriginAssociation_ProxyToResponder::Run(
WebAppOriginAssociationPtr in_association, std::vector<WebAppOriginAssociationErrorPtr> in_errors) { … }
bool WebAppOriginAssociationParserStubDispatch::Accept(
WebAppOriginAssociationParser* impl,
mojo::Message* message) { … }
bool WebAppOriginAssociationParserStubDispatch::AcceptWithResponder(
WebAppOriginAssociationParser* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kWebAppOriginAssociationParserValidationInfo[] = …;
bool WebAppOriginAssociationParserRequestValidator::Accept(mojo::Message* message) { … }
bool WebAppOriginAssociationParserResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::webapps::mojom::WebAppOriginAssociation::DataView, ::webapps::mojom::WebAppOriginAssociationPtr>::Read(
::webapps::mojom::WebAppOriginAssociation::DataView input,
::webapps::mojom::WebAppOriginAssociationPtr* output) { … }
bool StructTraits<::webapps::mojom::AssociatedWebApp::DataView, ::webapps::mojom::AssociatedWebAppPtr>::Read(
::webapps::mojom::AssociatedWebApp::DataView input,
::webapps::mojom::AssociatedWebAppPtr* output) { … }
bool StructTraits<::webapps::mojom::WebAppOriginAssociationError::DataView, ::webapps::mojom::WebAppOriginAssociationErrorPtr>::Read(
::webapps::mojom::WebAppOriginAssociationError::DataView input,
::webapps::mojom::WebAppOriginAssociationErrorPtr* output) { … }
}
namespace webapps::mojom {
void WebAppOriginAssociationParserInterceptorForTesting::ParseWebAppOriginAssociation(const std::string& raw_json, ParseWebAppOriginAssociationCallback callback) { … }
WebAppOriginAssociationParserAsyncWaiter::WebAppOriginAssociationParserAsyncWaiter(
WebAppOriginAssociationParser* proxy) : … { … }
WebAppOriginAssociationParserAsyncWaiter::~WebAppOriginAssociationParserAsyncWaiter() = default;
void WebAppOriginAssociationParserAsyncWaiter::ParseWebAppOriginAssociation(
const std::string& raw_json, WebAppOriginAssociationPtr* out_association, std::vector<WebAppOriginAssociationErrorPtr>* out_errors) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif