OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 SharedWorkerMessageFilter* filter); | 85 SharedWorkerMessageFilter* filter); |
86 | 86 |
87 void OnSharedWorkerMessageFilterClosing( | 87 void OnSharedWorkerMessageFilterClosing( |
88 SharedWorkerMessageFilter* filter); | 88 SharedWorkerMessageFilter* filter); |
89 | 89 |
90 // Checks the worker dependency of renderer processes and calls | 90 // Checks the worker dependency of renderer processes and calls |
91 // IncrementWorkerRefCount and DecrementWorkerRefCount of | 91 // IncrementWorkerRefCount and DecrementWorkerRefCount of |
92 // RenderProcessHostImpl on UI thread if necessary. | 92 // RenderProcessHostImpl on UI thread if necessary. |
93 void CheckWorkerDependency(); | 93 void CheckWorkerDependency(); |
94 | 94 |
| 95 void NotifyWorkerDestroyed(int worker_process_id, int worker_route_id); |
| 96 |
95 private: | 97 private: |
96 friend struct DefaultSingletonTraits<SharedWorkerServiceImpl>; | 98 friend struct DefaultSingletonTraits<SharedWorkerServiceImpl>; |
97 friend class SharedWorkerServiceImplTest; | 99 friend class SharedWorkerServiceImplTest; |
98 | 100 |
99 typedef void (*UpdateWorkerDependencyFunc)(const std::vector<int>&, | 101 typedef void (*UpdateWorkerDependencyFunc)(const std::vector<int>&, |
100 const std::vector<int>&); | 102 const std::vector<int>&); |
101 | 103 |
102 SharedWorkerServiceImpl(); | 104 SharedWorkerServiceImpl(); |
103 virtual ~SharedWorkerServiceImpl(); | 105 virtual ~SharedWorkerServiceImpl(); |
104 | 106 |
(...skipping 26 matching lines...) Expand all Loading... |
131 WorkerHostMap worker_hosts_; | 133 WorkerHostMap worker_hosts_; |
132 | 134 |
133 ObserverList<WorkerServiceObserver> observers_; | 135 ObserverList<WorkerServiceObserver> observers_; |
134 | 136 |
135 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); | 137 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); |
136 }; | 138 }; |
137 | 139 |
138 } // namespace content | 140 } // namespace content |
139 | 141 |
140 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 142 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
OLD | NEW |