| 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 27 matching lines...) Expand all Loading... |
| 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 void WorkerCreated( |
| 44 WorkerProcessHost* process, | 44 WorkerProcessHost* process, |
| 45 const WorkerProcessHost::WorkerInstance& instance); | 45 const WorkerProcessHost::WorkerInstance& instance); |
| 46 void WorkerDestroyed(WorkerProcessHost* process, int worker_route_id); | 46 void WorkerDestroyed(WorkerProcessHost* process, int worker_route_id); |
| 47 void WorkerContextStarted(WorkerProcessHost* process, int worker_route_id); | 47 void WorkerContextStarted(WorkerProcessHost* process, int worker_route_id); |
| 48 bool TerminatedWorkerExist( |
| 49 const WorkerProcessHost::WorkerInstance& instance) const; |
| 48 | 50 |
| 49 private: | 51 private: |
| 50 friend struct DefaultSingletonTraits<WorkerDevToolsManager>; | 52 friend struct DefaultSingletonTraits<WorkerDevToolsManager>; |
| 51 class DetachedClientHosts; | 53 class DetachedClientHosts; |
| 52 struct InspectedWorker; | 54 struct InspectedWorker; |
| 53 typedef std::list<InspectedWorker> InspectedWorkersList; | 55 typedef std::list<InspectedWorker> InspectedWorkersList; |
| 54 | 56 |
| 55 WorkerDevToolsManager(); | 57 WorkerDevToolsManager(); |
| 56 virtual ~WorkerDevToolsManager(); | 58 virtual ~WorkerDevToolsManager(); |
| 57 | 59 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // worker. | 102 // worker. |
| 101 // - Existing DevTools client was reattached to the new worker. | 103 // - Existing DevTools client was reattached to the new worker. |
| 102 PausedWorkers paused_workers_; | 104 PausedWorkers paused_workers_; |
| 103 | 105 |
| 104 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); | 106 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace content | 109 } // namespace content |
| 108 | 110 |
| 109 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ | 111 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |