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

Unified Diff: Source/web/ServiceWorkerGlobalScopeProxy.cpp

Issue 205013002: The blink half of the new ServiceWorker 'sync' event. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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: Source/web/ServiceWorkerGlobalScopeProxy.cpp
diff --git a/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
index 80307f05cd84d2b0a73d0826f7182c8fe0e5f898..eb0d33fde95b742dad8baa7f2f3265f939d648de 100644
--- a/Source/web/ServiceWorkerGlobalScopeProxy.cpp
+++ b/Source/web/ServiceWorkerGlobalScopeProxy.cpp
@@ -74,6 +74,14 @@ void ServiceWorkerGlobalScopeProxy::dispatchFetchEvent(int eventID)
observer->didDispatchEvent();
}
+void ServiceWorkerGlobalScopeProxy::dispatchSyncEvent(int eventID)
+{
+ ASSERT(m_workerGlobalScope);
+ m_workerGlobalScope->dispatchEvent(Event::create(EventTypeNames::sync));
+ ServiceWorkerGlobalScopeClient::from(m_workerGlobalScope)->didHandleSyncEvent(eventID);
+}
+
+
void ServiceWorkerGlobalScopeProxy::reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL)
{
m_client.reportException(errorMessage, lineNumber, columnNumber, sourceURL);

Powered by Google App Engine
This is Rietveld 408576698