| 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> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 class WorkerDevToolsAgentHost; | 25 class WorkerDevToolsAgentHost; |
| 26 | 26 |
| 27 // Returns the WorkerDevToolsManager singleton. | 27 // Returns the WorkerDevToolsManager singleton. |
| 28 static WorkerDevToolsManager* GetInstance(); | 28 static WorkerDevToolsManager* GetInstance(); |
| 29 | 29 |
| 30 // Called on the UI thread. | 30 // Called on the UI thread. |
| 31 static DevToolsAgentHost* GetDevToolsAgentHostForWorker( | 31 static DevToolsAgentHost* GetDevToolsAgentHostForWorker( |
| 32 int worker_process_id, | 32 int worker_process_id, |
| 33 int worker_route_id); | 33 int worker_route_id); |
| 34 | 34 |
| 35 // Called on the UI thread. | |
| 36 static bool HasDevToolsAgentHostForWorker( | |
| 37 int worker_process_id, | |
| 38 int worker_route_id); | |
| 39 | |
| 40 void ForwardToDevToolsClient(int worker_process_id, | 35 void ForwardToDevToolsClient(int worker_process_id, |
| 41 int worker_route_id, | 36 int worker_route_id, |
| 42 const std::string& message); | 37 const std::string& message); |
| 43 void SaveAgentRuntimeState(int worker_process_id, | 38 void SaveAgentRuntimeState(int worker_process_id, |
| 44 int worker_route_id, | 39 int worker_route_id, |
| 45 const std::string& state); | 40 const std::string& state); |
| 46 | 41 |
| 47 // Called on the IO thread. | 42 // Called on the IO thread. |
| 48 void WorkerCreated( | 43 void WorkerCreated( |
| 49 WorkerProcessHost* process, | 44 WorkerProcessHost* process, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // worker. | 100 // worker. |
| 106 // - Existing DevTools client was reattached to the new worker. | 101 // - Existing DevTools client was reattached to the new worker. |
| 107 PausedWorkers paused_workers_; | 102 PausedWorkers paused_workers_; |
| 108 | 103 |
| 109 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); | 104 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); |
| 110 }; | 105 }; |
| 111 | 106 |
| 112 } // namespace content | 107 } // namespace content |
| 113 | 108 |
| 114 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ | 109 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |