#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "chrome/browser/ui/webui/app_service_internals/app_service_internals.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/browser/ui/webui/app_service_internals/app_service_internals.mojom-params-data.h"
#include "chrome/browser/ui/webui/app_service_internals/app_service_internals.mojom-shared-message-ids.h"
#include "chrome/browser/ui/webui/app_service_internals/app_service_internals.mojom-import-headers.h"
#include "chrome/browser/ui/webui/app_service_internals/app_service_internals.mojom-test-utils.h"
namespace mojom::app_service_internals {
AppInfo::AppInfo()
: … { … }
AppInfo::AppInfo(
const std::string& id_in,
const std::string& name_in,
const std::string& debug_info_in)
: … { … }
AppInfo::~AppInfo() = default;
size_t AppInfo::Hash(size_t seed) const { … }
void AppInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AppInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PreferredAppInfo::PreferredAppInfo()
: … { … }
PreferredAppInfo::PreferredAppInfo(
const std::string& id_in,
const std::string& name_in,
const std::string& preferred_filters_in)
: … { … }
PreferredAppInfo::~PreferredAppInfo() = default;
size_t PreferredAppInfo::Hash(size_t seed) const { … }
void PreferredAppInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PreferredAppInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PromiseAppInfo::PromiseAppInfo()
: … { … }
PromiseAppInfo::PromiseAppInfo(
const std::string& package_id_in,
const std::string& debug_info_in)
: … { … }
PromiseAppInfo::~PromiseAppInfo() = default;
size_t PromiseAppInfo::Hash(size_t seed) const { … }
void PromiseAppInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PromiseAppInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AppCapabilityInfo::AppCapabilityInfo()
: … { … }
AppCapabilityInfo::AppCapabilityInfo(
const std::string& name_in,
const std::string& debug_info_in)
: … { … }
AppCapabilityInfo::~AppCapabilityInfo() = default;
size_t AppCapabilityInfo::Hash(size_t seed) const { … }
void AppCapabilityInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AppCapabilityInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DebugInfo::DebugInfo()
: … { … }
DebugInfo::DebugInfo(
std::vector<AppInfoPtr> app_list_in,
std::vector<PreferredAppInfoPtr> preferred_app_list_in,
std::vector<PromiseAppInfoPtr> promise_app_list_in,
std::vector<AppCapabilityInfoPtr> app_capability_list_in)
: … { … }
DebugInfo::~DebugInfo() = default;
void DebugInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DebugInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char AppServiceInternalsPageHandler::Name_[] = …;
AppServiceInternalsPageHandler::IPCStableHashFunction AppServiceInternalsPageHandler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* AppServiceInternalsPageHandler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t AppServiceInternalsPageHandler::GetDebugInfo_Sym::IPCStableHash() { … }
# endif
class AppServiceInternalsPageHandler_GetDebugInfo_ForwardToCallback
: public mojo::MessageReceiver { … };
AppServiceInternalsPageHandlerProxy::AppServiceInternalsPageHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void AppServiceInternalsPageHandlerProxy::GetDebugInfo(
GetDebugInfoCallback callback) { … }
class AppServiceInternalsPageHandler_GetDebugInfo_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool AppServiceInternalsPageHandler_GetDebugInfo_ForwardToCallback::Accept(
mojo::Message* message) { … }
void AppServiceInternalsPageHandler_GetDebugInfo_ProxyToResponder::Run(
DebugInfoPtr in_debug_info) { … }
bool AppServiceInternalsPageHandlerStubDispatch::Accept(
AppServiceInternalsPageHandler* impl,
mojo::Message* message) { … }
bool AppServiceInternalsPageHandlerStubDispatch::AcceptWithResponder(
AppServiceInternalsPageHandler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kAppServiceInternalsPageHandlerValidationInfo[] = …;
bool AppServiceInternalsPageHandlerRequestValidator::Accept(mojo::Message* message) { … }
bool AppServiceInternalsPageHandlerResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::mojom::app_service_internals::AppInfo::DataView, ::mojom::app_service_internals::AppInfoPtr>::Read(
::mojom::app_service_internals::AppInfo::DataView input,
::mojom::app_service_internals::AppInfoPtr* output) { … }
bool StructTraits<::mojom::app_service_internals::PreferredAppInfo::DataView, ::mojom::app_service_internals::PreferredAppInfoPtr>::Read(
::mojom::app_service_internals::PreferredAppInfo::DataView input,
::mojom::app_service_internals::PreferredAppInfoPtr* output) { … }
bool StructTraits<::mojom::app_service_internals::PromiseAppInfo::DataView, ::mojom::app_service_internals::PromiseAppInfoPtr>::Read(
::mojom::app_service_internals::PromiseAppInfo::DataView input,
::mojom::app_service_internals::PromiseAppInfoPtr* output) { … }
bool StructTraits<::mojom::app_service_internals::AppCapabilityInfo::DataView, ::mojom::app_service_internals::AppCapabilityInfoPtr>::Read(
::mojom::app_service_internals::AppCapabilityInfo::DataView input,
::mojom::app_service_internals::AppCapabilityInfoPtr* output) { … }
bool StructTraits<::mojom::app_service_internals::DebugInfo::DataView, ::mojom::app_service_internals::DebugInfoPtr>::Read(
::mojom::app_service_internals::DebugInfo::DataView input,
::mojom::app_service_internals::DebugInfoPtr* output) { … }
}
namespace mojom::app_service_internals {
void AppServiceInternalsPageHandlerInterceptorForTesting::GetDebugInfo(GetDebugInfoCallback callback) { … }
AppServiceInternalsPageHandlerAsyncWaiter::AppServiceInternalsPageHandlerAsyncWaiter(
AppServiceInternalsPageHandler* proxy) : … { … }
AppServiceInternalsPageHandlerAsyncWaiter::~AppServiceInternalsPageHandlerAsyncWaiter() = default;
void AppServiceInternalsPageHandlerAsyncWaiter::GetDebugInfo(
DebugInfoPtr* out_debug_info) { … }
DebugInfoPtr AppServiceInternalsPageHandlerAsyncWaiter::GetDebugInfo(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif