#include "third_party/blink/renderer/core/inspector/protocol/cache_storage.h"
#include "third_party/blink/renderer/core/inspector/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 blink {
namespace protocol {
namespace CacheStorage {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
namespace CachedResponseTypeEnum {
const char Basic[] = …;
const char Cors[] = …;
const char Default[] = …;
const char Error[] = …;
const char OpaqueResponse[] = …;
const char OpaqueRedirect[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
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 DeleteCacheCallbackImpl : public Backend::DeleteCacheCallback, public DomainDispatcher::Callback { … };
namespace {
struct deleteCacheParams : public crdtp::DeserializableProtocolObject<deleteCacheParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::deleteCache(const crdtp::Dispatchable& dispatchable)
{ … }
class DeleteEntryCallbackImpl : public Backend::DeleteEntryCallback, public DomainDispatcher::Callback { … };
namespace {
struct deleteEntryParams : public crdtp::DeserializableProtocolObject<deleteEntryParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::deleteEntry(const crdtp::Dispatchable& dispatchable)
{ … }
class RequestCacheNamesCallbackImpl : public Backend::RequestCacheNamesCallback, public DomainDispatcher::Callback { … };
namespace {
struct requestCacheNamesParams : public crdtp::DeserializableProtocolObject<requestCacheNamesParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::requestCacheNames(const crdtp::Dispatchable& dispatchable)
{ … }
class RequestCachedResponseCallbackImpl : public Backend::RequestCachedResponseCallback, public DomainDispatcher::Callback { … };
namespace {
struct requestCachedResponseParams : public crdtp::DeserializableProtocolObject<requestCachedResponseParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::requestCachedResponse(const crdtp::Dispatchable& dispatchable)
{ … }
class RequestEntriesCallbackImpl : public Backend::RequestEntriesCallback, public DomainDispatcher::Callback { … };
namespace {
struct requestEntriesParams : public crdtp::DeserializableProtocolObject<requestEntriesParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::requestEntries(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)
{ … }
}
}
}