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_LIB_BROWSER_HEADLESS_DEVTOOLS_CLIENT_IMPL_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_CLIENT_IMPL_H_ |
6 #define HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_CLIENT_IMPL_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_CLIENT_IMPL_H_ |
7 | 7 |
8 #include <unordered_map> | 8 #include <unordered_map> |
9 | 9 |
10 #include "content/public/browser/devtools_agent_host_client.h" | 10 #include "content/public/browser/devtools_agent_host_client.h" |
11 #include "headless/public/domains/accessibility.h" | 11 #include "headless/public/domains/accessibility.h" |
12 #include "headless/public/domains/animation.h" | 12 #include "headless/public/domains/animation.h" |
13 #include "headless/public/domains/application_cache.h" | 13 #include "headless/public/domains/application_cache.h" |
| 14 #include "headless/public/domains/browser.h" |
14 #include "headless/public/domains/cache_storage.h" | 15 #include "headless/public/domains/cache_storage.h" |
15 #include "headless/public/domains/console.h" | 16 #include "headless/public/domains/console.h" |
16 #include "headless/public/domains/css.h" | 17 #include "headless/public/domains/css.h" |
17 #include "headless/public/domains/database.h" | 18 #include "headless/public/domains/database.h" |
18 #include "headless/public/domains/debugger.h" | 19 #include "headless/public/domains/debugger.h" |
19 #include "headless/public/domains/device_orientation.h" | 20 #include "headless/public/domains/device_orientation.h" |
20 #include "headless/public/domains/dom.h" | 21 #include "headless/public/domains/dom.h" |
21 #include "headless/public/domains/dom_debugger.h" | 22 #include "headless/public/domains/dom_debugger.h" |
22 #include "headless/public/domains/dom_storage.h" | 23 #include "headless/public/domains/dom_storage.h" |
23 #include "headless/public/domains/emulation.h" | 24 #include "headless/public/domains/emulation.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 public: | 57 public: |
57 HeadlessDevToolsClientImpl(); | 58 HeadlessDevToolsClientImpl(); |
58 ~HeadlessDevToolsClientImpl() override; | 59 ~HeadlessDevToolsClientImpl() override; |
59 | 60 |
60 static HeadlessDevToolsClientImpl* From(HeadlessDevToolsClient* client); | 61 static HeadlessDevToolsClientImpl* From(HeadlessDevToolsClient* client); |
61 | 62 |
62 // HeadlessDevToolsClient implementation: | 63 // HeadlessDevToolsClient implementation: |
63 accessibility::Domain* GetAccessibility() override; | 64 accessibility::Domain* GetAccessibility() override; |
64 animation::Domain* GetAnimation() override; | 65 animation::Domain* GetAnimation() override; |
65 application_cache::Domain* GetApplicationCache() override; | 66 application_cache::Domain* GetApplicationCache() override; |
| 67 browser::Domain* GetBrowser() override; |
66 cache_storage::Domain* GetCacheStorage() override; | 68 cache_storage::Domain* GetCacheStorage() override; |
67 console::Domain* GetConsole() override; | 69 console::Domain* GetConsole() override; |
68 css::Domain* GetCSS() override; | 70 css::Domain* GetCSS() override; |
69 database::Domain* GetDatabase() override; | 71 database::Domain* GetDatabase() override; |
70 debugger::Domain* GetDebugger() override; | 72 debugger::Domain* GetDebugger() override; |
71 device_orientation::Domain* GetDeviceOrientation() override; | 73 device_orientation::Domain* GetDeviceOrientation() override; |
72 dom::Domain* GetDOM() override; | 74 dom::Domain* GetDOM() override; |
73 dom_debugger::Domain* GetDOMDebugger() override; | 75 dom_debugger::Domain* GetDOMDebugger() override; |
74 dom_storage::Domain* GetDOMStorage() override; | 76 dom_storage::Domain* GetDOMStorage() override; |
75 emulation::Domain* GetEmulation() override; | 77 emulation::Domain* GetEmulation() override; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 149 |
148 content::DevToolsAgentHost* agent_host_; // Not owned. | 150 content::DevToolsAgentHost* agent_host_; // Not owned. |
149 int next_message_id_; | 151 int next_message_id_; |
150 std::unordered_map<int, Callback> pending_messages_; | 152 std::unordered_map<int, Callback> pending_messages_; |
151 std::unordered_map<std::string, base::Callback<void(const base::Value&)>> | 153 std::unordered_map<std::string, base::Callback<void(const base::Value&)>> |
152 event_handlers_; | 154 event_handlers_; |
153 | 155 |
154 accessibility::ExperimentalDomain accessibility_domain_; | 156 accessibility::ExperimentalDomain accessibility_domain_; |
155 animation::ExperimentalDomain animation_domain_; | 157 animation::ExperimentalDomain animation_domain_; |
156 application_cache::ExperimentalDomain application_cache_domain_; | 158 application_cache::ExperimentalDomain application_cache_domain_; |
| 159 browser::ExperimentalDomain browser_domain_; |
157 cache_storage::ExperimentalDomain cache_storage_domain_; | 160 cache_storage::ExperimentalDomain cache_storage_domain_; |
158 console::ExperimentalDomain console_domain_; | 161 console::ExperimentalDomain console_domain_; |
159 css::ExperimentalDomain css_domain_; | 162 css::ExperimentalDomain css_domain_; |
160 database::ExperimentalDomain database_domain_; | 163 database::ExperimentalDomain database_domain_; |
161 debugger::ExperimentalDomain debugger_domain_; | 164 debugger::ExperimentalDomain debugger_domain_; |
162 device_orientation::ExperimentalDomain device_orientation_domain_; | 165 device_orientation::ExperimentalDomain device_orientation_domain_; |
163 dom_debugger::ExperimentalDomain dom_debugger_domain_; | 166 dom_debugger::ExperimentalDomain dom_debugger_domain_; |
164 dom::ExperimentalDomain dom_domain_; | 167 dom::ExperimentalDomain dom_domain_; |
165 dom_storage::ExperimentalDomain dom_storage_domain_; | 168 dom_storage::ExperimentalDomain dom_storage_domain_; |
166 emulation::ExperimentalDomain emulation_domain_; | 169 emulation::ExperimentalDomain emulation_domain_; |
(...skipping 13 matching lines...) Expand all Loading... |
180 service_worker::ExperimentalDomain service_worker_domain_; | 183 service_worker::ExperimentalDomain service_worker_domain_; |
181 tracing::ExperimentalDomain tracing_domain_; | 184 tracing::ExperimentalDomain tracing_domain_; |
182 worker::ExperimentalDomain worker_domain_; | 185 worker::ExperimentalDomain worker_domain_; |
183 | 186 |
184 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClientImpl); | 187 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClientImpl); |
185 }; | 188 }; |
186 | 189 |
187 } // namespace headless | 190 } // namespace headless |
188 | 191 |
189 #endif // HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_CLIENT_IMPL_H_ | 192 #endif // HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_CLIENT_IMPL_H_ |
OLD | NEW |