#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/cert_verifier/public/mojom/cert_verifier_service_factory.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 "services/cert_verifier/public/mojom/cert_verifier_service_factory.mojom-params-data.h"
#include "services/cert_verifier/public/mojom/cert_verifier_service_factory.mojom-shared-message-ids.h"
#include "services/cert_verifier/public/mojom/cert_verifier_service_factory.mojom-import-headers.h"
#include "services/cert_verifier/public/mojom/cert_verifier_service_factory.mojom-test-utils.h"
namespace cert_verifier::mojom {
CertVerifierCreationParams::CertVerifierCreationParams()
: … { … }
CertVerifierCreationParams::CertVerifierCreationParams(
::cert_verifier::mojom::AdditionalCertificatesPtr initial_additional_certificates_in)
: … { … }
CertVerifierCreationParams::~CertVerifierCreationParams() = default;
void CertVerifierCreationParams::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool CertVerifierCreationParams::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ChromeRootCertInfo::ChromeRootCertInfo()
: … { … }
ChromeRootCertInfo::ChromeRootCertInfo(
const std::string& sha256hash_hex_in,
std::vector<uint8_t> cert_in)
: … { … }
ChromeRootCertInfo::~ChromeRootCertInfo() = default;
void ChromeRootCertInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ChromeRootCertInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ChromeRootStoreInfo::ChromeRootStoreInfo()
: … { … }
ChromeRootStoreInfo::ChromeRootStoreInfo(
int64_t version_in,
std::vector<ChromeRootCertInfoPtr> root_cert_info_in)
: … { … }
ChromeRootStoreInfo::~ChromeRootStoreInfo() = default;
void ChromeRootStoreInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ChromeRootStoreInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PlatformCertInfo::PlatformCertInfo()
: … { … }
PlatformCertInfo::PlatformCertInfo(
std::vector<uint8_t> cert_in,
CertificateTrust trust_setting_in)
: … { … }
PlatformCertInfo::~PlatformCertInfo() = default;
void PlatformCertInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PlatformCertInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PlatformRootStoreInfo::PlatformRootStoreInfo()
: … { … }
PlatformRootStoreInfo::PlatformRootStoreInfo(
std::vector<PlatformCertInfoPtr> user_added_certs_in)
: … { … }
PlatformRootStoreInfo::~PlatformRootStoreInfo() = default;
void PlatformRootStoreInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PlatformRootStoreInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char CertVerifierServiceFactory::Name_[] = …;
CertVerifierServiceFactory::IPCStableHashFunction CertVerifierServiceFactory::MessageToMethodInfo_(mojo::Message& message) { … }
const char* CertVerifierServiceFactory::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CertVerifierServiceFactory::GetNewCertVerifier_Sym::IPCStableHash() { … }
uint32_t CertVerifierServiceFactory::UpdateCRLSet_Sym::IPCStableHash() { … }
uint32_t CertVerifierServiceFactory::UpdateCtLogList_Sym::IPCStableHash() { … }
uint32_t CertVerifierServiceFactory::UpdateChromeRootStore_Sym::IPCStableHash() { … }
uint32_t CertVerifierServiceFactory::GetChromeRootStoreInfo_Sym::IPCStableHash() { … }
uint32_t CertVerifierServiceFactory::GetPlatformRootStoreInfo_Sym::IPCStableHash() { … }
uint32_t CertVerifierServiceFactory::UpdateNetworkTime_Sym::IPCStableHash() { … }
# endif
class CertVerifierServiceFactory_UpdateCRLSet_ForwardToCallback
: public mojo::MessageReceiver { … };
class CertVerifierServiceFactory_UpdateCtLogList_ForwardToCallback
: public mojo::MessageReceiver { … };
class CertVerifierServiceFactory_UpdateChromeRootStore_ForwardToCallback
: public mojo::MessageReceiver { … };
class CertVerifierServiceFactory_GetChromeRootStoreInfo_ForwardToCallback
: public mojo::MessageReceiver { … };
class CertVerifierServiceFactory_GetPlatformRootStoreInfo_ForwardToCallback
: public mojo::MessageReceiver { … };
CertVerifierServiceFactoryProxy::CertVerifierServiceFactoryProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void CertVerifierServiceFactoryProxy::GetNewCertVerifier(
::mojo::PendingReceiver<::cert_verifier::mojom::CertVerifierService> in_receiver, ::mojo::PendingReceiver<::cert_verifier::mojom::CertVerifierServiceUpdater> in_updater, ::mojo::PendingRemote<::cert_verifier::mojom::CertVerifierServiceClient> in_client, CertVerifierCreationParamsPtr in_creation_params) { … }
void CertVerifierServiceFactoryProxy::UpdateCRLSet(
::mojo_base::BigBuffer in_crl_set, UpdateCRLSetCallback callback) { … }
void CertVerifierServiceFactoryProxy::UpdateCtLogList(
std::vector<::network::mojom::CTLogInfoPtr> in_log_list, ::base::Time in_update_time, UpdateCtLogListCallback callback) { … }
void CertVerifierServiceFactoryProxy::UpdateChromeRootStore(
::mojo_base::ProtoWrapper in_new_root_store, UpdateChromeRootStoreCallback callback) { … }
void CertVerifierServiceFactoryProxy::GetChromeRootStoreInfo(
GetChromeRootStoreInfoCallback callback) { … }
void CertVerifierServiceFactoryProxy::GetPlatformRootStoreInfo(
GetPlatformRootStoreInfoCallback callback) { … }
void CertVerifierServiceFactoryProxy::UpdateNetworkTime(
::base::Time in_system_time, ::base::TimeTicks in_system_ticks, ::base::Time in_current_time) { … }
class CertVerifierServiceFactory_UpdateCRLSet_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CertVerifierServiceFactory_UpdateCRLSet_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CertVerifierServiceFactory_UpdateCRLSet_ProxyToResponder::Run(
) { … }
class CertVerifierServiceFactory_UpdateCtLogList_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CertVerifierServiceFactory_UpdateCtLogList_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CertVerifierServiceFactory_UpdateCtLogList_ProxyToResponder::Run(
) { … }
class CertVerifierServiceFactory_UpdateChromeRootStore_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CertVerifierServiceFactory_UpdateChromeRootStore_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CertVerifierServiceFactory_UpdateChromeRootStore_ProxyToResponder::Run(
) { … }
class CertVerifierServiceFactory_GetChromeRootStoreInfo_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CertVerifierServiceFactory_GetChromeRootStoreInfo_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CertVerifierServiceFactory_GetChromeRootStoreInfo_ProxyToResponder::Run(
ChromeRootStoreInfoPtr in_root_store_info) { … }
class CertVerifierServiceFactory_GetPlatformRootStoreInfo_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CertVerifierServiceFactory_GetPlatformRootStoreInfo_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CertVerifierServiceFactory_GetPlatformRootStoreInfo_ProxyToResponder::Run(
PlatformRootStoreInfoPtr in_root_store_info) { … }
bool CertVerifierServiceFactoryStubDispatch::Accept(
CertVerifierServiceFactory* impl,
mojo::Message* message) { … }
bool CertVerifierServiceFactoryStubDispatch::AcceptWithResponder(
CertVerifierServiceFactory* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kCertVerifierServiceFactoryValidationInfo[] = …;
bool CertVerifierServiceFactoryRequestValidator::Accept(mojo::Message* message) { … }
bool CertVerifierServiceFactoryResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::cert_verifier::mojom::CertVerifierCreationParams::DataView, ::cert_verifier::mojom::CertVerifierCreationParamsPtr>::Read(
::cert_verifier::mojom::CertVerifierCreationParams::DataView input,
::cert_verifier::mojom::CertVerifierCreationParamsPtr* output) { … }
bool StructTraits<::cert_verifier::mojom::ChromeRootCertInfo::DataView, ::cert_verifier::mojom::ChromeRootCertInfoPtr>::Read(
::cert_verifier::mojom::ChromeRootCertInfo::DataView input,
::cert_verifier::mojom::ChromeRootCertInfoPtr* output) { … }
bool StructTraits<::cert_verifier::mojom::ChromeRootStoreInfo::DataView, ::cert_verifier::mojom::ChromeRootStoreInfoPtr>::Read(
::cert_verifier::mojom::ChromeRootStoreInfo::DataView input,
::cert_verifier::mojom::ChromeRootStoreInfoPtr* output) { … }
bool StructTraits<::cert_verifier::mojom::PlatformCertInfo::DataView, ::cert_verifier::mojom::PlatformCertInfoPtr>::Read(
::cert_verifier::mojom::PlatformCertInfo::DataView input,
::cert_verifier::mojom::PlatformCertInfoPtr* output) { … }
bool StructTraits<::cert_verifier::mojom::PlatformRootStoreInfo::DataView, ::cert_verifier::mojom::PlatformRootStoreInfoPtr>::Read(
::cert_verifier::mojom::PlatformRootStoreInfo::DataView input,
::cert_verifier::mojom::PlatformRootStoreInfoPtr* output) { … }
}
namespace cert_verifier::mojom {
void CertVerifierServiceFactoryInterceptorForTesting::GetNewCertVerifier(::mojo::PendingReceiver<::cert_verifier::mojom::CertVerifierService> receiver, ::mojo::PendingReceiver<::cert_verifier::mojom::CertVerifierServiceUpdater> updater, ::mojo::PendingRemote<::cert_verifier::mojom::CertVerifierServiceClient> client, CertVerifierCreationParamsPtr creation_params) { … }
void CertVerifierServiceFactoryInterceptorForTesting::UpdateCRLSet(::mojo_base::BigBuffer crl_set, UpdateCRLSetCallback callback) { … }
void CertVerifierServiceFactoryInterceptorForTesting::UpdateCtLogList(std::vector<::network::mojom::CTLogInfoPtr> log_list, ::base::Time update_time, UpdateCtLogListCallback callback) { … }
void CertVerifierServiceFactoryInterceptorForTesting::UpdateChromeRootStore(::mojo_base::ProtoWrapper new_root_store, UpdateChromeRootStoreCallback callback) { … }
void CertVerifierServiceFactoryInterceptorForTesting::GetChromeRootStoreInfo(GetChromeRootStoreInfoCallback callback) { … }
void CertVerifierServiceFactoryInterceptorForTesting::GetPlatformRootStoreInfo(GetPlatformRootStoreInfoCallback callback) { … }
void CertVerifierServiceFactoryInterceptorForTesting::UpdateNetworkTime(::base::Time system_time, ::base::TimeTicks system_ticks, ::base::Time current_time) { … }
CertVerifierServiceFactoryAsyncWaiter::CertVerifierServiceFactoryAsyncWaiter(
CertVerifierServiceFactory* proxy) : … { … }
CertVerifierServiceFactoryAsyncWaiter::~CertVerifierServiceFactoryAsyncWaiter() = default;
void CertVerifierServiceFactoryAsyncWaiter::UpdateCRLSet(
::mojo_base::BigBuffer crl_set) { … }
void CertVerifierServiceFactoryAsyncWaiter::UpdateCtLogList(
std::vector<::network::mojom::CTLogInfoPtr> log_list, ::base::Time update_time) { … }
void CertVerifierServiceFactoryAsyncWaiter::UpdateChromeRootStore(
::mojo_base::ProtoWrapper new_root_store) { … }
void CertVerifierServiceFactoryAsyncWaiter::GetChromeRootStoreInfo(
ChromeRootStoreInfoPtr* out_root_store_info) { … }
ChromeRootStoreInfoPtr CertVerifierServiceFactoryAsyncWaiter::GetChromeRootStoreInfo(
) { … }
void CertVerifierServiceFactoryAsyncWaiter::GetPlatformRootStoreInfo(
PlatformRootStoreInfoPtr* out_root_store_info) { … }
PlatformRootStoreInfoPtr CertVerifierServiceFactoryAsyncWaiter::GetPlatformRootStoreInfo(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif