OLD | NEW |
---|---|
(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 { | |
Mike West
2014/10/27 15:32:11
I don't think you need a whole class for this. Wha
Miguel Garcia
2014/10/28 11:07:00
Peter had the same comment, in the end we agreed t
Mike West
2014/10/28 11:23:35
Easier is relative. Introducing another callback t
| |
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; | |
Mike West
2014/10/28 11:23:35
Are you sure you're not going to need to pass any
Miguel Garcia
2014/10/28 13:59:21
So right now the spec does not really pass any arg
| |
23 }; | |
24 | |
25 } // namespace blink | |
26 #endif // WebPushPermissionCallback_h | |
OLD | NEW |