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

Unified Diff: public/platform/WebCallbacks.h

Issue 658723003: Blink implementation of PushManager#hasPermission() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Layout test Created 6 years, 2 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/modules/push_messaging/PushPermissionCallback.cpp ('k') | public/platform/WebPushClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebCallbacks.h
diff --git a/public/platform/WebCallbacks.h b/public/platform/WebCallbacks.h
index 20cf3bbaa401d3e9122c0ab18a1d7052eeb68495..eaad1f1be5cf40d3363aa15dad60c6b026fb8bf7 100644
--- a/public/platform/WebCallbacks.h
+++ b/public/platform/WebCallbacks.h
@@ -49,6 +49,15 @@ public:
virtual void onError(T*) { };
};
+
+template<typename S>
+class WebCallbacks<S, void> {
+public:
+ virtual ~WebCallbacks() { };
+ virtual void onSuccess(S*) { };
+ virtual void onError() { };
+};
+
} // namespace blink
#endif
« no previous file with comments | « Source/modules/push_messaging/PushPermissionCallback.cpp ('k') | public/platform/WebPushClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698