chromium/out/Default/gen/third_party/blink/renderer/core/inspector/protocol/cache_storage.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 "third_party/blink/renderer/core/inspector/protocol/cache_storage.h"

#include "third_party/blink/renderer/core/inspector/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 blink {
namespace protocol {
namespace CacheStorage {

DeserializerState;
ProtocolTypeTraits;

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

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


namespace CachedResponseTypeEnum {
const char Basic[] =;
const char Cors[] =;
const char Default[] =;
const char Error[] =;
const char OpaqueResponse[] =;
const char OpaqueRedirect[] =;
} // namespace CachedResponseTypeEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


// ------------- 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 DeleteCacheCallbackImpl : public Backend::DeleteCacheCallback, public DomainDispatcher::Callback {};

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

class DeleteEntryCallbackImpl : public Backend::DeleteEntryCallback, public DomainDispatcher::Callback {};

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

class RequestCacheNamesCallbackImpl : public Backend::RequestCacheNamesCallback, public DomainDispatcher::Callback {};

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

class RequestCachedResponseCallbackImpl : public Backend::RequestCachedResponseCallback, public DomainDispatcher::Callback {};

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

class RequestEntriesCallbackImpl : public Backend::RequestEntriesCallback, public DomainDispatcher::Callback {};

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

} // CacheStorage
} // namespace blink
} // namespace protocol