| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PENDING_NOTIFICATIONS_TRACKER_H_ | 5 #ifndef CONTENT_CHILD_NOTIFICATIONS_PENDING_NOTIFICATIONS_TRACKER_H_ |
| 6 #define CONTENT_CHILD_NOTIFICATIONS_PENDING_NOTIFICATIONS_TRACKER_H_ | 6 #define CONTENT_CHILD_NOTIFICATIONS_PENDING_NOTIFICATIONS_TRACKER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onManager.h" | 15 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onManager.h" |
| 16 | 16 |
| 17 class SkBitmap; | 17 class SkBitmap; |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace blink { | 23 namespace blink { |
| 24 struct WebNotificationData; | 24 struct WebNotificationData; |
| 25 class WebNotificationDelegate; | 25 class WebNotificationDelegate; |
| 26 class WebSerializedOrigin; | |
| 27 } | 26 } |
| 28 | 27 |
| 29 namespace content { | 28 namespace content { |
| 30 | 29 |
| 31 class NotificationImageLoader; | 30 class NotificationImageLoader; |
| 32 class NotificationManager; | 31 class NotificationManager; |
| 33 | 32 |
| 34 // Type definition for the callback signature which is to be invoked when the | 33 // Type definition for the callback signature which is to be invoked when the |
| 35 // resources associated with a notification have been fetched. | 34 // resources associated with a notification have been fetched. |
| 36 using NotificationResourcesFetchedCallback = | 35 using NotificationResourcesFetchedCallback = |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 std::map<blink::WebNotificationDelegate*, int> delegate_to_pending_id_map_; | 97 std::map<blink::WebNotificationDelegate*, int> delegate_to_pending_id_map_; |
| 99 | 98 |
| 100 base::WeakPtrFactory<PendingNotificationsTracker> weak_factory_; | 99 base::WeakPtrFactory<PendingNotificationsTracker> weak_factory_; |
| 101 | 100 |
| 102 DISALLOW_COPY_AND_ASSIGN(PendingNotificationsTracker); | 101 DISALLOW_COPY_AND_ASSIGN(PendingNotificationsTracker); |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 } // namespace content | 104 } // namespace content |
| 106 | 105 |
| 107 #endif // CONTENT_CHILD_NOTIFICATIONS_PENDING_NOTIFICATIONS_TRACKER_H_ | 106 #endif // CONTENT_CHILD_NOTIFICATIONS_PENDING_NOTIFICATIONS_TRACKER_H_ |
| OLD | NEW |