Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: content/browser/devtools/protocol/schema_handler.cc

Issue 2253383002: [DevTools] Schema domain implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: schema Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/schema_handler.h ('k') | content/browser/devtools/render_frame_devtools_agent_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698