OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ |
6 #define CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
| 14 #include "content/browser/worker_host/worker_process_host.h" |
14 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
15 #include "content/browser/worker_host/worker_process_host.h" | |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 class DevToolsAgentHost; | 19 class DevToolsAgentHost; |
20 | 20 |
21 // All methods are supposed to be called on the IO thread. | 21 // All methods are supposed to be called on the IO thread. |
22 class WorkerDevToolsManager { | 22 class WorkerDevToolsManager { |
23 public: | 23 public: |
24 // Returns the WorkerDevToolsManager singleton. | 24 // Returns the WorkerDevToolsManager singleton. |
25 static WorkerDevToolsManager* GetInstance(); | 25 static WorkerDevToolsManager* GetInstance(); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // notified about that on the IO thread and sent "resume" message to the | 99 // notified about that on the IO thread and sent "resume" message to the |
100 // worker. | 100 // worker. |
101 // - Existing DevTools client was reattached to the new worker. | 101 // - Existing DevTools client was reattached to the new worker. |
102 PausedWorkers paused_workers_; | 102 PausedWorkers paused_workers_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); | 104 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace content | 107 } // namespace content |
108 | 108 |
109 #endif // CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ | 109 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ |
OLD | NEW |