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

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

Issue 852463002: Keep track of ServiceWorkerContext's BrowserContext and expose it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nullptr
Patch Set: Created 5 years, 11 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 ffd0a26446b3d9b99541a5c4fa75bdc3e7374aa3..b977b05eb3d397dab0765fdaa8c0c1f85efbd50a 100644
--- a/content/browser/service_worker/service_worker_context_core.h
+++ b/content/browser/service_worker/service_worker_context_core.h
@@ -196,6 +196,9 @@ class CONTENT_EXPORT ServiceWorkerContextCore
int new_host_id,
scoped_ptr<ServiceWorkerProviderHost> provider_host);
+ // This MUST be called in the UI thread.
michaeln 2015/01/13 21:27:32 I think this class can remain very strictly single
mlamouri (slow - plz ping) 2015/01/14 15:46:24 Ok. Sounds good. I was assuming SWContextCore wasn
michaeln 2015/01/14 19:57:02 The wrapper() was intentionally not exposed to hel
+ BrowserContext* GetBrowserContext() const;
+
base::WeakPtr<ServiceWorkerContextCore> AsWeakPtr() {
return weak_factory_.GetWeakPtr();
}

Powered by Google App Engine
This is Rietveld 408576698