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

Unified Diff: Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

Issue 723923002: ServiceWorker: Add support for .skipWaiting and controllerchange event(1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/ServiceWorkerGlobalScopeClientImpl.cpp
diff --git a/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp b/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
index 3f449e4293283dba8231c1a35c462e9b6b702648..6bc9c41715b8469fa8146e2afbe464c41889dc76 100644
--- a/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
+++ b/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
@@ -98,6 +98,11 @@ void ServiceWorkerGlobalScopeClientImpl::postMessageToClient(int clientID, const
m_client.postMessageToClient(clientID, message, webChannels.leakPtr());
}
+void ServiceWorkerGlobalScopeClientImpl::skipWaiting(WebCallback* callback)
+{
+ m_client.skipWaiting(callback);
+}
+
ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServiceWorkerContextClient& client)
: m_client(client)
{

Powered by Google App Engine
This is Rietveld 408576698