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 "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 void DispatchEventTask(std::unique_ptr<base::Value> owning_message, | 156 void DispatchEventTask(std::unique_ptr<base::Value> owning_message, |
157 const EventHandler* event_handler, | 157 const EventHandler* event_handler, |
158 const base::DictionaryValue* result_dict); | 158 const base::DictionaryValue* result_dict); |
159 | 159 |
160 content::DevToolsAgentHost* agent_host_; // Not owned. | 160 content::DevToolsAgentHost* agent_host_; // Not owned. |
161 int next_message_id_; | 161 int next_message_id_; |
162 std::unordered_map<int, Callback> pending_messages_; | 162 std::unordered_map<int, Callback> pending_messages_; |
163 | 163 |
164 EventHandlerMap event_handlers_; | 164 EventHandlerMap event_handlers_; |
165 | 165 |
| 166 bool renderer_crashed_; |
| 167 |
166 accessibility::ExperimentalDomain accessibility_domain_; | 168 accessibility::ExperimentalDomain accessibility_domain_; |
167 animation::ExperimentalDomain animation_domain_; | 169 animation::ExperimentalDomain animation_domain_; |
168 application_cache::ExperimentalDomain application_cache_domain_; | 170 application_cache::ExperimentalDomain application_cache_domain_; |
169 cache_storage::ExperimentalDomain cache_storage_domain_; | 171 cache_storage::ExperimentalDomain cache_storage_domain_; |
170 console::ExperimentalDomain console_domain_; | 172 console::ExperimentalDomain console_domain_; |
171 css::ExperimentalDomain css_domain_; | 173 css::ExperimentalDomain css_domain_; |
172 database::ExperimentalDomain database_domain_; | 174 database::ExperimentalDomain database_domain_; |
173 debugger::ExperimentalDomain debugger_domain_; | 175 debugger::ExperimentalDomain debugger_domain_; |
174 device_orientation::ExperimentalDomain device_orientation_domain_; | 176 device_orientation::ExperimentalDomain device_orientation_domain_; |
175 dom_debugger::ExperimentalDomain dom_debugger_domain_; | 177 dom_debugger::ExperimentalDomain dom_debugger_domain_; |
(...skipping 19 matching lines...) Expand all Loading... |
195 tracing::ExperimentalDomain tracing_domain_; | 197 tracing::ExperimentalDomain tracing_domain_; |
196 scoped_refptr<base::SingleThreadTaskRunner> browser_main_thread_; | 198 scoped_refptr<base::SingleThreadTaskRunner> browser_main_thread_; |
197 base::WeakPtrFactory<HeadlessDevToolsClientImpl> weak_ptr_factory_; | 199 base::WeakPtrFactory<HeadlessDevToolsClientImpl> weak_ptr_factory_; |
198 | 200 |
199 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClientImpl); | 201 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClientImpl); |
200 }; | 202 }; |
201 | 203 |
202 } // namespace headless | 204 } // namespace headless |
203 | 205 |
204 #endif // HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_CLIENT_IMPL_H_ | 206 #endif // HEADLESS_LIB_BROWSER_HEADLESS_DEVTOOLS_CLIENT_IMPL_H_ |
OLD | NEW |