Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: third_party/WebKit/Source/modules/notifications/NotificationImageLoader.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 7 #include <memory>
8 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 #include "platform/Histogram.h" 9 #include "platform/Histogram.h"
10 #include "platform/image-decoders/ImageDecoder.h" 10 #include "platform/image-decoders/ImageDecoder.h"
11 #include "platform/image-decoders/ImageFrame.h" 11 #include "platform/image-decoders/ImageFrame.h"
12 #include "platform/loader/fetch/ResourceError.h" 12 #include "platform/loader/fetch/ResourceError.h"
13 #include "platform/loader/fetch/ResourceLoadPriority.h" 13 #include "platform/loader/fetch/ResourceLoadPriority.h"
14 #include "platform/loader/fetch/ResourceLoaderOptions.h" 14 #include "platform/loader/fetch/ResourceLoaderOptions.h"
15 #include "platform/loader/fetch/ResourceRequest.h" 15 #include "platform/loader/fetch/ResourceRequest.h"
16 #include "platform/weborigin/KURL.h" 16 #include "platform/weborigin/KURL.h"
17 #include "platform/wtf/CurrentTime.h"
18 #include "platform/wtf/Threading.h"
17 #include "public/platform/WebURLRequest.h" 19 #include "public/platform/WebURLRequest.h"
18 #include "public/platform/modules/notifications/WebNotificationConstants.h" 20 #include "public/platform/modules/notifications/WebNotificationConstants.h"
19 #include "skia/ext/image_operations.h" 21 #include "skia/ext/image_operations.h"
20 #include "wtf/CurrentTime.h"
21 #include "wtf/Threading.h"
22 22
23 #define NOTIFICATION_PER_TYPE_HISTOGRAM_COUNTS(metric, type_name, value, max) \ 23 #define NOTIFICATION_PER_TYPE_HISTOGRAM_COUNTS(metric, type_name, value, max) \
24 case NotificationImageLoader::Type::k##type_name: { \ 24 case NotificationImageLoader::Type::k##type_name: { \
25 DEFINE_THREAD_SAFE_STATIC_LOCAL( \ 25 DEFINE_THREAD_SAFE_STATIC_LOCAL( \
26 CustomCountHistogram, metric##type_name##Histogram, \ 26 CustomCountHistogram, metric##type_name##Histogram, \
27 new CustomCountHistogram("Notifications." #metric "." #type_name, \ 27 new CustomCountHistogram("Notifications." #metric "." #type_name, \
28 1 /* min */, max, 50 /* buckets */)); \ 28 1 /* min */, max, 50 /* buckets */)); \
29 metric##type_name##Histogram.Count(value); \ 29 metric##type_name##Histogram.Count(value); \
30 break; \ 30 break; \
31 } 31 }
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 void NotificationImageLoader::RunCallbackWithEmptyBitmap() { 192 void NotificationImageLoader::RunCallbackWithEmptyBitmap() {
193 // If this has been stopped it is not desirable to trigger further work, 193 // If this has been stopped it is not desirable to trigger further work,
194 // there is a shutdown of some sort in progress. 194 // there is a shutdown of some sort in progress.
195 if (stopped_) 195 if (stopped_)
196 return; 196 return;
197 197
198 (*image_callback_)(SkBitmap()); 198 (*image_callback_)(SkBitmap());
199 } 199 }
200 200
201 } // namespace blink 201 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698