#include "chrome/browser/devtools/protocol/page.h"
#include "chrome/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 protocol {
namespace Page {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace AutoResponseModeEnum {
const char None[] = …;
const char AutoAccept[] = …;
const char AutoReject[] = …;
const char AutoOptOut[] = …;
}
namespace CaptureScreenshot {
namespace FormatEnum {
const char* Jpeg = …;
const char* Png = …;
const char* Webp = …;
}
}
namespace CaptureSnapshot {
namespace FormatEnum {
const char* Mhtml = …;
}
}
namespace PrintToPDF {
namespace TransferModeEnum {
const char* ReturnAsBase64 = …;
const char* ReturnAsStream = …;
}
}
namespace SetDownloadBehavior {
namespace BehaviorEnum {
const char* Deny = …;
const char* Allow = …;
const char* Default = …;
}
}
namespace SetTouchEmulationEnabled {
namespace ConfigurationEnum {
const char* Mobile = …;
const char* Desktop = …;
}
}
namespace StartScreencast {
namespace FormatEnum {
const char* Jpeg = …;
const char* Png = …;
}
}
namespace SetWebLifecycleState {
namespace StateEnum {
const char* Frozen = …;
const char* Active = …;
}
}
namespace FileChooserOpened {
namespace ModeEnum {
const char* SelectSingle = …;
const char* SelectMultiple = …;
}
}
namespace FrameDetached {
namespace ReasonEnum {
const char* Remove = …;
const char* Swap = …;
}
}
namespace DownloadProgress {
namespace StateEnum {
const char* InProgress = …;
const char* Completed = …;
const char* Canceled = …;
}
}
namespace NavigatedWithinDocument {
namespace NavigationTypeEnum {
const char* Fragment = …;
const char* HistoryApi = …;
const char* Other = …;
}
}
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 {
}
void DomainDispatcherImpl::disable(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::enable(const crdtp::Dispatchable& dispatchable)
{ … }
class GetInstallabilityErrorsCallbackImpl : public Backend::GetInstallabilityErrorsCallback, public DomainDispatcher::Callback { … };
namespace {
}
void DomainDispatcherImpl::getInstallabilityErrors(const crdtp::Dispatchable& dispatchable)
{ … }
class GetManifestIconsCallbackImpl : public Backend::GetManifestIconsCallback, public DomainDispatcher::Callback { … };
namespace {
}
void DomainDispatcherImpl::getManifestIcons(const crdtp::Dispatchable& dispatchable)
{ … }
class GetAppIdCallbackImpl : public Backend::GetAppIdCallback, public DomainDispatcher::Callback { … };
namespace {
}
void DomainDispatcherImpl::getAppId(const crdtp::Dispatchable& dispatchable)
{ … }
class PrintToPDFCallbackImpl : public Backend::PrintToPDFCallback, public DomainDispatcher::Callback { … };
namespace {
struct printToPDFParams : public crdtp::DeserializableProtocolObject<printToPDFParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::printToPDF(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setAdBlockingEnabledParams : public crdtp::DeserializableProtocolObject<setAdBlockingEnabledParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setAdBlockingEnabled(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setSPCTransactionModeParams : public crdtp::DeserializableProtocolObject<setSPCTransactionModeParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setSPCTransactionMode(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setRPHRegistrationModeParams : public crdtp::DeserializableProtocolObject<setRPHRegistrationModeParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setRPHRegistrationMode(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)
{ … }
}
}