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

Unified Diff: content/browser/service_worker/service_worker_context_core.h

Issue 238043002: Teach EmbeddedWorkerInstance to create a process when it needs one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Null out browser_context_ in Shutdown Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698