#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;
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 StreamCompressionEnum {
const char None[] = …;
const char Gzip[] = …;
}
namespace MemoryDumpLevelOfDetailEnum {
const char Background[] = …;
const char Light[] = …;
const char Detailed[] = …;
}
namespace TracingBackendEnum {
const char Auto[] = …;
const char Chrome[] = …;
const char System[] = …;
}
namespace Start {
namespace TransferModeEnum {
const char* ReportEvents = …;
const char* ReturnAsStream = …;
}
}
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)
{ … }
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 {
}
void DomainDispatcherImpl::end(const crdtp::Dispatchable& dispatchable)
{ … }
class GetCategoriesCallbackImpl : public Backend::GetCategoriesCallback, public DomainDispatcher::Callback { … };
namespace {
}
void DomainDispatcherImpl::getCategories(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct recordClockSyncMarkerParams : public crdtp::DeserializableProtocolObject<recordClockSyncMarkerParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
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(…)
}
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(…)
}
void DomainDispatcherImpl::start(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)
{ … }
}
}
}