#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "chrome/browser/ui/webui/web_app_internals/web_app_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/web_app_internals/web_app_internals.mojom-params-data.h"
#include "chrome/browser/ui/webui/web_app_internals/web_app_internals.mojom-shared-message-ids.h"
#include "chrome/browser/ui/webui/web_app_internals/web_app_internals.mojom-import-headers.h"
#include "chrome/browser/ui/webui/web_app_internals/web_app_internals.mojom-test-utils.h"
namespace mojom {
InstallIsolatedWebAppSuccess::InstallIsolatedWebAppSuccess() { … }
InstallIsolatedWebAppSuccess::~InstallIsolatedWebAppSuccess() = default;
size_t InstallIsolatedWebAppSuccess::Hash(size_t seed) const { … }
void InstallIsolatedWebAppSuccess::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool InstallIsolatedWebAppSuccess::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
IwaDevModeAppInfo::IwaDevModeAppInfo()
: … { … }
IwaDevModeAppInfo::IwaDevModeAppInfo(
const std::string& app_id_in,
const std::string& name_in,
IwaDevModeLocationPtr location_in,
const std::string& installed_version_in)
: … { … }
IwaDevModeAppInfo::~IwaDevModeAppInfo() = default;
void IwaDevModeAppInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool IwaDevModeAppInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
InstallIsolatedWebAppResult::InstallIsolatedWebAppResult() : … { … }
InstallIsolatedWebAppResult::~InstallIsolatedWebAppResult() { … }
void InstallIsolatedWebAppResult::set_success(
InstallIsolatedWebAppSuccessPtr success) { … }
void InstallIsolatedWebAppResult::set_error(
const std::string& error) { … }
void InstallIsolatedWebAppResult::DestroyActive() { … }
size_t InstallIsolatedWebAppResult::Hash(size_t seed) const { … }
bool InstallIsolatedWebAppResult::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
IwaDevModeLocation::IwaDevModeLocation() : … { … }
IwaDevModeLocation::~IwaDevModeLocation() { … }
void IwaDevModeLocation::set_proxy_origin(
const ::url::Origin& proxy_origin) { … }
void IwaDevModeLocation::set_bundle_path(
const ::base::FilePath& bundle_path) { … }
void IwaDevModeLocation::DestroyActive() { … }
bool IwaDevModeLocation::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char WebAppInternalsHandler::Name_[] = …;
WebAppInternalsHandler::IPCStableHashFunction WebAppInternalsHandler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* WebAppInternalsHandler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t WebAppInternalsHandler::GetDebugInfoAsJsonString_Sym::IPCStableHash() { … }
uint32_t WebAppInternalsHandler::InstallIsolatedWebAppFromDevProxy_Sym::IPCStableHash() { … }
uint32_t WebAppInternalsHandler::SelectFileAndInstallIsolatedWebAppFromDevBundle_Sym::IPCStableHash() { … }
uint32_t WebAppInternalsHandler::UpdateDevProxyIsolatedWebApp_Sym::IPCStableHash() { … }
uint32_t WebAppInternalsHandler::SelectFileAndUpdateIsolatedWebAppFromDevBundle_Sym::IPCStableHash() { … }
uint32_t WebAppInternalsHandler::SearchForIsolatedWebAppUpdates_Sym::IPCStableHash() { … }
uint32_t WebAppInternalsHandler::GetIsolatedWebAppDevModeAppInfo_Sym::IPCStableHash() { … }
uint32_t WebAppInternalsHandler::RotateKey_Sym::IPCStableHash() { … }
# endif
class WebAppInternalsHandler_GetDebugInfoAsJsonString_ForwardToCallback
: public mojo::MessageReceiver { … };
class WebAppInternalsHandler_InstallIsolatedWebAppFromDevProxy_ForwardToCallback
: public mojo::MessageReceiver { … };
class WebAppInternalsHandler_SelectFileAndInstallIsolatedWebAppFromDevBundle_ForwardToCallback
: public mojo::MessageReceiver { … };
class WebAppInternalsHandler_UpdateDevProxyIsolatedWebApp_ForwardToCallback
: public mojo::MessageReceiver { … };
class WebAppInternalsHandler_SelectFileAndUpdateIsolatedWebAppFromDevBundle_ForwardToCallback
: public mojo::MessageReceiver { … };
class WebAppInternalsHandler_SearchForIsolatedWebAppUpdates_ForwardToCallback
: public mojo::MessageReceiver { … };
class WebAppInternalsHandler_GetIsolatedWebAppDevModeAppInfo_ForwardToCallback
: public mojo::MessageReceiver { … };
WebAppInternalsHandlerProxy::WebAppInternalsHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void WebAppInternalsHandlerProxy::GetDebugInfoAsJsonString(
GetDebugInfoAsJsonStringCallback callback) { … }
void WebAppInternalsHandlerProxy::InstallIsolatedWebAppFromDevProxy(
const ::GURL& in_url, InstallIsolatedWebAppFromDevProxyCallback callback) { … }
void WebAppInternalsHandlerProxy::SelectFileAndInstallIsolatedWebAppFromDevBundle(
SelectFileAndInstallIsolatedWebAppFromDevBundleCallback callback) { … }
void WebAppInternalsHandlerProxy::UpdateDevProxyIsolatedWebApp(
const std::string& in_app_id, UpdateDevProxyIsolatedWebAppCallback callback) { … }
void WebAppInternalsHandlerProxy::SelectFileAndUpdateIsolatedWebAppFromDevBundle(
const std::string& in_app_id, SelectFileAndUpdateIsolatedWebAppFromDevBundleCallback callback) { … }
void WebAppInternalsHandlerProxy::SearchForIsolatedWebAppUpdates(
SearchForIsolatedWebAppUpdatesCallback callback) { … }
void WebAppInternalsHandlerProxy::GetIsolatedWebAppDevModeAppInfo(
GetIsolatedWebAppDevModeAppInfoCallback callback) { … }
void WebAppInternalsHandlerProxy::RotateKey(
const std::string& in_web_bundle_id, const std::optional<std::vector<uint8_t>>& in_rotated_key) { … }
class WebAppInternalsHandler_GetDebugInfoAsJsonString_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WebAppInternalsHandler_GetDebugInfoAsJsonString_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WebAppInternalsHandler_GetDebugInfoAsJsonString_ProxyToResponder::Run(
const std::string& in_result) { … }
class WebAppInternalsHandler_InstallIsolatedWebAppFromDevProxy_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WebAppInternalsHandler_InstallIsolatedWebAppFromDevProxy_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WebAppInternalsHandler_InstallIsolatedWebAppFromDevProxy_ProxyToResponder::Run(
InstallIsolatedWebAppResultPtr in_result) { … }
class WebAppInternalsHandler_SelectFileAndInstallIsolatedWebAppFromDevBundle_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WebAppInternalsHandler_SelectFileAndInstallIsolatedWebAppFromDevBundle_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WebAppInternalsHandler_SelectFileAndInstallIsolatedWebAppFromDevBundle_ProxyToResponder::Run(
InstallIsolatedWebAppResultPtr in_result) { … }
class WebAppInternalsHandler_UpdateDevProxyIsolatedWebApp_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WebAppInternalsHandler_UpdateDevProxyIsolatedWebApp_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WebAppInternalsHandler_UpdateDevProxyIsolatedWebApp_ProxyToResponder::Run(
const std::string& in_result) { … }
class WebAppInternalsHandler_SelectFileAndUpdateIsolatedWebAppFromDevBundle_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WebAppInternalsHandler_SelectFileAndUpdateIsolatedWebAppFromDevBundle_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WebAppInternalsHandler_SelectFileAndUpdateIsolatedWebAppFromDevBundle_ProxyToResponder::Run(
const std::string& in_result) { … }
class WebAppInternalsHandler_SearchForIsolatedWebAppUpdates_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WebAppInternalsHandler_SearchForIsolatedWebAppUpdates_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WebAppInternalsHandler_SearchForIsolatedWebAppUpdates_ProxyToResponder::Run(
const std::string& in_result) { … }
class WebAppInternalsHandler_GetIsolatedWebAppDevModeAppInfo_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WebAppInternalsHandler_GetIsolatedWebAppDevModeAppInfo_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WebAppInternalsHandler_GetIsolatedWebAppDevModeAppInfo_ProxyToResponder::Run(
std::vector<IwaDevModeAppInfoPtr> in_apps) { … }
bool WebAppInternalsHandlerStubDispatch::Accept(
WebAppInternalsHandler* impl,
mojo::Message* message) { … }
bool WebAppInternalsHandlerStubDispatch::AcceptWithResponder(
WebAppInternalsHandler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kWebAppInternalsHandlerValidationInfo[] = …;
bool WebAppInternalsHandlerRequestValidator::Accept(mojo::Message* message) { … }
bool WebAppInternalsHandlerResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::mojom::InstallIsolatedWebAppSuccess::DataView, ::mojom::InstallIsolatedWebAppSuccessPtr>::Read(
::mojom::InstallIsolatedWebAppSuccess::DataView input,
::mojom::InstallIsolatedWebAppSuccessPtr* output) { … }
bool StructTraits<::mojom::IwaDevModeAppInfo::DataView, ::mojom::IwaDevModeAppInfoPtr>::Read(
::mojom::IwaDevModeAppInfo::DataView input,
::mojom::IwaDevModeAppInfoPtr* output) { … }
bool UnionTraits<::mojom::InstallIsolatedWebAppResult::DataView, ::mojom::InstallIsolatedWebAppResultPtr>::Read(
::mojom::InstallIsolatedWebAppResult::DataView input,
::mojom::InstallIsolatedWebAppResultPtr* output) { … }
bool UnionTraits<::mojom::IwaDevModeLocation::DataView, ::mojom::IwaDevModeLocationPtr>::Read(
::mojom::IwaDevModeLocation::DataView input,
::mojom::IwaDevModeLocationPtr* output) { … }
}
namespace mojom {
void WebAppInternalsHandlerInterceptorForTesting::GetDebugInfoAsJsonString(GetDebugInfoAsJsonStringCallback callback) { … }
void WebAppInternalsHandlerInterceptorForTesting::InstallIsolatedWebAppFromDevProxy(const ::GURL& url, InstallIsolatedWebAppFromDevProxyCallback callback) { … }
void WebAppInternalsHandlerInterceptorForTesting::SelectFileAndInstallIsolatedWebAppFromDevBundle(SelectFileAndInstallIsolatedWebAppFromDevBundleCallback callback) { … }
void WebAppInternalsHandlerInterceptorForTesting::UpdateDevProxyIsolatedWebApp(const std::string& app_id, UpdateDevProxyIsolatedWebAppCallback callback) { … }
void WebAppInternalsHandlerInterceptorForTesting::SelectFileAndUpdateIsolatedWebAppFromDevBundle(const std::string& app_id, SelectFileAndUpdateIsolatedWebAppFromDevBundleCallback callback) { … }
void WebAppInternalsHandlerInterceptorForTesting::SearchForIsolatedWebAppUpdates(SearchForIsolatedWebAppUpdatesCallback callback) { … }
void WebAppInternalsHandlerInterceptorForTesting::GetIsolatedWebAppDevModeAppInfo(GetIsolatedWebAppDevModeAppInfoCallback callback) { … }
void WebAppInternalsHandlerInterceptorForTesting::RotateKey(const std::string& web_bundle_id, const std::optional<std::vector<uint8_t>>& rotated_key) { … }
WebAppInternalsHandlerAsyncWaiter::WebAppInternalsHandlerAsyncWaiter(
WebAppInternalsHandler* proxy) : … { … }
WebAppInternalsHandlerAsyncWaiter::~WebAppInternalsHandlerAsyncWaiter() = default;
void WebAppInternalsHandlerAsyncWaiter::GetDebugInfoAsJsonString(
std::string* out_result) { … }
std::string WebAppInternalsHandlerAsyncWaiter::GetDebugInfoAsJsonString(
) { … }
void WebAppInternalsHandlerAsyncWaiter::InstallIsolatedWebAppFromDevProxy(
const ::GURL& url, InstallIsolatedWebAppResultPtr* out_result) { … }
InstallIsolatedWebAppResultPtr WebAppInternalsHandlerAsyncWaiter::InstallIsolatedWebAppFromDevProxy(
const ::GURL& url) { … }
void WebAppInternalsHandlerAsyncWaiter::SelectFileAndInstallIsolatedWebAppFromDevBundle(
InstallIsolatedWebAppResultPtr* out_result) { … }
InstallIsolatedWebAppResultPtr WebAppInternalsHandlerAsyncWaiter::SelectFileAndInstallIsolatedWebAppFromDevBundle(
) { … }
void WebAppInternalsHandlerAsyncWaiter::UpdateDevProxyIsolatedWebApp(
const std::string& app_id, std::string* out_result) { … }
std::string WebAppInternalsHandlerAsyncWaiter::UpdateDevProxyIsolatedWebApp(
const std::string& app_id) { … }
void WebAppInternalsHandlerAsyncWaiter::SelectFileAndUpdateIsolatedWebAppFromDevBundle(
const std::string& app_id, std::string* out_result) { … }
std::string WebAppInternalsHandlerAsyncWaiter::SelectFileAndUpdateIsolatedWebAppFromDevBundle(
const std::string& app_id) { … }
void WebAppInternalsHandlerAsyncWaiter::SearchForIsolatedWebAppUpdates(
std::string* out_result) { … }
std::string WebAppInternalsHandlerAsyncWaiter::SearchForIsolatedWebAppUpdates(
) { … }
void WebAppInternalsHandlerAsyncWaiter::GetIsolatedWebAppDevModeAppInfo(
std::vector<IwaDevModeAppInfoPtr>* out_apps) { … }
std::vector<IwaDevModeAppInfoPtr> WebAppInternalsHandlerAsyncWaiter::GetIsolatedWebAppDevModeAppInfo(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif