#include "chrome/browser/devtools/protocol/pwa.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 PWA {
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 DisplayModeEnum {
const char Standalone[] = …;
const char Browser[] = …;
}
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 GetOsAppStateCallbackImpl : public Backend::GetOsAppStateCallback, public DomainDispatcher::Callback { … };
namespace {
struct getOsAppStateParams : public crdtp::DeserializableProtocolObject<getOsAppStateParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::getOsAppState(const crdtp::Dispatchable& dispatchable)
{ … }
class InstallCallbackImpl : public Backend::InstallCallback, public DomainDispatcher::Callback { … };
namespace {
struct installParams : public crdtp::DeserializableProtocolObject<installParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::install(const crdtp::Dispatchable& dispatchable)
{ … }
class UninstallCallbackImpl : public Backend::UninstallCallback, public DomainDispatcher::Callback { … };
namespace {
struct uninstallParams : public crdtp::DeserializableProtocolObject<uninstallParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::uninstall(const crdtp::Dispatchable& dispatchable)
{ … }
class LaunchCallbackImpl : public Backend::LaunchCallback, public DomainDispatcher::Callback { … };
namespace {
struct launchParams : public crdtp::DeserializableProtocolObject<launchParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::launch(const crdtp::Dispatchable& dispatchable)
{ … }
class LaunchFilesInAppCallbackImpl : public Backend::LaunchFilesInAppCallback, public DomainDispatcher::Callback { … };
namespace {
struct launchFilesInAppParams : public crdtp::DeserializableProtocolObject<launchFilesInAppParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::launchFilesInApp(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct openCurrentPageInAppParams : public crdtp::DeserializableProtocolObject<openCurrentPageInAppParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::openCurrentPageInApp(const crdtp::Dispatchable& dispatchable)
{ … }
class ChangeAppUserSettingsCallbackImpl : public Backend::ChangeAppUserSettingsCallback, public DomainDispatcher::Callback { … };
namespace {
struct changeAppUserSettingsParams : public crdtp::DeserializableProtocolObject<changeAppUserSettingsParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::changeAppUserSettings(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)
{ … }
}
}