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

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

Issue 896533004: [WONT COMMIT] ServiceWorker: Move unregister function from WebSWProvider to WebSWRegistration (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/child/service_worker/service_worker_dispatcher.h
diff --git a/content/child/service_worker/service_worker_dispatcher.h b/content/child/service_worker/service_worker_dispatcher.h
index 3f1deff722e9e858712358efb7ba5b60ffc5e5c0..bae325e1ed78361535a354cfb4a33baaa70721a1 100644
--- a/content/child/service_worker/service_worker_dispatcher.h
+++ b/content/child/service_worker/service_worker_dispatcher.h
@@ -117,6 +117,7 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
// ServiceWorkerRegistrationHandleReference will be adopted for the
// registration.
WebServiceWorkerRegistrationImpl* CreateServiceWorkerRegistration(
+ int provider_id,
const ServiceWorkerRegistrationObjectInfo& info,
bool adopt_handle);
@@ -164,6 +165,7 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
int provider_id);
void OnRegistered(int thread_id,
int request_id,
+ int provider_id,
const ServiceWorkerRegistrationObjectInfo& info,
const ServiceWorkerVersionAttributes& attrs);
void OnUnregistered(int thread_id,
@@ -171,6 +173,7 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
bool is_success);
void OnDidGetRegistration(int thread_id,
int request_id,
+ int provider_id,
const ServiceWorkerRegistrationObjectInfo& info,
const ServiceWorkerVersionAttributes& attrs);
void OnRegistrationError(int thread_id,
@@ -226,6 +229,7 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
int registration_handle_id);
WebServiceWorkerRegistrationImpl* FindOrCreateRegistration(
+ int provider_id,
const ServiceWorkerRegistrationObjectInfo& info,
const ServiceWorkerVersionAttributes& attrs);

Powered by Google App Engine
This is Rietveld 408576698