| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 int worker_route_id, | 64 int worker_route_id, |
| 65 const IPC::Message& message); | 65 const IPC::Message& message); |
| 66 static void ForwardToDevToolsClientOnUIThread( | 66 static void ForwardToDevToolsClientOnUIThread( |
| 67 int worker_process_id, | 67 int worker_process_id, |
| 68 int worker_route_id, | 68 int worker_route_id, |
| 69 const std::string& message); | 69 const std::string& message); |
| 70 static void SaveAgentRuntimeStateOnUIThread( | 70 static void SaveAgentRuntimeStateOnUIThread( |
| 71 int worker_process_id, | 71 int worker_process_id, |
| 72 int worker_route_id, | 72 int worker_route_id, |
| 73 const std::string& state); | 73 const std::string& state); |
| 74 static void NotifyWorkerDestroyedOnIOThread(int worker_process_id, | |
| 75 int worker_route_id); | |
| 76 static void NotifyWorkerDestroyedOnUIThread(int worker_process_id, | |
| 77 int worker_route_id); | |
| 78 static void SendResumeToWorker(const WorkerId& id); | 74 static void SendResumeToWorker(const WorkerId& id); |
| 79 | 75 |
| 80 InspectedWorkersList inspected_workers_; | 76 InspectedWorkersList inspected_workers_; |
| 81 | 77 |
| 82 struct TerminatedInspectedWorker; | 78 struct TerminatedInspectedWorker; |
| 83 typedef std::list<TerminatedInspectedWorker> TerminatedInspectedWorkers; | 79 typedef std::list<TerminatedInspectedWorker> TerminatedInspectedWorkers; |
| 84 // List of terminated workers for which there may be a devtools client on | 80 // List of terminated workers for which there may be a devtools client on |
| 85 // the UI thread. Worker entry is added into this list when inspected worker | 81 // the UI thread. Worker entry is added into this list when inspected worker |
| 86 // is terminated and will be removed in one of two cases: | 82 // is terminated and will be removed in one of two cases: |
| 87 // - shared worker with the same URL and name is started(in wich case we will | 83 // - shared worker with the same URL and name is started(in wich case we will |
| (...skipping 12 matching lines...) Expand all Loading... |
| 100 // worker. | 96 // worker. |
| 101 // - Existing DevTools client was reattached to the new worker. | 97 // - Existing DevTools client was reattached to the new worker. |
| 102 PausedWorkers paused_workers_; | 98 PausedWorkers paused_workers_; |
| 103 | 99 |
| 104 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); | 100 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsManager); |
| 105 }; | 101 }; |
| 106 | 102 |
| 107 } // namespace content | 103 } // namespace content |
| 108 | 104 |
| 109 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ | 105 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_MANAGER_H_ |
| OLD | NEW |