| 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 22 matching lines...) Expand all Loading... |
| 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 std::string& message); | 37 const std::string& 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 |
| 42 // Called on the IO thread. | 42 // Called on the IO thread. |
| 43 void WorkerCreated( | 43 // Returns true when the worker must be paused on start. |
| 44 bool WorkerCreated( |
| 44 WorkerProcessHost* process, | 45 WorkerProcessHost* process, |
| 45 const WorkerProcessHost::WorkerInstance& instance); | 46 const WorkerProcessHost::WorkerInstance& instance); |
| 46 void WorkerDestroyed(WorkerProcessHost* process, int worker_route_id); | 47 void WorkerDestroyed(WorkerProcessHost* process, int worker_route_id); |
| 47 void WorkerContextStarted(WorkerProcessHost* process, int worker_route_id); | 48 void WorkerContextStarted(WorkerProcessHost* process, int worker_route_id); |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 friend struct DefaultSingletonTraits<WorkerDevToolsManager>; | 51 friend struct DefaultSingletonTraits<WorkerDevToolsManager>; |
| 51 class DetachedClientHosts; | 52 class DetachedClientHosts; |
| 52 struct InspectedWorker; | 53 struct InspectedWorker; |
| 53 typedef std::list<InspectedWorker> InspectedWorkersList; | 54 typedef std::list<InspectedWorker> InspectedWorkersList; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // worker. | 101 // worker. |
| 101 // - Existing DevTools client was reattached to the new worker. | 102 // - Existing DevTools client was reattached to the new worker. |
| 102 PausedWorkers paused_workers_; | 103 PausedWorkers paused_workers_; |
| 103 | 104 |
| 104 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); | 105 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace content | 108 } // namespace content |
| 108 | 109 |
| 109 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ | 110 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |