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

Unified Diff: content/child/service_worker/web_service_worker_registration_impl.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/web_service_worker_registration_impl.h
diff --git a/content/child/service_worker/web_service_worker_registration_impl.h b/content/child/service_worker/web_service_worker_registration_impl.h
index 52ee1029ddf10ce6c902d9cec95bc5686b899466..801ee53c70d8d2a106f3345a0c1f5d4ba5543419 100644
--- a/content/child/service_worker/web_service_worker_registration_impl.h
+++ b/content/child/service_worker/web_service_worker_registration_impl.h
@@ -24,7 +24,11 @@ struct ServiceWorkerObjectInfo;
class WebServiceWorkerRegistrationImpl
: NON_EXPORTED_BASE(public blink::WebServiceWorkerRegistration) {
public:
- explicit WebServiceWorkerRegistrationImpl(
+ using UnregisterCallbacks =
+ blink::WebServiceWorkerRegistration::UnregisterCallbacks;
+
+ WebServiceWorkerRegistrationImpl(
+ int provider_id,
scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref);
virtual ~WebServiceWorkerRegistrationImpl();
@@ -38,6 +42,7 @@ class WebServiceWorkerRegistrationImpl
virtual void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy);
virtual blink::WebServiceWorkerRegistrationProxy* proxy();
virtual blink::WebURL scope() const;
+ virtual void unregister(UnregisterCallbacks*);
int64 registration_id() const;
@@ -59,6 +64,7 @@ class WebServiceWorkerRegistrationImpl
void RunQueuedTasks();
void ClearQueuedTasks();
+ const int provider_id_;
scoped_ptr<ServiceWorkerRegistrationHandleReference> handle_ref_;
blink::WebServiceWorkerRegistrationProxy* proxy_;

Powered by Google App Engine
This is Rietveld 408576698