OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 NotificationResourcesLoader_h | 5 #ifndef NotificationResourcesLoader_h |
6 #define NotificationResourcesLoader_h | 6 #define NotificationResourcesLoader_h |
7 | 7 |
8 #include "modules/ModulesExport.h" | 8 #include "modules/ModulesExport.h" |
9 #include "modules/notifications/NotificationImageLoader.h" | 9 #include "modules/notifications/NotificationImageLoader.h" |
10 #include "platform/heap/GarbageCollected.h" | 10 #include "platform/heap/GarbageCollected.h" |
11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
12 #include "platform/heap/HeapAllocator.h" | 12 #include "platform/heap/HeapAllocator.h" |
13 #include "platform/heap/ThreadState.h" | 13 #include "platform/heap/ThreadState.h" |
14 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
15 #include "wtf/Functional.h" | 15 #include "wtf/Functional.h" |
| 16 #include "wtf/OwnPtr.h" |
| 17 #include "wtf/PassOwnPtr.h" |
16 #include "wtf/Vector.h" | 18 #include "wtf/Vector.h" |
17 #include <memory> | 19 #include <memory> |
18 | 20 |
19 namespace blink { | 21 namespace blink { |
20 | 22 |
21 class ExecutionContext; | 23 class ExecutionContext; |
22 struct WebNotificationData; | 24 struct WebNotificationData; |
23 struct WebNotificationResources; | 25 struct WebNotificationResources; |
24 | 26 |
25 // Fetches the resources specified in a given WebNotificationData. Uses a | 27 // Fetches the resources specified in a given WebNotificationData. Uses a |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 int m_pendingRequestCount; | 69 int m_pendingRequestCount; |
68 HeapVector<Member<NotificationImageLoader>> m_imageLoaders; | 70 HeapVector<Member<NotificationImageLoader>> m_imageLoaders; |
69 SkBitmap m_icon; | 71 SkBitmap m_icon; |
70 SkBitmap m_badge; | 72 SkBitmap m_badge; |
71 Vector<SkBitmap> m_actionIcons; | 73 Vector<SkBitmap> m_actionIcons; |
72 }; | 74 }; |
73 | 75 |
74 } // namespace blink | 76 } // namespace blink |
75 | 77 |
76 #endif // NotificationResourcesLoader_h | 78 #endif // NotificationResourcesLoader_h |
OLD | NEW |