OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/worker_devtools_manager.h" | 5 #include "content/browser/devtools/worker_devtools_manager.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "content/browser/devtools/devtools_agent_host_impl.h" | 12 #include "content/browser/devtools/devtools_agent_host_impl.h" |
13 #include "content/browser/devtools/devtools_manager_impl.h" | 13 #include "content/browser/devtools/devtools_manager_impl.h" |
14 #include "content/browser/devtools/worker_devtools_message_filter.h" | 14 #include "content/browser/devtools/worker_devtools_message_filter.h" |
15 #include "content/browser/worker_host/worker_service_impl.h" | 15 #include "content/browser/worker_host/worker_service_impl.h" |
16 #include "content/common/devtools_messages.h" | 16 #include "content/common/devtools_messages.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/child_process_data.h" | 18 #include "content/public/browser/child_process_data.h" |
19 #include "content/public/common/process_type.h" | 19 #include "content/public/common/process_type.h" |
| 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" |
| 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" | |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | |
23 | 23 |
24 using WebKit::WebDevToolsAgent; | 24 using WebKit::WebDevToolsAgent; |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 | 27 |
28 // Called on the UI thread. | 28 // Called on the UI thread. |
29 // static | 29 // static |
30 scoped_refptr<DevToolsAgentHost> DevToolsAgentHost::GetForWorker( | 30 scoped_refptr<DevToolsAgentHost> DevToolsAgentHost::GetForWorker( |
31 int worker_process_id, | 31 int worker_process_id, |
32 int worker_route_id) { | 32 int worker_route_id) { |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 it->second->ConnectionFailed(); | 436 it->second->ConnectionFailed(); |
437 } | 437 } |
438 | 438 |
439 // static | 439 // static |
440 void WorkerDevToolsManager::SendResumeToWorker(const WorkerId& id) { | 440 void WorkerDevToolsManager::SendResumeToWorker(const WorkerId& id) { |
441 if (WorkerProcessHost* process = FindWorkerProcess(id.first)) | 441 if (WorkerProcessHost* process = FindWorkerProcess(id.first)) |
442 process->Send(new DevToolsAgentMsg_ResumeWorkerContext(id.second)); | 442 process->Send(new DevToolsAgentMsg_ResumeWorkerContext(id.second)); |
443 } | 443 } |
444 | 444 |
445 } // namespace content | 445 } // namespace content |
OLD | NEW |