OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/browser/devtools/protocol/schema_handler.h" |
| 6 |
| 7 namespace content { |
| 8 namespace devtools { |
| 9 namespace schema { |
| 10 |
| 11 using Response = DevToolsProtocolClient::Response; |
| 12 |
| 13 SchemaHandler::SchemaHandler() { |
| 14 } |
| 15 |
| 16 SchemaHandler::~SchemaHandler() { |
| 17 } |
| 18 |
| 19 Response SchemaHandler::GetDomains( |
| 20 std::vector<scoped_refptr<Domain>>* domains) { |
| 21 static const char kVersion[] = "1.1"; |
| 22 static const char* kDomains[] = { |
| 23 "Inspector", "Memory", "Page", "Rendering", "Emulation", "Security", |
| 24 "Network", "Database", "IndexedDB", "CacheStorage", "DOMStorage", "CSS", |
| 25 "ApplicationCache", "DOM", "IO", "DOMDebugger", "Worker", "ServiceWorker", |
| 26 "Input", "LayerTree", "DeviceOrientation", "Tracing", "Animation", |
| 27 "Accessibility", "Storage", "Log", "Browser", "Runtime", "Debugger", |
| 28 "Profiler", "HeapProfiler", "Schema" |
| 29 }; |
| 30 for (size_t i = 0; i < arraysize(kDomains); ++i) { |
| 31 domains->push_back(Domain::Create() |
| 32 ->set_name(kDomains[i]) |
| 33 ->set_version(kVersion)); |
| 34 } |
| 35 return Response::OK(); |
| 36 } |
| 37 |
| 38 } // namespace schema |
| 39 } // namespace devtools |
| 40 } // namespace content |
OLD | NEW |