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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void show( | 44 void show( |
45 const blink::WebSecurityOrigin& origin, | 45 const blink::WebSecurityOrigin& origin, |
46 const blink::WebNotificationData& notification_data, | 46 const blink::WebNotificationData& notification_data, |
47 std::unique_ptr<blink::WebNotificationResources> notification_resources, | 47 std::unique_ptr<blink::WebNotificationResources> notification_resources, |
48 blink::WebNotificationDelegate* delegate) override; | 48 blink::WebNotificationDelegate* delegate) override; |
49 void showPersistent( | 49 void showPersistent( |
50 const blink::WebSecurityOrigin& origin, | 50 const blink::WebSecurityOrigin& origin, |
51 const blink::WebNotificationData& notification_data, | 51 const blink::WebNotificationData& notification_data, |
52 std::unique_ptr<blink::WebNotificationResources> notification_resources, | 52 std::unique_ptr<blink::WebNotificationResources> notification_resources, |
53 blink::WebServiceWorkerRegistration* service_worker_registration, | 53 blink::WebServiceWorkerRegistration* service_worker_registration, |
54 blink::WebNotificationShowCallbacks* callbacks) override; | 54 std::unique_ptr<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 std::unique_ptr<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 const blink::WebString& tag, | 61 const blink::WebString& tag, |
62 const blink::WebString& notification_id) override; | 62 const blink::WebString& notification_id) override; |
63 void notifyDelegateDestroyed( | 63 void notifyDelegateDestroyed( |
64 blink::WebNotificationDelegate* delegate) override; | 64 blink::WebNotificationDelegate* delegate) override; |
65 | 65 |
66 // Called by the NotificationDispatcher. | 66 // Called by the NotificationDispatcher. |
67 bool OnMessageReceived(const IPC::Message& message); | 67 bool OnMessageReceived(const IPC::Message& message); |
68 | 68 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 // Map to store the delegate associated with a notification request Id. | 106 // Map to store the delegate associated with a notification request Id. |
107 std::unordered_map<int, ActiveNotificationData> active_page_notifications_; | 107 std::unordered_map<int, ActiveNotificationData> active_page_notifications_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(NotificationManager); | 109 DISALLOW_COPY_AND_ASSIGN(NotificationManager); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace content | 112 } // namespace content |
113 | 113 |
114 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ | 114 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ |
OLD | NEW |