| 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 NotificationImageLoader_h | 5 #ifndef NotificationImageLoader_h |
| 6 #define NotificationImageLoader_h | 6 #define NotificationImageLoader_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "core/loader/ThreadableLoader.h" | 9 #include "core/loader/ThreadableLoader.h" |
| 9 #include "core/loader/ThreadableLoaderClient.h" | 10 #include "core/loader/ThreadableLoaderClient.h" |
| 10 #include "modules/ModulesExport.h" | 11 #include "modules/ModulesExport.h" |
| 11 #include "platform/SharedBuffer.h" | 12 #include "platform/SharedBuffer.h" |
| 12 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 13 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
| 14 #include "wtf/Functional.h" | 15 #include "wtf/Functional.h" |
| 15 #include "wtf/RefPtr.h" | 16 #include "wtf/RefPtr.h" |
| 16 #include <memory> | |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class ExecutionContext; | 20 class ExecutionContext; |
| 21 class KURL; | 21 class KURL; |
| 22 class ResourceError; | 22 class ResourceError; |
| 23 | 23 |
| 24 // Asynchronously downloads an image when given a url, decodes the loaded data, | 24 // Asynchronously downloads an image when given a url, decodes the loaded data, |
| 25 // and passes the bitmap to the given callback. | 25 // and passes the bitmap to the given callback. |
| 26 class MODULES_EXPORT NotificationImageLoader final | 26 class MODULES_EXPORT NotificationImageLoader final |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 bool m_stopped; | 66 bool m_stopped; |
| 67 double m_startTime; | 67 double m_startTime; |
| 68 RefPtr<SharedBuffer> m_data; | 68 RefPtr<SharedBuffer> m_data; |
| 69 std::unique_ptr<ImageCallback> m_imageCallback; | 69 std::unique_ptr<ImageCallback> m_imageCallback; |
| 70 Member<ThreadableLoader> m_threadableLoader; | 70 Member<ThreadableLoader> m_threadableLoader; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace blink | 73 } // namespace blink |
| 74 | 74 |
| 75 #endif // NotificationImageLoader_h | 75 #endif // NotificationImageLoader_h |
| OLD | NEW |