Chromium Code Reviews| 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 <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 SharedWorkerMessageFilter* filter); | 79 SharedWorkerMessageFilter* filter); |
| 80 void AllowIndexedDB(int worker_route_id, | 80 void AllowIndexedDB(int worker_route_id, |
| 81 const GURL& url, | 81 const GURL& url, |
| 82 const base::string16& name, | 82 const base::string16& name, |
| 83 bool* result, | 83 bool* result, |
| 84 SharedWorkerMessageFilter* filter); | 84 SharedWorkerMessageFilter* filter); |
| 85 | 85 |
| 86 void OnSharedWorkerMessageFilterClosing( | 86 void OnSharedWorkerMessageFilterClosing( |
| 87 SharedWorkerMessageFilter* filter); | 87 SharedWorkerMessageFilter* filter); |
| 88 | 88 |
| 89 // Removes the references to shared workers from the all documents in the | |
|
nhiroki
2016/08/25 09:38:19
all the documents
horo
2016/08/25 10:55:55
Done.
| |
| 90 // renderer frame. And shuts down any shared workers that are no longer | |
| 91 // referenced by active documents. | |
| 92 void RenderFrameDetached(int render_process_id, int render_frame_id); | |
| 93 | |
| 89 // Checks the worker dependency of renderer processes and calls | 94 // Checks the worker dependency of renderer processes and calls |
| 90 // IncrementWorkerRefCount and DecrementWorkerRefCount of | 95 // IncrementWorkerRefCount and DecrementWorkerRefCount of |
| 91 // RenderProcessHostImpl on UI thread if necessary. | 96 // RenderProcessHostImpl on UI thread if necessary. |
| 92 void CheckWorkerDependency(); | 97 void CheckWorkerDependency(); |
| 93 | 98 |
| 94 void NotifyWorkerDestroyed(int worker_process_id, int worker_route_id); | 99 void NotifyWorkerDestroyed(int worker_process_id, int worker_route_id); |
| 95 | 100 |
| 96 private: | 101 private: |
| 97 class SharedWorkerPendingInstance; | 102 class SharedWorkerPendingInstance; |
| 98 class SharedWorkerReserver; | 103 class SharedWorkerReserver; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 169 int next_pending_instance_id_; | 174 int next_pending_instance_id_; |
| 170 | 175 |
| 171 base::ObserverList<WorkerServiceObserver> observers_; | 176 base::ObserverList<WorkerServiceObserver> observers_; |
| 172 | 177 |
| 173 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); | 178 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); |
| 174 }; | 179 }; |
| 175 | 180 |
| 176 } // namespace content | 181 } // namespace content |
| 177 | 182 |
| 178 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 183 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
| OLD | NEW |