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 "core/loader/ThreadableLoader.h" | 8 #include "core/loader/ThreadableLoader.h" |
9 #include "core/loader/ThreadableLoaderClient.h" | 9 #include "core/loader/ThreadableLoaderClient.h" |
10 #include "platform/SharedBuffer.h" | 10 #include "platform/SharedBuffer.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void didFinishLoading(unsigned long resourceIdentifier, double finishTime) o
verride; | 46 void didFinishLoading(unsigned long resourceIdentifier, double finishTime) o
verride; |
47 void didFail(const ResourceError&) override; | 47 void didFail(const ResourceError&) override; |
48 void didFailRedirectCheck() override; | 48 void didFailRedirectCheck() override; |
49 | 49 |
50 DEFINE_INLINE_TRACE() {} | 50 DEFINE_INLINE_TRACE() {} |
51 | 51 |
52 private: | 52 private: |
53 void runCallbackWithEmptyBitmap(); | 53 void runCallbackWithEmptyBitmap(); |
54 | 54 |
55 bool m_stopped; | 55 bool m_stopped; |
| 56 double m_startTime; |
56 RefPtr<SharedBuffer> m_data; | 57 RefPtr<SharedBuffer> m_data; |
57 OwnPtr<ImageCallback> m_imageCallback; | 58 OwnPtr<ImageCallback> m_imageCallback; |
58 OwnPtr<ThreadableLoader> m_threadableLoader; | 59 OwnPtr<ThreadableLoader> m_threadableLoader; |
59 }; | 60 }; |
60 | 61 |
61 } // namespace blink | 62 } // namespace blink |
62 | 63 |
63 #endif // NotificationImageLoader_h | 64 #endif // NotificationImageLoader_h |
OLD | NEW |