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

Unified Diff: Source/web/ServiceWorkerGlobalScopeProxy.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/modules/background_sync/SyncRegistration.cpp ('k') | Source/web/ServiceWorkerGlobalScopeProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ServiceWorkerGlobalScopeProxy.h
diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.h b/Source/web/ServiceWorkerGlobalScopeProxy.h
index e7902cf94e1e2cf23315ef6d9fe4b0e68b2628a7..58a088682171b9bfa0f67fedd46f7f6cfef74cd7 100644
--- a/Source/web/ServiceWorkerGlobalScopeProxy.h
+++ b/Source/web/ServiceWorkerGlobalScopeProxy.h
@@ -46,6 +46,7 @@ class ServiceWorkerGlobalScope;
class WebEmbeddedWorkerImpl;
class WebServiceWorkerContextClient;
class WebServiceWorkerRequest;
+struct WebSyncRegistration;
// This class is created and destructed on the main thread, but live most
// of its time as a resident of the worker thread.
@@ -79,7 +80,10 @@ public:
void dispatchNotificationClickEvent(int, int64_t notificationID, const WebNotificationData&) override;
void dispatchPushEvent(int, const WebString& data) override;
void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, const WebURL& targetURL, const WebString& origin, WebServicePortID) override;
+ // TODO(iclelland): Remove the single-parameter version once all call sites
+ // have been updated.
void dispatchSyncEvent(int) override;
+ void dispatchSyncEvent(int, const WebSyncRegistration&) override;
void addStashedMessagePorts(const WebMessagePortChannelArray&, const WebVector<WebString>& webChannelNames) override;
// WorkerReportingProxy overrides:
« no previous file with comments | « Source/modules/background_sync/SyncRegistration.cpp ('k') | Source/web/ServiceWorkerGlobalScopeProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698