OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/image_loader.h" | 5 #include "extensions/browser/image_loader.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/callback.h" | 12 #include "base/callback.h" |
11 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
12 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
13 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
14 #include "base/threading/sequenced_worker_pool.h" | 16 #include "base/threading/sequenced_worker_pool.h" |
15 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
16 #include "extensions/browser/component_extension_resource_manager.h" | 18 #include "extensions/browser/component_extension_resource_manager.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 it != image_skia_map.end(); | 324 it != image_skia_map.end(); |
323 ++it) { | 325 ++it) { |
324 it->second.MakeThreadSafe(); | 326 it->second.MakeThreadSafe(); |
325 image_family.Add(it->second); | 327 image_family.Add(it->second); |
326 } | 328 } |
327 | 329 |
328 callback.Run(image_family); | 330 callback.Run(image_family); |
329 } | 331 } |
330 | 332 |
331 } // namespace extensions | 333 } // namespace extensions |
OLD | NEW |