#include "content/browser/devtools/protocol/fed_cm.h"
#include "content/browser/devtools/protocol/protocol.h"
#include "third_party/inspector_protocol/crdtp/cbor.h"
#include "third_party/inspector_protocol/crdtp/find_by_first.h"
#include "third_party/inspector_protocol/crdtp/span.h"
namespace content {
namespace protocol {
namespace FedCm {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
namespace LoginStateEnum {
const char SignIn[] = …;
const char SignUp[] = …;
}
namespace DialogTypeEnum {
const char AccountChooser[] = …;
const char AutoReauthn[] = …;
const char ConfirmIdpLogin[] = …;
const char Error[] = …;
}
namespace DialogButtonEnum {
const char ConfirmIdpLoginContinue[] = …;
const char ErrorGotIt[] = …;
const char ErrorMoreDetails[] = …;
}
namespace AccountUrlTypeEnum {
const char TermsOfService[] = …;
const char PrivacyPolicy[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
void Frontend::DialogShown(const String& dialogId, const String& dialogType, std::unique_ptr<protocol::Array<protocol::FedCm::Account>> accounts, const String& title, Maybe<String> subtitle)
{ … }
void Frontend::DialogClosed(const String& dialogId)
{ … }
void Frontend::flush()
{ … }
void Frontend::sendRawNotification(std::unique_ptr<Serializable> notification)
{ … }
class DomainDispatcherImpl : public protocol::DomainDispatcher { … };
namespace {
DomainDispatcherImpl::CallHandler CommandByName(crdtp::span<uint8_t> command_name) { … }
}
std::function<void(const crdtp::Dispatchable&)> DomainDispatcherImpl::Dispatch(crdtp::span<uint8_t> command_name) { … }
namespace {
struct enableParams : public crdtp::DeserializableProtocolObject<enableParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::enable(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::disable(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct selectAccountParams : public crdtp::DeserializableProtocolObject<selectAccountParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::selectAccount(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct clickDialogButtonParams : public crdtp::DeserializableProtocolObject<clickDialogButtonParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::clickDialogButton(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct openUrlParams : public crdtp::DeserializableProtocolObject<openUrlParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::openUrl(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct dismissDialogParams : public crdtp::DeserializableProtocolObject<dismissDialogParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::dismissDialog(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::resetCooldown(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
const std::vector<std::pair<crdtp::span<uint8_t>, crdtp::span<uint8_t>>>& SortedRedirects() { … }
}
void Dispatcher::wire(UberDispatcher* uber, Backend* backend)
{ … }
}
}
}