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

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

Issue 2882193002: [devtools] Add DOMSnapshot domain for dom+layout+style snapshots. (Closed)
Patch Set: add domain to schema agent Created 3 years, 7 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 protocol { 8 namespace protocol {
9 9
10 SchemaHandler::SchemaHandler() 10 SchemaHandler::SchemaHandler()
(...skipping 19 matching lines...) Expand all
30 "Network", 30 "Network",
31 "Database", 31 "Database",
32 "IndexedDB", 32 "IndexedDB",
33 "CacheStorage", 33 "CacheStorage",
34 "DOMStorage", 34 "DOMStorage",
35 "CSS", 35 "CSS",
36 "ApplicationCache", 36 "ApplicationCache",
37 "DOM", 37 "DOM",
38 "IO", 38 "IO",
39 "DOMDebugger", 39 "DOMDebugger",
40 "DOMSnapshot",
40 "ServiceWorker", 41 "ServiceWorker",
41 "Input", 42 "Input",
42 "LayerTree", 43 "LayerTree",
43 "DeviceOrientation", 44 "DeviceOrientation",
44 "Tracing", 45 "Tracing",
45 "Animation", 46 "Animation",
46 "Accessibility", 47 "Accessibility",
47 "Storage", 48 "Storage",
48 "Log", 49 "Log",
49 "Runtime", 50 "Runtime",
50 "Debugger", 51 "Debugger",
51 "Profiler", 52 "Profiler",
52 "HeapProfiler", 53 "HeapProfiler",
53 "Schema", 54 "Schema",
54 "Target", 55 "Target",
55 "Overlay"}; 56 "Overlay"};
56 *domains = protocol::Array<Schema::Domain>::create(); 57 *domains = protocol::Array<Schema::Domain>::create();
57 for (size_t i = 0; i < arraysize(kDomains); ++i) { 58 for (size_t i = 0; i < arraysize(kDomains); ++i) {
58 (*domains)->addItem(Schema::Domain::Create() 59 (*domains)->addItem(Schema::Domain::Create()
59 .SetName(kDomains[i]) 60 .SetName(kDomains[i])
60 .SetVersion(kVersion) 61 .SetVersion(kVersion)
61 .Build()); 62 .Build());
62 } 63 }
63 return Response::OK(); 64 return Response::OK();
64 } 65 }
65 66
66 } // namespace protocol 67 } // namespace protocol
67 } // namespace content 68 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698