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

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: Add MODULES_EXPORT declaration to SyncRegistration 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
Index: public/web/WebServiceWorkerContextProxy.h
diff --git a/public/web/WebServiceWorkerContextProxy.h b/public/web/WebServiceWorkerContextProxy.h
index ec71310cedf5532c6a87e84cbb6459c4626d0c09..989aebf37154d7243f52586e6225fdf7a22337d8 100644
--- a/public/web/WebServiceWorkerContextProxy.h
+++ b/public/web/WebServiceWorkerContextProxy.h
@@ -42,6 +42,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.
@@ -67,9 +68,12 @@ public:
virtual void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWorkerClient&, const WebString& message, const WebMessagePortChannelArray&) = 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.
+ // FIXME: 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;
};
« Source/web/ServiceWorkerGlobalScopeProxy.h ('K') | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698