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

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

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

Powered by Google App Engine
This is Rietveld 408576698