#include "content/browser/devtools/protocol/service_worker.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 ServiceWorker {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace ServiceWorkerVersionRunningStatusEnum {
const char Stopped[] = …;
const char Starting[] = …;
const char Running[] = …;
const char Stopping[] = …;
}
namespace ServiceWorkerVersionStatusEnum {
const char New[] = …;
const char Installing[] = …;
const char Installed[] = …;
const char Activating[] = …;
const char Activated[] = …;
const char Redundant[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
void Frontend::WorkerErrorReported(std::unique_ptr<protocol::ServiceWorker::ServiceWorkerErrorMessage> errorMessage)
{ … }
void Frontend::WorkerRegistrationUpdated(std::unique_ptr<protocol::Array<protocol::ServiceWorker::ServiceWorkerRegistration>> registrations)
{ … }
void Frontend::WorkerVersionUpdated(std::unique_ptr<protocol::Array<protocol::ServiceWorker::ServiceWorkerVersion>> versions)
{ … }
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 deliverPushMessageParams : public crdtp::DeserializableProtocolObject<deliverPushMessageParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::deliverPushMessage(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::disable(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct dispatchSyncEventParams : public crdtp::DeserializableProtocolObject<dispatchSyncEventParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::dispatchSyncEvent(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct dispatchPeriodicSyncEventParams : public crdtp::DeserializableProtocolObject<dispatchPeriodicSyncEventParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::dispatchPeriodicSyncEvent(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::enable(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct inspectWorkerParams : public crdtp::DeserializableProtocolObject<inspectWorkerParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::inspectWorker(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setForceUpdateOnPageLoadParams : public crdtp::DeserializableProtocolObject<setForceUpdateOnPageLoadParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setForceUpdateOnPageLoad(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct skipWaitingParams : public crdtp::DeserializableProtocolObject<skipWaitingParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::skipWaiting(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct startWorkerParams : public crdtp::DeserializableProtocolObject<startWorkerParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::startWorker(const crdtp::Dispatchable& dispatchable)
{ … }
class StopAllWorkersCallbackImpl : public Backend::StopAllWorkersCallback, public DomainDispatcher::Callback { … };
namespace {
}
void DomainDispatcherImpl::stopAllWorkers(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct stopWorkerParams : public crdtp::DeserializableProtocolObject<stopWorkerParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::stopWorker(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct unregisterParams : public crdtp::DeserializableProtocolObject<unregisterParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::unregister(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct updateRegistrationParams : public crdtp::DeserializableProtocolObject<updateRegistrationParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::updateRegistration(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)
{ … }
}
}
}