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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp

Issue 224333003: Blink side of requestSyncEvents() function. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Optional bool is now defaulted to undefined/false 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/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
index b676da217e784101218d02a08fa81fe58f80ee80..e4d2004a94d7697c86585e066e076adf0ad4e162 100644
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
@@ -33,6 +33,7 @@
#include "bindings/v8/ScriptObject.h"
#include "core/workers/WorkerClients.h"
#include "core/workers/WorkerThreadStartupData.h"
+#include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
#include "modules/serviceworkers/ServiceWorkerThread.h"
#include "platform/weborigin/KURL.h"
#include "wtf/CurrentTime.h"
@@ -67,4 +68,10 @@ void ServiceWorkerGlobalScope::trace(Visitor* visitor)
WorkerGlobalScope::trace(visitor);
}
+void ServiceWorkerGlobalScope::requestSyncEvents(ExecutionContext* context, bool requested, const Dictionary&)
+{
+ ServiceWorkerGlobalScopeClient* client = ServiceWorkerGlobalScopeClient::from(context);
+ client->requestSyncEvents(0, requested);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerGlobalScope.h ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698