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

Unified Diff: public/platform/WebPushClient.h

Issue 152763002: DO NOT REVIEW Bindings and plumbing for push messaging API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Address some review comments. 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
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/platform/WebPushMessagingError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebPushClient.h
diff --git a/public/platform/WebPushClient.h b/public/platform/WebPushClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..cf3462c2f32a9fb235387db5c73d77039dd2291e
--- /dev/null
+++ b/public/platform/WebPushClient.h
@@ -0,0 +1,25 @@
+// 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 WebPushClient_h
+#define WebPushClient_h
+
+#include "WebString.h"
+#include "public/platform/WebCallbacks.h"
+#include "public/platform/WebPushMessagingError.h"
+
+namespace blink {
+
+class WebPushRegistration;
+
+typedef WebCallbacks<WebPushRegistration, WebPushMessagingError> WebPushRegistrationCallbacks;
+
+class WebPushClient {
+public:
+ virtual void registerPushMessaging(const WebString& channelId, WebPushRegistrationCallbacks*) = 0;
+};
+
+} // namespace blink
+
+#endif // WebPushClient_h
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/platform/WebPushMessagingError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698