#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "ui/webui/resources/cr_components/certificate_manager/certificate_manager_v2.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 "ui/webui/resources/cr_components/certificate_manager/certificate_manager_v2.mojom-params-data.h"
#include "ui/webui/resources/cr_components/certificate_manager/certificate_manager_v2.mojom-shared-message-ids.h"
#include "ui/webui/resources/cr_components/certificate_manager/certificate_manager_v2.mojom-import-headers.h"
#include "ui/webui/resources/cr_components/certificate_manager/certificate_manager_v2.mojom-test-utils.h"
namespace certificate_manager_v2::mojom {
SummaryCertInfo::SummaryCertInfo()
: … { … }
SummaryCertInfo::SummaryCertInfo(
const std::string& sha256hash_hex_in,
const std::string& display_name_in)
: … { … }
SummaryCertInfo::~SummaryCertInfo() = default;
size_t SummaryCertInfo::Hash(size_t seed) const { … }
void SummaryCertInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SummaryCertInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CertManagementMetadata::CertManagementMetadata()
: … { … }
CertManagementMetadata::CertManagementMetadata(
bool include_system_trust_store_in,
uint8_t num_user_added_system_certs_in,
bool is_include_system_trust_store_managed_in,
uint8_t num_policy_certs_in)
: … { … }
CertManagementMetadata::~CertManagementMetadata() = default;
size_t CertManagementMetadata::Hash(size_t seed) const { … }
void CertManagementMetadata::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool CertManagementMetadata::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ImportResult::ImportResult() : … { … }
ImportResult::~ImportResult() { … }
void ImportResult::set_error(
const std::string& error) { … }
void ImportResult::DestroyActive() { … }
size_t ImportResult::Hash(size_t seed) const { … }
bool ImportResult::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char CertificateManagerPageHandlerFactory::Name_[] = …;
CertificateManagerPageHandlerFactory::IPCStableHashFunction CertificateManagerPageHandlerFactory::MessageToMethodInfo_(mojo::Message& message) { … }
const char* CertificateManagerPageHandlerFactory::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CertificateManagerPageHandlerFactory::CreateCertificateManagerPageHandler_Sym::IPCStableHash() { … }
# endif
CertificateManagerPageHandlerFactoryProxy::CertificateManagerPageHandlerFactoryProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void CertificateManagerPageHandlerFactoryProxy::CreateCertificateManagerPageHandler(
::mojo::PendingRemote<CertificateManagerPage> in_page, ::mojo::PendingReceiver<CertificateManagerPageHandler> in_handler) { … }
bool CertificateManagerPageHandlerFactoryStubDispatch::Accept(
CertificateManagerPageHandlerFactory* impl,
mojo::Message* message) { … }
bool CertificateManagerPageHandlerFactoryStubDispatch::AcceptWithResponder(
CertificateManagerPageHandlerFactory* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kCertificateManagerPageHandlerFactoryValidationInfo[] = …;
bool CertificateManagerPageHandlerFactoryRequestValidator::Accept(mojo::Message* message) { … }
const char CertificateManagerPageHandler::Name_[] = …;
CertificateManagerPageHandler::IPCStableHashFunction CertificateManagerPageHandler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* CertificateManagerPageHandler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CertificateManagerPageHandler::GetCertificates_Sym::IPCStableHash() { … }
uint32_t CertificateManagerPageHandler::GetCertManagementMetadata_Sym::IPCStableHash() { … }
uint32_t CertificateManagerPageHandler::ViewCertificate_Sym::IPCStableHash() { … }
uint32_t CertificateManagerPageHandler::ExportCertificates_Sym::IPCStableHash() { … }
uint32_t CertificateManagerPageHandler::ImportCertificate_Sym::IPCStableHash() { … }
# endif
class CertificateManagerPageHandler_GetCertificates_ForwardToCallback
: public mojo::MessageReceiver { … };
class CertificateManagerPageHandler_GetCertManagementMetadata_ForwardToCallback
: public mojo::MessageReceiver { … };
class CertificateManagerPageHandler_ImportCertificate_ForwardToCallback
: public mojo::MessageReceiver { … };
CertificateManagerPageHandlerProxy::CertificateManagerPageHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void CertificateManagerPageHandlerProxy::GetCertificates(
CertificateSource in_source, GetCertificatesCallback callback) { … }
void CertificateManagerPageHandlerProxy::GetCertManagementMetadata(
GetCertManagementMetadataCallback callback) { … }
void CertificateManagerPageHandlerProxy::ViewCertificate(
CertificateSource in_source, const std::string& in_sha256_hash_hex) { … }
void CertificateManagerPageHandlerProxy::ExportCertificates(
CertificateSource in_source) { … }
void CertificateManagerPageHandlerProxy::ImportCertificate(
CertificateSource in_source, ImportCertificateCallback callback) { … }
class CertificateManagerPageHandler_GetCertificates_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CertificateManagerPageHandler_GetCertificates_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CertificateManagerPageHandler_GetCertificates_ProxyToResponder::Run(
std::vector<SummaryCertInfoPtr> in_certs) { … }
class CertificateManagerPageHandler_GetCertManagementMetadata_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CertificateManagerPageHandler_GetCertManagementMetadata_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CertificateManagerPageHandler_GetCertManagementMetadata_ProxyToResponder::Run(
CertManagementMetadataPtr in_metadata) { … }
class CertificateManagerPageHandler_ImportCertificate_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CertificateManagerPageHandler_ImportCertificate_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CertificateManagerPageHandler_ImportCertificate_ProxyToResponder::Run(
ImportResultPtr in_result) { … }
bool CertificateManagerPageHandlerStubDispatch::Accept(
CertificateManagerPageHandler* impl,
mojo::Message* message) { … }
bool CertificateManagerPageHandlerStubDispatch::AcceptWithResponder(
CertificateManagerPageHandler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kCertificateManagerPageHandlerValidationInfo[] = …;
bool CertificateManagerPageHandlerRequestValidator::Accept(mojo::Message* message) { … }
bool CertificateManagerPageHandlerResponseValidator::Accept(mojo::Message* message) { … }
const char CertificateManagerPage::Name_[] = …;
CertificateManagerPage::IPCStableHashFunction CertificateManagerPage::MessageToMethodInfo_(mojo::Message& message) { … }
const char* CertificateManagerPage::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CertificateManagerPage::AskForImportPassword_Sym::IPCStableHash() { … }
# endif
class CertificateManagerPage_AskForImportPassword_ForwardToCallback
: public mojo::MessageReceiver { … };
CertificateManagerPageProxy::CertificateManagerPageProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void CertificateManagerPageProxy::AskForImportPassword(
AskForImportPasswordCallback callback) { … }
class CertificateManagerPage_AskForImportPassword_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CertificateManagerPage_AskForImportPassword_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CertificateManagerPage_AskForImportPassword_ProxyToResponder::Run(
const std::optional<std::string>& in_password) { … }
bool CertificateManagerPageStubDispatch::Accept(
CertificateManagerPage* impl,
mojo::Message* message) { … }
bool CertificateManagerPageStubDispatch::AcceptWithResponder(
CertificateManagerPage* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kCertificateManagerPageValidationInfo[] = …;
bool CertificateManagerPageRequestValidator::Accept(mojo::Message* message) { … }
bool CertificateManagerPageResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::certificate_manager_v2::mojom::SummaryCertInfo::DataView, ::certificate_manager_v2::mojom::SummaryCertInfoPtr>::Read(
::certificate_manager_v2::mojom::SummaryCertInfo::DataView input,
::certificate_manager_v2::mojom::SummaryCertInfoPtr* output) { … }
bool StructTraits<::certificate_manager_v2::mojom::CertManagementMetadata::DataView, ::certificate_manager_v2::mojom::CertManagementMetadataPtr>::Read(
::certificate_manager_v2::mojom::CertManagementMetadata::DataView input,
::certificate_manager_v2::mojom::CertManagementMetadataPtr* output) { … }
bool UnionTraits<::certificate_manager_v2::mojom::ImportResult::DataView, ::certificate_manager_v2::mojom::ImportResultPtr>::Read(
::certificate_manager_v2::mojom::ImportResult::DataView input,
::certificate_manager_v2::mojom::ImportResultPtr* output) { … }
}
namespace certificate_manager_v2::mojom {
void CertificateManagerPageHandlerFactoryInterceptorForTesting::CreateCertificateManagerPageHandler(::mojo::PendingRemote<CertificateManagerPage> page, ::mojo::PendingReceiver<CertificateManagerPageHandler> handler) { … }
CertificateManagerPageHandlerFactoryAsyncWaiter::CertificateManagerPageHandlerFactoryAsyncWaiter(
CertificateManagerPageHandlerFactory* proxy) : … { … }
CertificateManagerPageHandlerFactoryAsyncWaiter::~CertificateManagerPageHandlerFactoryAsyncWaiter() = default;
void CertificateManagerPageHandlerInterceptorForTesting::GetCertificates(CertificateSource source, GetCertificatesCallback callback) { … }
void CertificateManagerPageHandlerInterceptorForTesting::GetCertManagementMetadata(GetCertManagementMetadataCallback callback) { … }
void CertificateManagerPageHandlerInterceptorForTesting::ViewCertificate(CertificateSource source, const std::string& sha256_hash_hex) { … }
void CertificateManagerPageHandlerInterceptorForTesting::ExportCertificates(CertificateSource source) { … }
void CertificateManagerPageHandlerInterceptorForTesting::ImportCertificate(CertificateSource source, ImportCertificateCallback callback) { … }
CertificateManagerPageHandlerAsyncWaiter::CertificateManagerPageHandlerAsyncWaiter(
CertificateManagerPageHandler* proxy) : … { … }
CertificateManagerPageHandlerAsyncWaiter::~CertificateManagerPageHandlerAsyncWaiter() = default;
void CertificateManagerPageHandlerAsyncWaiter::GetCertificates(
CertificateSource source, std::vector<SummaryCertInfoPtr>* out_certs) { … }
std::vector<SummaryCertInfoPtr> CertificateManagerPageHandlerAsyncWaiter::GetCertificates(
CertificateSource source) { … }
void CertificateManagerPageHandlerAsyncWaiter::GetCertManagementMetadata(
CertManagementMetadataPtr* out_metadata) { … }
CertManagementMetadataPtr CertificateManagerPageHandlerAsyncWaiter::GetCertManagementMetadata(
) { … }
void CertificateManagerPageHandlerAsyncWaiter::ImportCertificate(
CertificateSource source, ImportResultPtr* out_result) { … }
ImportResultPtr CertificateManagerPageHandlerAsyncWaiter::ImportCertificate(
CertificateSource source) { … }
void CertificateManagerPageInterceptorForTesting::AskForImportPassword(AskForImportPasswordCallback callback) { … }
CertificateManagerPageAsyncWaiter::CertificateManagerPageAsyncWaiter(
CertificateManagerPage* proxy) : … { … }
CertificateManagerPageAsyncWaiter::~CertificateManagerPageAsyncWaiter() = default;
void CertificateManagerPageAsyncWaiter::AskForImportPassword(
std::optional<std::string>* out_password) { … }
std::optional<std::string> CertificateManagerPageAsyncWaiter::AskForImportPassword(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif