Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: content/browser/shared_worker/shared_worker_service_impl.h

Issue 2249173003: Removes the references to shared workers from the all documents in being deleted frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep WorkerStoragePartitionId in SharedWorkerMessageFilter Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 from the all documents in the renderer process which
90 // is associated with |filter_| to shared workers. And shuts down any shared
91 // workers that are no longer referenced by active documents.
92 void DetachAllDocument(SharedWorkerMessageFilter* filter);
nhiroki 2016/08/17 06:58:04 ditto
horo 2016/08/17 07:15:55 Done.
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 // TODO(alokp): Remove after collecting crash data. 101 // TODO(alokp): Remove after collecting crash data.
97 // Temporary checks to verify that all shared workers are terminated. 102 // Temporary checks to verify that all shared workers are terminated.
98 // It is suspected that shared workers prevent render process hosts 103 // It is suspected that shared workers prevent render process hosts
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 int next_pending_instance_id_; 180 int next_pending_instance_id_;
176 181
177 base::ObserverList<WorkerServiceObserver> observers_; 182 base::ObserverList<WorkerServiceObserver> observers_;
178 183
179 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); 184 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl);
180 }; 185 };
181 186
182 } // namespace content 187 } // namespace content
183 188
184 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ 189 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698