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

Unified Diff: content/child/service_worker/service_worker_provider_context.h

Issue 1454963003: ServiceWorker: Ensure that ServiceWorkerDispatcher always adopts passed handle references (1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 1 month 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/child/service_worker/service_worker_provider_context.h
diff --git a/content/child/service_worker/service_worker_provider_context.h b/content/child/service_worker/service_worker_provider_context.h
index 70c2f0106190c37caae3b6f850e5e005ab83af4c..095a1044350f5565b864f626edbdc2d5ef67ca11 100644
--- a/content/child/service_worker/service_worker_provider_context.h
+++ b/content/child/service_worker/service_worker_provider_context.h
@@ -49,8 +49,11 @@ class CONTENT_EXPORT ServiceWorkerProviderContext
ThreadSafeSender* thread_safe_sender);
// Called from ServiceWorkerDispatcher.
- void OnAssociateRegistration(const ServiceWorkerRegistrationObjectInfo& info,
- const ServiceWorkerVersionAttributes& attrs);
+ void OnAssociateRegistration(
+ scoped_ptr<ServiceWorkerRegistrationHandleReference> registration,
+ scoped_ptr<ServiceWorkerHandleReference> installing,
+ scoped_ptr<ServiceWorkerHandleReference> waiting,
+ scoped_ptr<ServiceWorkerHandleReference> active);
void OnDisassociateRegistration();
void OnSetControllerServiceWorker(
scoped_ptr<ServiceWorkerHandleReference> controller);

Powered by Google App Engine
This is Rietveld 408576698