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 NotificationPermissionClient_h | 5 #ifndef NotificationPermissionClient_h |
6 #define NotificationPermissionClient_h | 6 #define NotificationPermissionClient_h |
7 | 7 |
8 #include "modules/notifications/NotificationPermissionCallback.h" | 8 #include "modules/notifications/NotificationPermissionCallback.h" |
9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // Requests user permission to show platform notifications from the origin | 21 // Requests user permission to show platform notifications from the origin |
22 // of the current frame. The provided callback will be ran when the user | 22 // of the current frame. The provided callback will be ran when the user |
23 // has made a decision. | 23 // has made a decision. |
24 virtual void requestPermission(ExecutionContext*, PassOwnPtr<NotificationPer
missionCallback>) = 0; | 24 virtual void requestPermission(ExecutionContext*, PassOwnPtr<NotificationPer
missionCallback>) = 0; |
25 | 25 |
26 // WillBeHeapSupplement requirements. | 26 // WillBeHeapSupplement requirements. |
27 static const char* supplementName(); | 27 static const char* supplementName(); |
28 static NotificationPermissionClient* from(ExecutionContext*); | 28 static NotificationPermissionClient* from(ExecutionContext*); |
29 }; | 29 }; |
30 | 30 |
31 void proviceNotificationPermissionClientTo(LocalFrame&, PassOwnPtrWillBeRawPtr<N
otificationPermissionClient>); | 31 void provideNotificationPermissionClientTo(LocalFrame&, PassOwnPtrWillBeRawPtr<N
otificationPermissionClient>); |
32 | 32 |
33 } // namespace blink | 33 } // namespace blink |
34 | 34 |
35 #endif // NotificationPermissionClient_h | 35 #endif // NotificationPermissionClient_h |
OLD | NEW |