OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 const base::string16& error_message, | 121 const base::string16& error_message, |
122 int line_number, | 122 int line_number, |
123 int column_number, | 123 int column_number, |
124 const GURL& source_url) override; | 124 const GURL& source_url) override; |
125 void OnReportConsoleMessage(ServiceWorkerVersion* version, | 125 void OnReportConsoleMessage(ServiceWorkerVersion* version, |
126 int source_identifier, | 126 int source_identifier, |
127 int message_level, | 127 int message_level, |
128 const base::string16& message, | 128 const base::string16& message, |
129 int line_number, | 129 int line_number, |
130 const GURL& source_url) override; | 130 const GURL& source_url) override; |
| 131 void OnControlleeAdded(ServiceWorkerVersion* version, |
| 132 ServiceWorkerProviderHost* provider_host) override; |
| 133 void OnControlleeRemoved(ServiceWorkerVersion* version, |
| 134 ServiceWorkerProviderHost* provider_host) override; |
131 | 135 |
132 ServiceWorkerContextWrapper* wrapper() const { return wrapper_; } | 136 ServiceWorkerContextWrapper* wrapper() const { return wrapper_; } |
133 ServiceWorkerStorage* storage() { return storage_.get(); } | 137 ServiceWorkerStorage* storage() { return storage_.get(); } |
134 ServiceWorkerProcessManager* process_manager(); | 138 ServiceWorkerProcessManager* process_manager(); |
135 EmbeddedWorkerRegistry* embedded_worker_registry() { | 139 EmbeddedWorkerRegistry* embedded_worker_registry() { |
136 return embedded_worker_registry_.get(); | 140 return embedded_worker_registry_.get(); |
137 } | 141 } |
138 ServiceWorkerJobCoordinator* job_coordinator() { | 142 ServiceWorkerJobCoordinator* job_coordinator() { |
139 return job_coordinator_.get(); | 143 return job_coordinator_.get(); |
140 } | 144 } |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 scoped_refptr<base::ObserverListThreadSafe<ServiceWorkerContextObserver>> | 259 scoped_refptr<base::ObserverListThreadSafe<ServiceWorkerContextObserver>> |
256 observer_list_; | 260 observer_list_; |
257 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; | 261 base::WeakPtrFactory<ServiceWorkerContextCore> weak_factory_; |
258 | 262 |
259 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); | 263 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); |
260 }; | 264 }; |
261 | 265 |
262 } // namespace content | 266 } // namespace content |
263 | 267 |
264 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 268 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
OLD | NEW |