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

Side by Side Diff: public/platform/WebPushPermissionCallback.h

Issue 658723003: Blink implementation of PushManager#hasPermission() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebPushPermissionCallback_h
6 #define WebPushPermissionCallback_h
7
8 #include "WebPushPermissionStatus.h"
9
10 // Interface to be used by the embedder in order
11 // to inform Blink when once the permission status for push has been checked.
12 namespace blink {
13
14 class WebPushPermissionCallback {
Peter Beverloo 2014/10/23 11:33:37 You can replace this entire class by including pub
Miguel Garcia 2014/10/23 13:59:52 As discussed offline, the template expands to onSu
15 public:
16 virtual ~WebPushPermissionCallback() { }
17
18 // Called if the embedder is able to check the status of the push permission .
19 virtual void onSuccess(WebPushPermissionStatus) = 0;
20
21 // Called if for some reason the status of the push permission cannot be che cked.
22 virtual void onError() = 0;
23 };
24
25 } // namespace blink
26 #endif // WebPushPermissionCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698