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

Unified Diff: public/web/WebServiceWorkerPushEventCallback.h

Issue 285403002: Push API: define push event on Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Avoid modifying modules/serviceworkers/. Created 6 years, 7 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: public/web/WebServiceWorkerPushEventCallback.h
diff --git a/public/web/WebServiceWorkerPushEventCallback.h b/public/web/WebServiceWorkerPushEventCallback.h
new file mode 100644
index 0000000000000000000000000000000000000000..75c30210862012220dff48298c27a7b46b9095b3
--- /dev/null
+++ b/public/web/WebServiceWorkerPushEventCallback.h
@@ -0,0 +1,24 @@
+// 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 WebServiceWorkerPushEventCallback_h
+#define WebServiceWorkerPushEventCallback_h
+
+namespace blink {
+
+class WebServiceWorkerPushEventCallback {
+public:
+ // Method to be invoked after PushEvent is handled by the ServiceWorker's
+ // script context.
+ virtual void didHandlePushEvent(int eventID) const = 0;
+
+protected:
+ // This object is to be destroyed after the callback is invoked;
+ // it should not be directly destroyed.
+ virtual ~WebServiceWorkerPushEventCallback() { }
Peter Beverloo 2014/05/22 16:09:49 We don't need this destructor. You could emphasize
Michael van Ouwerkerk 2014/05/23 18:32:03 Done.
+};
+
+} // namespace blink
+
+#endif // WebServiceWorkerPushEventCallback_h
« public/web/WebServiceWorkerContextProxy.h ('K') | « public/web/WebServiceWorkerContextProxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698