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

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

Issue 85023003: EmbeddedWorker, browser side code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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 854e23404302316a68bddad42b3088d857f795d4..0351c2e74e466ea1614d95846318f973f6b927bc 100644
--- a/content/browser/service_worker/service_worker_context_core.h
+++ b/content/browser/service_worker/service_worker_context_core.h
@@ -29,9 +29,10 @@ class QuotaManagerProxy;
namespace content {
-class ServiceWorkerStorage;
-class ServiceWorkerRegistration;
+class EmbeddedWorkerRegistry;
class ServiceWorkerProviderHost;
+class ServiceWorkerRegistration;
+class ServiceWorkerStorage;
// This class manages data associated with service workers.
// The class is single threaded and should only be used on the IO thread.
@@ -74,6 +75,10 @@ class CONTENT_EXPORT ServiceWorkerContextCore
void UnregisterServiceWorker(const GURL& pattern,
const UnregistrationCallback& callback);
+ EmbeddedWorkerRegistry* embedded_worker_registry() {
+ return embedded_worker_registry_.get();
+ }
+
private:
typedef IDMap<ServiceWorkerProviderHost, IDMapOwnPointer> ProviderMap;
typedef IDMap<ProviderMap, IDMapOwnPointer> ProcessToProviderMap;
@@ -91,6 +96,7 @@ class CONTENT_EXPORT ServiceWorkerContextCore
ProcessToProviderMap providers_;
scoped_ptr<ServiceWorkerStorage> storage_;
+ scoped_refptr<EmbeddedWorkerRegistry> embedded_worker_registry_;
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore);
};

Powered by Google App Engine
This is Rietveld 408576698