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 CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ | 5 #ifndef CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ |
6 #define CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ | 6 #define CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 blink::WebNotificationShowCallbacks* callbacks) override; | 54 blink::WebNotificationShowCallbacks* callbacks) override; |
55 void getNotifications( | 55 void getNotifications( |
56 const blink::WebString& filter_tag, | 56 const blink::WebString& filter_tag, |
57 blink::WebServiceWorkerRegistration* service_worker_registration, | 57 blink::WebServiceWorkerRegistration* service_worker_registration, |
58 blink::WebNotificationGetCallbacks* callbacks) override; | 58 blink::WebNotificationGetCallbacks* callbacks) override; |
59 void close(blink::WebNotificationDelegate* delegate) override; | 59 void close(blink::WebNotificationDelegate* delegate) override; |
60 void closePersistent(const blink::WebSecurityOrigin& origin, | 60 void closePersistent(const blink::WebSecurityOrigin& origin, |
61 int64_t persistent_notification_id) override; | 61 int64_t persistent_notification_id) override; |
62 void notifyDelegateDestroyed( | 62 void notifyDelegateDestroyed( |
63 blink::WebNotificationDelegate* delegate) override; | 63 blink::WebNotificationDelegate* delegate) override; |
64 permissions::mojom::PermissionStatus checkPermission( | 64 blink::mojom::PermissionStatus checkPermission( |
65 const blink::WebSecurityOrigin& origin) override; | 65 const blink::WebSecurityOrigin& origin) override; |
66 | 66 |
67 // Called by the NotificationDispatcher. | 67 // Called by the NotificationDispatcher. |
68 bool OnMessageReceived(const IPC::Message& message); | 68 bool OnMessageReceived(const IPC::Message& message); |
69 | 69 |
70 private: | 70 private: |
71 NotificationManager(ThreadSafeSender* thread_safe_sender, | 71 NotificationManager(ThreadSafeSender* thread_safe_sender, |
72 NotificationDispatcher* notification_dispatcher); | 72 NotificationDispatcher* notification_dispatcher); |
73 | 73 |
74 // IPC message handlers. | 74 // IPC message handlers. |
(...skipping 18 matching lines...) Expand all Loading... |
93 | 93 |
94 // Map to store the delegate associated with a notification request Id. | 94 // Map to store the delegate associated with a notification request Id. |
95 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_; | 95 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(NotificationManager); | 97 DISALLOW_COPY_AND_ASSIGN(NotificationManager); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace content | 100 } // namespace content |
101 | 101 |
102 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ | 102 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ |
OLD | NEW |