| 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 #ifndef CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ | 6 #define CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class Message; | 21 class Message; |
| 22 } | 22 } |
| 23 | 23 |
| 24 // All methods are supposed to be called on the IO thread. | 24 // All methods are supposed to be called on the IO thread. |
| 25 class WorkerDevToolsManager : private WorkerServiceObserver { | 25 class WorkerDevToolsManager : private WorkerServiceObserver { |
| 26 public: | 26 public: |
| 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 CONTENT_EXPORT 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 void ForwardToDevToolsClient(int worker_process_id, | 35 void ForwardToDevToolsClient(int worker_process_id, |
| 36 int worker_route_id, | 36 int worker_route_id, |
| 37 const IPC::Message& message); | 37 const IPC::Message& message); |
| 38 void SaveAgentRuntimeState(int worker_process_id, | 38 void SaveAgentRuntimeState(int worker_process_id, |
| 39 int worker_route_id, | 39 int worker_route_id, |
| 40 const std::string& state); | 40 const std::string& state); |
| 41 | 41 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // - DevTools client is closed on the UI thread, WorkerDevToolsManager was | 104 // - DevTools client is closed on the UI thread, WorkerDevToolsManager was |
| 105 // notified about that on the IO thread and sent "resume" message to the | 105 // notified about that on the IO thread and sent "resume" message to the |
| 106 // worker. | 106 // worker. |
| 107 // - Existing DevTools client was reattached to the new worker. | 107 // - Existing DevTools client was reattached to the new worker. |
| 108 PausedWorkers paused_workers_; | 108 PausedWorkers paused_workers_; |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); | 110 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 #endif // CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ | 113 #endif // CONTENT_BROWSER_DEBUGGER_WORKER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |