blob: 608e0286538be1ac6441166f9bff751f8c5b9f2b [file] [log] [blame]
// 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.2";
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