chromium/out/Default/gen/chrome/browser/devtools/protocol/browser.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/browser.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 Browser {

DeserializerState;
ProtocolTypeTraits;

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

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



namespace WindowStateEnum {
const char Normal[] =;
const char Minimized[] =;
const char Maximized[] =;
const char Fullscreen[] =;
} // namespace WindowStateEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace BrowserCommandIdEnum {
const char OpenTabSearch[] =;
const char CloseTabSearch[] =;
} // namespace BrowserCommandIdEnum


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


namespace SetDownloadBehavior {
namespace BehaviorEnum {
const char* Deny =;
const char* Allow =;
const char* AllowAndName =;
const char* Default =;
} // namespace BehaviorEnum
} // namespace SetDownloadBehavior

namespace DownloadProgress {
namespace StateEnum {
const char* InProgress =;
const char* Completed =;
const char* Canceled =;
} // namespace StateEnum
} // namespace DownloadProgress

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


namespace {


}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

} // Browser
} // namespace protocol