| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PushPermissionStatusCallbacks_h | 5 #ifndef PushPermissionStatusCallbacks_h |
| 6 #define PushPermissionStatusCallbacks_h | 6 #define PushPermissionStatusCallbacks_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "platform/wtf/Noncopyable.h" |
| 9 #include "public/platform/modules/push_messaging/WebPushPermissionStatus.h" | 10 #include "public/platform/modules/push_messaging/WebPushPermissionStatus.h" |
| 10 #include "public/platform/modules/push_messaging/WebPushProvider.h" | 11 #include "public/platform/modules/push_messaging/WebPushProvider.h" |
| 11 #include "wtf/Noncopyable.h" | |
| 12 | 12 |
| 13 namespace WTF { | 13 namespace WTF { |
| 14 class String; | 14 class String; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class ScriptPromiseResolver; | 19 class ScriptPromiseResolver; |
| 20 | 20 |
| 21 // Will resolve the underlying promise depending on the permission received. | 21 // Will resolve the underlying promise depending on the permission received. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 34 void OnError(const WebPushError&) override; | 34 void OnError(const WebPushError&) override; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 static WTF::String PermissionString(WebPushPermissionStatus); | 37 static WTF::String PermissionString(WebPushPermissionStatus); |
| 38 Persistent<ScriptPromiseResolver> resolver_; | 38 Persistent<ScriptPromiseResolver> resolver_; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace blink | 41 } // namespace blink |
| 42 | 42 |
| 43 #endif // PushPermissionStatusCallbacks_h | 43 #endif // PushPermissionStatusCallbacks_h |
| OLD | NEW |