OLD | NEW |
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 #ifndef HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ | 5 #ifndef HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ |
6 #define HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ | 6 #define HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "headless/public/headless_export.h" | 11 #include "headless/public/headless_export.h" |
12 | 12 |
13 namespace headless { | 13 namespace headless { |
14 | 14 |
15 namespace accessibility { | 15 namespace accessibility { |
16 class Domain; | 16 class Domain; |
17 } | 17 } |
18 namespace animation { | 18 namespace animation { |
19 class Domain; | 19 class Domain; |
20 } | 20 } |
21 namespace application_cache { | 21 namespace application_cache { |
22 class Domain; | 22 class Domain; |
23 } | 23 } |
| 24 namespace browser { |
| 25 class Domain; |
| 26 } |
24 namespace cache_storage { | 27 namespace cache_storage { |
25 class Domain; | 28 class Domain; |
26 } | 29 } |
27 namespace console { | 30 namespace console { |
28 class Domain; | 31 class Domain; |
29 } | 32 } |
30 namespace css { | 33 namespace css { |
31 class Domain; | 34 class Domain; |
32 } | 35 } |
33 namespace database { | 36 namespace database { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 static std::unique_ptr<HeadlessDevToolsClient> Create(); | 111 static std::unique_ptr<HeadlessDevToolsClient> Create(); |
109 | 112 |
110 // DevTools commands are split into domains which corresponds to the getters | 113 // DevTools commands are split into domains which corresponds to the getters |
111 // below. Each domain can be used to send commands and to subscribe to events. | 114 // below. Each domain can be used to send commands and to subscribe to events. |
112 // | 115 // |
113 // See http://chromedevtools.github.io/debugger-protocol-viewer/ for | 116 // See http://chromedevtools.github.io/debugger-protocol-viewer/ for |
114 // the capabilities of each domain. | 117 // the capabilities of each domain. |
115 virtual accessibility::Domain* GetAccessibility() = 0; | 118 virtual accessibility::Domain* GetAccessibility() = 0; |
116 virtual animation::Domain* GetAnimation() = 0; | 119 virtual animation::Domain* GetAnimation() = 0; |
117 virtual application_cache::Domain* GetApplicationCache() = 0; | 120 virtual application_cache::Domain* GetApplicationCache() = 0; |
| 121 virtual browser::Domain* GetBrowser() = 0; |
118 virtual cache_storage::Domain* GetCacheStorage() = 0; | 122 virtual cache_storage::Domain* GetCacheStorage() = 0; |
119 virtual console::Domain* GetConsole() = 0; | 123 virtual console::Domain* GetConsole() = 0; |
120 virtual css::Domain* GetCSS() = 0; | 124 virtual css::Domain* GetCSS() = 0; |
121 virtual database::Domain* GetDatabase() = 0; | 125 virtual database::Domain* GetDatabase() = 0; |
122 virtual debugger::Domain* GetDebugger() = 0; | 126 virtual debugger::Domain* GetDebugger() = 0; |
123 virtual device_orientation::Domain* GetDeviceOrientation() = 0; | 127 virtual device_orientation::Domain* GetDeviceOrientation() = 0; |
124 virtual dom::Domain* GetDOM() = 0; | 128 virtual dom::Domain* GetDOM() = 0; |
125 virtual dom_debugger::Domain* GetDOMDebugger() = 0; | 129 virtual dom_debugger::Domain* GetDOMDebugger() = 0; |
126 virtual dom_storage::Domain* GetDOMStorage() = 0; | 130 virtual dom_storage::Domain* GetDOMStorage() = 0; |
127 virtual emulation::Domain* GetEmulation() = 0; | 131 virtual emulation::Domain* GetEmulation() = 0; |
(...skipping 20 matching lines...) Expand all Loading... |
148 friend class HeadlessDevToolsClientImpl; | 152 friend class HeadlessDevToolsClientImpl; |
149 | 153 |
150 HeadlessDevToolsClient() {} | 154 HeadlessDevToolsClient() {} |
151 | 155 |
152 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClient); | 156 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClient); |
153 }; | 157 }; |
154 | 158 |
155 } // namespace headless | 159 } // namespace headless |
156 | 160 |
157 #endif // HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ | 161 #endif // HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ |
OLD | NEW |