| 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 WebNotificationManager_h | 5 #ifndef WebNotificationManager_h |
| 6 #define WebNotificationManager_h | 6 #define WebNotificationManager_h |
| 7 | 7 |
| 8 #include "WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" |
| 9 #include "WebNotificationPermission.h" | 9 #include "public/platform/modules/notifications/WebNotificationPermission.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 struct WebNotificationData; | 13 struct WebNotificationData; |
| 14 class WebNotificationDelegate; | 14 class WebNotificationDelegate; |
| 15 class WebSerializedOrigin; | 15 class WebSerializedOrigin; |
| 16 class WebServiceWorkerRegistration; | 16 class WebServiceWorkerRegistration; |
| 17 class WebString; | 17 class WebString; |
| 18 | 18 |
| 19 using WebNotificationShowCallbacks = WebCallbacks<void, void>; | 19 using WebNotificationShowCallbacks = WebCallbacks<void, void>; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 42 // be used by the embedder to dispatch events. | 42 // be used by the embedder to dispatch events. |
| 43 virtual void notifyDelegateDestroyed(WebNotificationDelegate*) = 0; | 43 virtual void notifyDelegateDestroyed(WebNotificationDelegate*) = 0; |
| 44 | 44 |
| 45 // Synchronously checks the permission level for the given origin. | 45 // Synchronously checks the permission level for the given origin. |
| 46 virtual WebNotificationPermission checkPermission(const WebSerializedOrigin&
) = 0; | 46 virtual WebNotificationPermission checkPermission(const WebSerializedOrigin&
) = 0; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace blink | 49 } // namespace blink |
| 50 | 50 |
| 51 #endif // WebNotificationManager_h | 51 #endif // WebNotificationManager_h |
| OLD | NEW |