| 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 |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <unordered_map> | 13 #include <unordered_map> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/id_map.h" | 16 #include "base/id_map.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "content/child/notifications/notification_dispatcher.h" | 19 #include "content/child/notifications/notification_dispatcher.h" |
| 20 #include "content/common/platform_notification_messages.h" | 20 #include "content/common/platform_notification_messages.h" |
| 21 #include "content/public/child/worker_thread.h" | 21 #include "content/public/child/worker_thread.h" |
| 22 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onManager.h" | 22 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onManager.h" |
| 23 #include "url/gurl.h" |
| 23 | 24 |
| 24 namespace content { | 25 namespace content { |
| 25 | 26 |
| 26 struct NotificationResources; | 27 struct NotificationResources; |
| 27 struct PlatformNotificationData; | 28 struct PlatformNotificationData; |
| 28 class ThreadSafeSender; | 29 class ThreadSafeSender; |
| 29 | 30 |
| 30 class NotificationManager : public blink::WebNotificationManager, | 31 class NotificationManager : public blink::WebNotificationManager, |
| 31 public WorkerThread::Observer { | 32 public WorkerThread::Observer { |
| 32 public: | 33 public: |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 106 |
| 106 // Map to store the delegate associated with a notification request Id. | 107 // Map to store the delegate associated with a notification request Id. |
| 107 std::unordered_map<int, ActiveNotificationData> active_page_notifications_; | 108 std::unordered_map<int, ActiveNotificationData> active_page_notifications_; |
| 108 | 109 |
| 109 DISALLOW_COPY_AND_ASSIGN(NotificationManager); | 110 DISALLOW_COPY_AND_ASSIGN(NotificationManager); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 } // namespace content | 113 } // namespace content |
| 113 | 114 |
| 114 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ | 115 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |