chromium/out/Default/gen/chrome/browser/devtools/protocol/pwa.cc

// This file is generated by TypeBuilder_cpp.template.

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

// ------------- Enum values from types.

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[] =;
} // namespace DisplayModeEnum


// ------------- Enum values from params.


// ------------- Frontend notifications.

void Frontend::flush()
{}

void Frontend::sendRawNotification(std::unique_ptr<Serializable> notification)
{}

// --------------------- Dispatcher.

class DomainDispatcherImpl : public protocol::DomainDispatcher {};

namespace {
// This helper method with a static map of command methods (instance methods
// of DomainDispatcherImpl declared just above) by their name is used immediately below,
// in the DomainDispatcherImpl::Dispatch method.
DomainDispatcherImpl::CallHandler CommandByName(crdtp::span<uint8_t> command_name) {}
}  // namespace

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()

}  // namespace

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()

}  // namespace

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()

}  // namespace

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()

}  // namespace

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()

}  // namespace

void DomainDispatcherImpl::launchFilesInApp(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct openCurrentPageInAppParams : public crdtp::DeserializableProtocolObject<openCurrentPageInAppParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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()

}  // namespace

void DomainDispatcherImpl::changeAppUserSettings(const crdtp::Dispatchable& dispatchable)
{}

namespace {
// This helper method (with a static map of redirects) is used from Dispatcher::wire
// immediately below.
const std::vector<std::pair<crdtp::span<uint8_t>, crdtp::span<uint8_t>>>& SortedRedirects() {}
}  // namespace

// static
void Dispatcher::wire(UberDispatcher* uber, Backend* backend)
{}

} // PWA
} // namespace protocol