| 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_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_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/callback.h" |
| 13 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 14 #include "content/browser/worker_host/worker_process_host.h" | 15 #include "content/browser/worker_host/worker_process_host.h" |
| 15 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/public/browser/devtools_agent_host.h" |
| 16 | 18 |
| 17 namespace content { | 19 namespace content { |
| 18 | 20 |
| 19 class DevToolsAgentHost; | |
| 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 // This class is not used when "enable-embedded-shared-worker" flag is set. | 22 // This class is not used when "enable-embedded-shared-worker" flag is set. |
| 23 class WorkerDevToolsManager { | 23 class WorkerDevToolsManager { |
| 24 public: | 24 public: |
| 25 typedef std::pair<int, int> WorkerId; | 25 typedef std::pair<int, int> WorkerId; |
| 26 class WorkerDevToolsAgentHost; | 26 class WorkerDevToolsAgentHost; |
| 27 | 27 |
| 28 // Returns the WorkerDevToolsManager singleton. | 28 // Returns the WorkerDevToolsManager singleton. |
| 29 static WorkerDevToolsManager* GetInstance(); | 29 static WorkerDevToolsManager* GetInstance(); |
| 30 | 30 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // worker. | 101 // worker. |
| 102 // - Existing DevTools client was reattached to the new worker. | 102 // - Existing DevTools client was reattached to the new worker. |
| 103 PausedWorkers paused_workers_; | 103 PausedWorkers paused_workers_; |
| 104 | 104 |
| 105 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); | 105 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace content | 108 } // namespace content |
| 109 | 109 |
| 110 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ | 110 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |