#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/subapps/sub_apps_service.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 "third_party/blink/public/mojom/subapps/sub_apps_service.mojom-params-data.h"
#include "third_party/blink/public/mojom/subapps/sub_apps_service.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/subapps/sub_apps_service.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/subapps/sub_apps_service.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
SubAppsServiceAddParameters::SubAppsServiceAddParameters()
: … { … }
SubAppsServiceAddParameters::SubAppsServiceAddParameters(
const WTF::String& manifest_id_path_in,
const WTF::String& install_url_path_in)
: … { … }
SubAppsServiceAddParameters::~SubAppsServiceAddParameters() = default;
size_t SubAppsServiceAddParameters::Hash(size_t seed) const { … }
void SubAppsServiceAddParameters::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SubAppsServiceAddParameters::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SubAppsServiceAddResult::SubAppsServiceAddResult()
: … { … }
SubAppsServiceAddResult::SubAppsServiceAddResult(
const WTF::String& manifest_id_path_in,
SubAppsServiceResultCode result_code_in)
: … { … }
SubAppsServiceAddResult::~SubAppsServiceAddResult() = default;
size_t SubAppsServiceAddResult::Hash(size_t seed) const { … }
void SubAppsServiceAddResult::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SubAppsServiceAddResult::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SubAppsServiceListResult::SubAppsServiceListResult()
: … { … }
SubAppsServiceListResult::SubAppsServiceListResult(
SubAppsServiceResultCode result_code_in,
WTF::Vector<SubAppsServiceListResultEntryPtr> sub_apps_list_in)
: … { … }
SubAppsServiceListResult::~SubAppsServiceListResult() = default;
void SubAppsServiceListResult::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SubAppsServiceListResult::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SubAppsServiceListResultEntry::SubAppsServiceListResultEntry()
: … { … }
SubAppsServiceListResultEntry::SubAppsServiceListResultEntry(
const WTF::String& manifest_id_path_in,
const WTF::String& app_name_in)
: … { … }
SubAppsServiceListResultEntry::~SubAppsServiceListResultEntry() = default;
size_t SubAppsServiceListResultEntry::Hash(size_t seed) const { … }
void SubAppsServiceListResultEntry::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SubAppsServiceListResultEntry::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SubAppsServiceRemoveResult::SubAppsServiceRemoveResult()
: … { … }
SubAppsServiceRemoveResult::SubAppsServiceRemoveResult(
const WTF::String& manifest_id_path_in,
SubAppsServiceResultCode result_code_in)
: … { … }
SubAppsServiceRemoveResult::~SubAppsServiceRemoveResult() = default;
size_t SubAppsServiceRemoveResult::Hash(size_t seed) const { … }
void SubAppsServiceRemoveResult::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SubAppsServiceRemoveResult::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char SubAppsService::Name_[] = …;
SubAppsService::IPCStableHashFunction SubAppsService::MessageToMethodInfo_(mojo::Message& message) { … }
const char* SubAppsService::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t SubAppsService::Add_Sym::IPCStableHash() { … }
uint32_t SubAppsService::List_Sym::IPCStableHash() { … }
uint32_t SubAppsService::Remove_Sym::IPCStableHash() { … }
# endif
class SubAppsService_Add_ForwardToCallback
: public mojo::MessageReceiver { … };
class SubAppsService_List_ForwardToCallback
: public mojo::MessageReceiver { … };
class SubAppsService_Remove_ForwardToCallback
: public mojo::MessageReceiver { … };
SubAppsServiceProxy::SubAppsServiceProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void SubAppsServiceProxy::Add(
WTF::Vector<SubAppsServiceAddParametersPtr> in_sub_apps_to_add, AddCallback callback) { … }
void SubAppsServiceProxy::List(
ListCallback callback) { … }
void SubAppsServiceProxy::Remove(
const WTF::Vector<WTF::String>& in_manifest_id_paths, RemoveCallback callback) { … }
class SubAppsService_Add_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool SubAppsService_Add_ForwardToCallback::Accept(
mojo::Message* message) { … }
void SubAppsService_Add_ProxyToResponder::Run(
WTF::Vector<SubAppsServiceAddResultPtr> in_result) { … }
class SubAppsService_List_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool SubAppsService_List_ForwardToCallback::Accept(
mojo::Message* message) { … }
void SubAppsService_List_ProxyToResponder::Run(
SubAppsServiceListResultPtr in_result) { … }
class SubAppsService_Remove_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool SubAppsService_Remove_ForwardToCallback::Accept(
mojo::Message* message) { … }
void SubAppsService_Remove_ProxyToResponder::Run(
WTF::Vector<SubAppsServiceRemoveResultPtr> in_result) { … }
bool SubAppsServiceStubDispatch::Accept(
SubAppsService* impl,
mojo::Message* message) { … }
bool SubAppsServiceStubDispatch::AcceptWithResponder(
SubAppsService* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kSubAppsServiceValidationInfo[] = …;
bool SubAppsServiceRequestValidator::Accept(mojo::Message* message) { … }
bool SubAppsServiceResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::SubAppsServiceAddParameters::DataView, ::blink::mojom::blink::SubAppsServiceAddParametersPtr>::Read(
::blink::mojom::blink::SubAppsServiceAddParameters::DataView input,
::blink::mojom::blink::SubAppsServiceAddParametersPtr* output) { … }
bool StructTraits<::blink::mojom::blink::SubAppsServiceAddResult::DataView, ::blink::mojom::blink::SubAppsServiceAddResultPtr>::Read(
::blink::mojom::blink::SubAppsServiceAddResult::DataView input,
::blink::mojom::blink::SubAppsServiceAddResultPtr* output) { … }
bool StructTraits<::blink::mojom::blink::SubAppsServiceListResult::DataView, ::blink::mojom::blink::SubAppsServiceListResultPtr>::Read(
::blink::mojom::blink::SubAppsServiceListResult::DataView input,
::blink::mojom::blink::SubAppsServiceListResultPtr* output) { … }
bool StructTraits<::blink::mojom::blink::SubAppsServiceListResultEntry::DataView, ::blink::mojom::blink::SubAppsServiceListResultEntryPtr>::Read(
::blink::mojom::blink::SubAppsServiceListResultEntry::DataView input,
::blink::mojom::blink::SubAppsServiceListResultEntryPtr* output) { … }
bool StructTraits<::blink::mojom::blink::SubAppsServiceRemoveResult::DataView, ::blink::mojom::blink::SubAppsServiceRemoveResultPtr>::Read(
::blink::mojom::blink::SubAppsServiceRemoveResult::DataView input,
::blink::mojom::blink::SubAppsServiceRemoveResultPtr* output) { … }
}
namespace blink::mojom::blink {
void SubAppsServiceInterceptorForTesting::Add(WTF::Vector<SubAppsServiceAddParametersPtr> sub_apps_to_add, AddCallback callback) { … }
void SubAppsServiceInterceptorForTesting::List(ListCallback callback) { … }
void SubAppsServiceInterceptorForTesting::Remove(const WTF::Vector<WTF::String>& manifest_id_paths, RemoveCallback callback) { … }
SubAppsServiceAsyncWaiter::SubAppsServiceAsyncWaiter(
SubAppsService* proxy) : … { … }
SubAppsServiceAsyncWaiter::~SubAppsServiceAsyncWaiter() = default;
void SubAppsServiceAsyncWaiter::Add(
WTF::Vector<SubAppsServiceAddParametersPtr> sub_apps_to_add, WTF::Vector<SubAppsServiceAddResultPtr>* out_result) { … }
WTF::Vector<SubAppsServiceAddResultPtr> SubAppsServiceAsyncWaiter::Add(
WTF::Vector<SubAppsServiceAddParametersPtr> sub_apps_to_add) { … }
void SubAppsServiceAsyncWaiter::List(
SubAppsServiceListResultPtr* out_result) { … }
SubAppsServiceListResultPtr SubAppsServiceAsyncWaiter::List(
) { … }
void SubAppsServiceAsyncWaiter::Remove(
const WTF::Vector<WTF::String>& manifest_id_paths, WTF::Vector<SubAppsServiceRemoveResultPtr>* out_result) { … }
WTF::Vector<SubAppsServiceRemoveResultPtr> SubAppsServiceAsyncWaiter::Remove(
const WTF::Vector<WTF::String>& manifest_id_paths) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif