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

Unified Diff: public/web/WebServiceWorkerContextProxy.h

Issue 1220223003: [Background Sync] Add sync registration details to onsync event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix: Missing words in comment Created 5 years, 5 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
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebServiceWorkerContextProxy.h
diff --git a/public/web/WebServiceWorkerContextProxy.h b/public/web/WebServiceWorkerContextProxy.h
index 84b183225e59c83d30c9f5ccba301ce40842e17d..75c5c5bd71712486ac9b512e32f8b1a40551b683 100644
--- a/public/web/WebServiceWorkerContextProxy.h
+++ b/public/web/WebServiceWorkerContextProxy.h
@@ -43,6 +43,7 @@ struct WebNotificationData;
class WebServiceWorkerRegistration;
class WebServiceWorkerRequest;
class WebString;
+struct WebSyncRegistration;
// A proxy interface to talk to the worker's GlobalScope implementation.
// All methods of this class must be called on the worker thread.
@@ -71,9 +72,12 @@ public:
// Passes ownership of the callbacks.
virtual void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, const WebURL& targetURL, const WebString& origin, WebServicePortID) = 0;
- // Once the ServiceWorker has finished handling the sync event
+ // Once the ServiceWorker has finished handling the sync event,
// didHandleSyncEvent is called on the context client.
+ // TODO(iclelland): Remove the single-parameter version once all call sites
+ // have been updated.
virtual void dispatchSyncEvent(int syncEventID) = 0;
+ virtual void dispatchSyncEvent(int syncEventID, const WebSyncRegistration&) = 0;
virtual void addStashedMessagePorts(const WebMessagePortChannelArray& channels, const WebVector<WebString>& channelNames) = 0;
};
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698