chromium/out/Default/gen/content/browser/devtools/protocol/service_worker.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 "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;

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

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 ServiceWorkerVersionRunningStatusEnum


namespace ServiceWorkerVersionStatusEnum {
const char New[] =;
const char Installing[] =;
const char Installed[] =;
const char Activating[] =;
const char Activated[] =;
const char Redundant[] =;
} // namespace ServiceWorkerVersionStatusEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


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


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

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)
{}

// --------------------- 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) {}


namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {


}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {


}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

class StopAllWorkersCallbackImpl : public Backend::StopAllWorkersCallback, public DomainDispatcher::Callback {};

namespace {


}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::updateRegistration(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)
{}

} // ServiceWorker
} // namespace content
} // namespace protocol