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

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

Issue 140743012: Start EmbeddedWorker during registration - take 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 4ab4351be7d9088b592469aafc23bbf61a97e16b..ac972f56758ff07bdec793f86356e5a6a96b78fb 100644
--- a/content/browser/service_worker/service_worker_context_core.h
+++ b/content/browser/service_worker/service_worker_context_core.h
@@ -70,10 +70,12 @@ class CONTENT_EXPORT ServiceWorkerContextCore
// The callback will be called on the IO thread.
void RegisterServiceWorker(const GURL& pattern,
const GURL& script_url,
+ ServiceWorkerProviderHost* source_provider,
const RegistrationCallback& callback);
// The callback will be called on the IO thread.
void UnregisterServiceWorker(const GURL& pattern,
+ ServiceWorkerProviderHost* source_provider,
const UnregistrationCallback& callback);
EmbeddedWorkerRegistry* embedded_worker_registry() {
@@ -100,8 +102,8 @@ class CONTENT_EXPORT ServiceWorkerContextCore
ProcessToProviderMap providers_;
scoped_ptr<ServiceWorkerStorage> storage_;
- scoped_ptr<ServiceWorkerJobCoordinator> job_coordinator_;
scoped_refptr<EmbeddedWorkerRegistry> embedded_worker_registry_;
+ scoped_ptr<ServiceWorkerJobCoordinator> job_coordinator_;
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore);
};

Powered by Google App Engine
This is Rietveld 408576698