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

Unified Diff: Source/modules/push_messaging/ServiceWorkerGlobalScopePush.h

Issue 285403002: Push API: define push event on Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add webexposed. Created 6 years, 6 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/push_messaging/ServiceWorkerGlobalScopePush.h
diff --git a/Source/modules/push_messaging/ServiceWorkerGlobalScopePush.h b/Source/modules/push_messaging/ServiceWorkerGlobalScopePush.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c92682f076c75a84643c1a8470b539e1681f33e
--- /dev/null
+++ b/Source/modules/push_messaging/ServiceWorkerGlobalScopePush.h
@@ -0,0 +1,19 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ServiceWorkerGlobalScopePush_h
+#define ServiceWorkerGlobalScopePush_h
+
+#include "core/events/EventTarget.h"
+
+namespace WebCore {
+
+class ServiceWorkerGlobalScopePush {
+public:
+ DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(push);
+};
+
+} // namespace WebCore
+
+#endif // ServiceWorkerGlobalScopePush_h

Powered by Google App Engine
This is Rietveld 408576698