OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/embedded_worker_devtools_manager.h" | 5 #include "content/browser/devtools/embedded_worker_devtools_manager.h" |
6 | 6 |
7 #include "content/browser/devtools/devtools_manager.h" | 7 #include "content/browser/devtools/devtools_manager.h" |
8 #include "content/browser/devtools/devtools_protocol.h" | 8 #include "content/browser/devtools/devtools_protocol.h" |
9 #include "content/browser/devtools/devtools_protocol_constants.h" | |
10 #include "content/browser/devtools/embedded_worker_devtools_agent_host.h" | 9 #include "content/browser/devtools/embedded_worker_devtools_agent_host.h" |
11 #include "content/browser/devtools/ipc_devtools_agent_host.h" | 10 #include "content/browser/devtools/ipc_devtools_agent_host.h" |
12 #include "content/browser/shared_worker/shared_worker_instance.h" | 11 #include "content/browser/shared_worker/shared_worker_instance.h" |
13 #include "content/common/devtools_messages.h" | 12 #include "content/common/devtools_messages.h" |
14 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/render_process_host.h" | 14 #include "content/public/browser/render_process_host.h" |
16 #include "content/public/browser/worker_service.h" | 15 #include "content/public/browser/worker_service.h" |
17 #include "ipc/ipc_listener.h" | 16 #include "ipc/ipc_listener.h" |
18 | 17 |
19 namespace content { | 18 namespace content { |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 workers_.erase(it); | 197 workers_.erase(it); |
199 workers_[id] = agent_host; | 198 workers_[id] = agent_host; |
200 DevToolsManager::GetInstance()->AgentHostChanged(agent_host); | 199 DevToolsManager::GetInstance()->AgentHostChanged(agent_host); |
201 } | 200 } |
202 | 201 |
203 void EmbeddedWorkerDevToolsManager::ResetForTesting() { | 202 void EmbeddedWorkerDevToolsManager::ResetForTesting() { |
204 workers_.clear(); | 203 workers_.clear(); |
205 } | 204 } |
206 | 205 |
207 } // namespace content | 206 } // namespace content |
OLD | NEW |