Index: content/browser/service_worker/service_worker_context_core.h |
diff --git a/content/browser/service_worker/service_worker_context_core.h b/content/browser/service_worker/service_worker_context_core.h |
index 2fae44124ec31409cc92d69f805a5b024fc79f69..a0df38bbb80d69f74b161e921187fba61f6b4063 100644 |
--- a/content/browser/service_worker/service_worker_context_core.h |
+++ b/content/browser/service_worker/service_worker_context_core.h |
@@ -34,6 +34,7 @@ namespace content { |
class EmbeddedWorkerRegistry; |
class ServiceWorkerContextObserver; |
+class ServiceWorkerContextWrapper; |
class ServiceWorkerHandle; |
class ServiceWorkerJobCoordinator; |
class ServiceWorkerProviderHost; |
@@ -84,6 +85,7 @@ class CONTENT_EXPORT ServiceWorkerContextCore |
// ServiceWorkerContextCore, the methods of ServiceWorkerContextObserver will |
// be called on the thread which called AddObserver() of |observer_list|. |
ServiceWorkerContextCore( |
+ ServiceWorkerContextWrapper* wrapper, |
const base::FilePath& user_data_directory, |
quota::QuotaManagerProxy* quota_manager_proxy, |
ObserverListThreadSafe<ServiceWorkerContextObserver>* observer_list); |
@@ -105,6 +107,7 @@ class CONTENT_EXPORT ServiceWorkerContextCore |
int line_number, |
const GURL& source_url) OVERRIDE; |
+ ServiceWorkerContextWrapper* wrapper() { return wrapper_.get(); } |
ServiceWorkerStorage* storage() { return storage_.get(); } |
EmbeddedWorkerRegistry* embedded_worker_registry() { |
return embedded_worker_registry_.get(); |
@@ -163,6 +166,7 @@ class CONTENT_EXPORT ServiceWorkerContextCore |
ServiceWorkerRegistration* registration, |
ServiceWorkerVersion* version); |
+ scoped_refptr<ServiceWorkerContextWrapper> wrapper_; |
ProcessToProviderMap providers_; |
scoped_ptr<ServiceWorkerStorage> storage_; |
scoped_refptr<EmbeddedWorkerRegistry> embedded_worker_registry_; |