| 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 #include "modules/notifications/NotificationImageLoader.h" | 5 #include "modules/notifications/NotificationImageLoader.h" |
| 6 | 6 |
| 7 #include "core/dom/ExecutionContext.h" | 7 #include "core/dom/ExecutionContext.h" |
| 8 #include "core/fetch/ResourceLoaderOptions.h" | |
| 9 #include "platform/Histogram.h" | 8 #include "platform/Histogram.h" |
| 10 #include "platform/image-decoders/ImageDecoder.h" | 9 #include "platform/image-decoders/ImageDecoder.h" |
| 11 #include "platform/image-decoders/ImageFrame.h" | 10 #include "platform/image-decoders/ImageFrame.h" |
| 11 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
| 12 #include "platform/network/ResourceError.h" | 12 #include "platform/network/ResourceError.h" |
| 13 #include "platform/network/ResourceLoadPriority.h" | 13 #include "platform/network/ResourceLoadPriority.h" |
| 14 #include "platform/network/ResourceRequest.h" | 14 #include "platform/network/ResourceRequest.h" |
| 15 #include "platform/weborigin/KURL.h" | 15 #include "platform/weborigin/KURL.h" |
| 16 #include "public/platform/WebURLRequest.h" | 16 #include "public/platform/WebURLRequest.h" |
| 17 #include "public/platform/modules/notifications/WebNotificationConstants.h" | 17 #include "public/platform/modules/notifications/WebNotificationConstants.h" |
| 18 #include "skia/ext/image_operations.h" | 18 #include "skia/ext/image_operations.h" |
| 19 #include "wtf/CurrentTime.h" | 19 #include "wtf/CurrentTime.h" |
| 20 #include "wtf/Threading.h" | 20 #include "wtf/Threading.h" |
| 21 #include <memory> | 21 #include <memory> |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 void NotificationImageLoader::runCallbackWithEmptyBitmap() { | 190 void NotificationImageLoader::runCallbackWithEmptyBitmap() { |
| 191 // If this has been stopped it is not desirable to trigger further work, | 191 // If this has been stopped it is not desirable to trigger further work, |
| 192 // there is a shutdown of some sort in progress. | 192 // there is a shutdown of some sort in progress. |
| 193 if (m_stopped) | 193 if (m_stopped) |
| 194 return; | 194 return; |
| 195 | 195 |
| 196 (*m_imageCallback)(SkBitmap()); | 196 (*m_imageCallback)(SkBitmap()); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace blink | 199 } // namespace blink |
| OLD | NEW |