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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 void OnSharedWorkerMessageFilterClosing( | 85 void OnSharedWorkerMessageFilterClosing( |
86 SharedWorkerMessageFilter* filter); | 86 SharedWorkerMessageFilter* filter); |
87 | 87 |
88 private: | 88 private: |
89 friend struct DefaultSingletonTraits<SharedWorkerServiceImpl>; | 89 friend struct DefaultSingletonTraits<SharedWorkerServiceImpl>; |
90 | 90 |
91 SharedWorkerServiceImpl(); | 91 SharedWorkerServiceImpl(); |
92 virtual ~SharedWorkerServiceImpl(); | 92 virtual ~SharedWorkerServiceImpl(); |
93 | 93 |
| 94 SharedWorkerHost* FindSharedWorkerHost( |
| 95 SharedWorkerMessageFilter* filter, |
| 96 int worker_route_id); |
| 97 |
94 SharedWorkerInstance* FindSharedWorkerInstance( | 98 SharedWorkerInstance* FindSharedWorkerInstance( |
95 const GURL& url, | 99 const GURL& url, |
96 const base::string16& name, | 100 const base::string16& name, |
97 const WorkerStoragePartition& worker_partition, | 101 const WorkerStoragePartition& worker_partition, |
98 ResourceContext* resource_context); | 102 ResourceContext* resource_context); |
99 | 103 |
100 ScopedVector<SharedWorkerHost> worker_hosts_; | 104 ScopedVector<SharedWorkerHost> worker_hosts_; |
101 ObserverList<WorkerServiceObserver> observers_; | 105 ObserverList<WorkerServiceObserver> observers_; |
102 | 106 |
103 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); | 107 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); |
104 }; | 108 }; |
105 | 109 |
106 } // namespace content | 110 } // namespace content |
107 | 111 |
108 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 112 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
OLD | NEW |