| Index: content/browser/devtools/protocol/schema_handler.cc
|
| diff --git a/content/browser/devtools/protocol/schema_handler.cc b/content/browser/devtools/protocol/schema_handler.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..91d74f7f7ae8f64ea00bb2f90218e5c02d0a3813
|
| --- /dev/null
|
| +++ b/content/browser/devtools/protocol/schema_handler.cc
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// 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/schema_handler.h"
|
| +
|
| +namespace content {
|
| +namespace devtools {
|
| +namespace schema {
|
| +
|
| +using Response = DevToolsProtocolClient::Response;
|
| +
|
| +SchemaHandler::SchemaHandler() {
|
| +}
|
| +
|
| +SchemaHandler::~SchemaHandler() {
|
| +}
|
| +
|
| +Response SchemaHandler::GetDomains(
|
| + std::vector<scoped_refptr<Domain>>* domains) {
|
| + static const char kVersion[] = "1.1";
|
| + static const char* kDomains[] = {
|
| + "Inspector", "Memory", "Page", "Rendering", "Emulation", "Security",
|
| + "Network", "Database", "IndexedDB", "CacheStorage", "DOMStorage", "CSS",
|
| + "ApplicationCache", "DOM", "IO", "DOMDebugger", "Worker", "ServiceWorker",
|
| + "Input", "LayerTree", "DeviceOrientation", "Tracing", "Animation",
|
| + "Accessibility", "Storage", "Log", "Browser", "Runtime", "Debugger",
|
| + "Profiler", "HeapProfiler", "Schema"
|
| + };
|
| + for (size_t i = 0; i < arraysize(kDomains); ++i) {
|
| + domains->push_back(Domain::Create()
|
| + ->set_name(kDomains[i])
|
| + ->set_version(kVersion));
|
| + }
|
| + return Response::OK();
|
| +}
|
| +
|
| +} // namespace schema
|
| +} // namespace devtools
|
| +} // namespace content
|
|
|