#include "chrome/browser/devtools/protocol/extensions.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 Extensions {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
namespace StorageAreaEnum {
const char Session[] = …;
const char Local[] = …;
const char Sync[] = …;
const char Managed[] = …;
}
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) { … }
class LoadUnpackedCallbackImpl : public Backend::LoadUnpackedCallback, public DomainDispatcher::Callback { … };
namespace {
struct loadUnpackedParams : public crdtp::DeserializableProtocolObject<loadUnpackedParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::loadUnpacked(const crdtp::Dispatchable& dispatchable)
{ … }
class GetStorageItemsCallbackImpl : public Backend::GetStorageItemsCallback, public DomainDispatcher::Callback { … };
namespace {
struct getStorageItemsParams : public crdtp::DeserializableProtocolObject<getStorageItemsParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::getStorageItems(const crdtp::Dispatchable& dispatchable)
{ … }
class RemoveStorageItemsCallbackImpl : public Backend::RemoveStorageItemsCallback, public DomainDispatcher::Callback { … };
namespace {
struct removeStorageItemsParams : public crdtp::DeserializableProtocolObject<removeStorageItemsParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::removeStorageItems(const crdtp::Dispatchable& dispatchable)
{ … }
class ClearStorageItemsCallbackImpl : public Backend::ClearStorageItemsCallback, public DomainDispatcher::Callback { … };
namespace {
struct clearStorageItemsParams : public crdtp::DeserializableProtocolObject<clearStorageItemsParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::clearStorageItems(const crdtp::Dispatchable& dispatchable)
{ … }
class SetStorageItemsCallbackImpl : public Backend::SetStorageItemsCallback, public DomainDispatcher::Callback { … };
namespace {
struct setStorageItemsParams : public crdtp::DeserializableProtocolObject<setStorageItemsParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setStorageItems(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)
{ … }
}
}