| Index: content/browser/shared_worker/shared_worker_service_impl.h
|
| diff --git a/content/browser/shared_worker/shared_worker_service_impl.h b/content/browser/shared_worker/shared_worker_service_impl.h
|
| index 7abf4528d0ece8dc1bc195aeb64fe404630a73fc..70887857acadac0c5cdae01011da6f214a872dda 100644
|
| --- a/content/browser/shared_worker/shared_worker_service_impl.h
|
| +++ b/content/browser/shared_worker/shared_worker_service_impl.h
|
| @@ -92,21 +92,12 @@
|
| // RenderProcessHostImpl on UI thread if necessary.
|
| void CheckWorkerDependency();
|
|
|
| - void WorkerCreatedResultCallback(int worker_process_id,
|
| - int worker_route_id,
|
| - bool pause_on_start);
|
| - void NotifyWorkerDestroyed(int worker_process_id, int worker_route_id);
|
| -
|
| private:
|
| friend struct DefaultSingletonTraits<SharedWorkerServiceImpl>;
|
| friend class SharedWorkerServiceImplTest;
|
|
|
| typedef void (*UpdateWorkerDependencyFunc)(const std::vector<int>&,
|
| const std::vector<int>&);
|
| - // Pair of render_process_id and worker_route_id.
|
| - typedef std::pair<int, int> ProcessRouteIdPair;
|
| - typedef base::ScopedPtrHashMap<ProcessRouteIdPair, SharedWorkerHost>
|
| - WorkerHostMap;
|
|
|
| SharedWorkerServiceImpl();
|
| virtual ~SharedWorkerServiceImpl();
|
| @@ -117,8 +108,7 @@
|
| SharedWorkerMessageFilter* filter,
|
| int worker_route_id);
|
|
|
| - static SharedWorkerHost* FindSharedWorkerHost(
|
| - const WorkerHostMap& hosts,
|
| + SharedWorkerHost* FindSharedWorkerHost(
|
| const GURL& url,
|
| const base::string16& name,
|
| const WorkerStoragePartition& worker_partition,
|
| @@ -134,8 +124,11 @@
|
| std::set<int> last_worker_depended_renderers_;
|
| UpdateWorkerDependencyFunc update_worker_dependency_;
|
|
|
| + // Pair of render_process_id and worker_route_id.
|
| + typedef std::pair<int, int> ProcessRouteIdPair;
|
| + typedef base::ScopedPtrHashMap<ProcessRouteIdPair,
|
| + SharedWorkerHost> WorkerHostMap;
|
| WorkerHostMap worker_hosts_;
|
| - WorkerHostMap pending_worker_hosts_;
|
|
|
| ObserverList<WorkerServiceObserver> observers_;
|
|
|
|
|