chromium/out/Default/gen/content/browser/devtools/protocol/tracing.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/tracing.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 Tracing {

DeserializerState;
ProtocolTypeTraits;

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

const char Metainfo::domainName[] =;
const char Metainfo::commandPrefix[] =;
const char Metainfo::version[] =;



const char* TraceConfig::RecordModeEnum::RecordUntilFull =;
const char* TraceConfig::RecordModeEnum::RecordContinuously =;
const char* TraceConfig::RecordModeEnum::RecordAsMuchAsPossible =;
const char* TraceConfig::RecordModeEnum::EchoToConsole =;
CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace StreamFormatEnum {
const char Json[] =;
const char Proto[] =;
} // namespace StreamFormatEnum


namespace StreamCompressionEnum {
const char None[] =;
const char Gzip[] =;
} // namespace StreamCompressionEnum


namespace MemoryDumpLevelOfDetailEnum {
const char Background[] =;
const char Light[] =;
const char Detailed[] =;
} // namespace MemoryDumpLevelOfDetailEnum


namespace TracingBackendEnum {
const char Auto[] =;
const char Chrome[] =;
const char System[] =;
} // namespace TracingBackendEnum


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


namespace Start {
namespace TransferModeEnum {
const char* ReportEvents =;
const char* ReturnAsStream =;
} // namespace TransferModeEnum
} // namespace Start

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

void Frontend::BufferUsage(Maybe<double> percentFull, Maybe<double> eventCount, Maybe<double> value)
{}

void Frontend::DataCollected(std::unique_ptr<protocol::Array<protocol::DictionaryValue>> value)
{}

void Frontend::TracingComplete(bool dataLossOccurred, Maybe<String> stream, Maybe<String> traceFormat, Maybe<String> streamCompression)
{}

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 {


}  // namespace

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

class GetCategoriesCallbackImpl : public Backend::GetCategoriesCallback, public DomainDispatcher::Callback {};

namespace {


}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

class RequestMemoryDumpCallbackImpl : public Backend::RequestMemoryDumpCallback, public DomainDispatcher::Callback {};

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

class StartCallbackImpl : public Backend::StartCallback, public DomainDispatcher::Callback {};

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

} // Tracing
} // namespace content
} // namespace protocol