#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/credentialmanagement/credential_manager.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 "third_party/blink/public/mojom/credentialmanagement/credential_manager.mojom-params-data.h"
#include "third_party/blink/public/mojom/credentialmanagement/credential_manager.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/credentialmanagement/credential_manager.mojom-import-headers.h"
#include "third_party/blink/public/mojom/credentialmanagement/credential_manager.mojom-test-utils.h"
namespace blink::mojom {
CredentialInfo::CredentialInfo()
: … { … }
CredentialInfo::CredentialInfo(
::password_manager::CredentialType type_in,
const std::optional<::std::u16string>& id_in,
const std::optional<::std::u16string>& name_in,
const ::GURL& icon_in,
const std::optional<::std::u16string>& password_in,
const ::url::SchemeHostPort& federation_in)
: … { … }
CredentialInfo::~CredentialInfo() = default;
void CredentialInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool CredentialInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char CredentialManager::Name_[] = …;
CredentialManager::IPCStableHashFunction CredentialManager::MessageToMethodInfo_(mojo::Message& message) { … }
const char* CredentialManager::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t CredentialManager::Store_Sym::IPCStableHash() { … }
uint32_t CredentialManager::PreventSilentAccess_Sym::IPCStableHash() { … }
uint32_t CredentialManager::Get_Sym::IPCStableHash() { … }
# endif
class CredentialManager_Store_ForwardToCallback
: public mojo::MessageReceiver { … };
class CredentialManager_PreventSilentAccess_ForwardToCallback
: public mojo::MessageReceiver { … };
class CredentialManager_Get_ForwardToCallback
: public mojo::MessageReceiver { … };
CredentialManagerProxy::CredentialManagerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void CredentialManagerProxy::Store(
const ::password_manager::CredentialInfo& in_credential, StoreCallback callback) { … }
void CredentialManagerProxy::PreventSilentAccess(
PreventSilentAccessCallback callback) { … }
void CredentialManagerProxy::Get(
::password_manager::CredentialMediationRequirement in_mediation, bool in_include_passwords, const std::vector<::GURL>& in_federations, GetCallback callback) { … }
class CredentialManager_Store_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CredentialManager_Store_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CredentialManager_Store_ProxyToResponder::Run(
) { … }
class CredentialManager_PreventSilentAccess_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CredentialManager_PreventSilentAccess_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CredentialManager_PreventSilentAccess_ProxyToResponder::Run(
) { … }
class CredentialManager_Get_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool CredentialManager_Get_ForwardToCallback::Accept(
mojo::Message* message) { … }
void CredentialManager_Get_ProxyToResponder::Run(
::password_manager::CredentialManagerError in_error, const std::optional<::password_manager::CredentialInfo>& in_credential) { … }
bool CredentialManagerStubDispatch::Accept(
CredentialManager* impl,
mojo::Message* message) { … }
bool CredentialManagerStubDispatch::AcceptWithResponder(
CredentialManager* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kCredentialManagerValidationInfo[] = …;
bool CredentialManagerRequestValidator::Accept(mojo::Message* message) { … }
bool CredentialManagerResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::CredentialInfo::DataView, ::blink::mojom::CredentialInfoPtr>::Read(
::blink::mojom::CredentialInfo::DataView input,
::blink::mojom::CredentialInfoPtr* output) { … }
}
namespace blink::mojom {
void CredentialManagerInterceptorForTesting::Store(const ::password_manager::CredentialInfo& credential, StoreCallback callback) { … }
void CredentialManagerInterceptorForTesting::PreventSilentAccess(PreventSilentAccessCallback callback) { … }
void CredentialManagerInterceptorForTesting::Get(::password_manager::CredentialMediationRequirement mediation, bool include_passwords, const std::vector<::GURL>& federations, GetCallback callback) { … }
CredentialManagerAsyncWaiter::CredentialManagerAsyncWaiter(
CredentialManager* proxy) : … { … }
CredentialManagerAsyncWaiter::~CredentialManagerAsyncWaiter() = default;
void CredentialManagerAsyncWaiter::Store(
const ::password_manager::CredentialInfo& credential) { … }
void CredentialManagerAsyncWaiter::PreventSilentAccess(
) { … }
void CredentialManagerAsyncWaiter::Get(
::password_manager::CredentialMediationRequirement mediation, bool include_passwords, const std::vector<::GURL>& federations, ::password_manager::CredentialManagerError* out_error, std::optional<::password_manager::CredentialInfo>* out_credential) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif