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

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

Issue 303733002: Reparent SWProcessManager onto SWContextWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make sure the ContextCore is destroyed before checking that messages fail Created 6 years, 7 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_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index d28d970d987f3d7e8f8a61fe83901fa7ec67e8d9..dfc96f48ec1eab5449cbd706d269ba258c55eb3b 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -49,6 +49,11 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// The core context is only for use on the IO thread.
ServiceWorkerContextCore* context();
+ // The process manager can be used on either UI or IO.
+ ServiceWorkerProcessManager* process_manager() {
+ return process_manager_.get();
+ }
+
// ServiceWorkerContext implementation:
virtual void RegisterServiceWorker(
const GURL& pattern,
@@ -71,11 +76,12 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
base::SequencedTaskRunner* database_task_runner,
base::MessageLoopProxy* disk_cache_thread,
quota::QuotaManagerProxy* quota_manager_proxy);
+ void ShutdownOnIO();
const scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> >
observer_list_;
+ const scoped_ptr<ServiceWorkerProcessManager> process_manager_;
// Cleared in Shutdown():
- BrowserContext* browser_context_;
scoped_ptr<ServiceWorkerContextCore> context_core_;
};

Powered by Google App Engine
This is Rietveld 408576698