OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/favicon/core/favicon_service.h" | 5 #include "components/favicon/core/favicon_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/hash.h" | 11 #include "base/hash.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "components/favicon/core/favicon_client.h" | 14 #include "components/favicon/core/favicon_client.h" |
15 #include "components/favicon_base/favicon_util.h" | 15 #include "components/favicon_base/favicon_util.h" |
16 #include "components/favicon_base/select_favicon_frames.h" | 16 #include "components/favicon_base/select_favicon_frames.h" |
17 #include "components/history/core/browser/history_service.h" | 17 #include "components/history/core/browser/history_service.h" |
18 #include "third_party/skia/include/core/SkBitmap.h" | 18 #include "third_party/skia/include/core/SkBitmap.h" |
19 #include "ui/gfx/codec/png_codec.h" | 19 #include "ui/gfx/codec/png_codec.h" |
20 #include "ui/gfx/favicon_size.h" | 20 #include "ui/gfx/favicon_size.h" |
21 #include "ui/gfx/image/image_skia.h" | 21 #include "ui/gfx/image/image_skia.h" |
22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
23 | 23 |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 callback.Run(favicon_base::FaviconRawBitmapResult()); | 367 callback.Run(favicon_base::FaviconRawBitmapResult()); |
368 return; | 368 return; |
369 } | 369 } |
370 | 370 |
371 bitmap_result.bitmap_data = base::RefCountedBytes::TakeVector( | 371 bitmap_result.bitmap_data = base::RefCountedBytes::TakeVector( |
372 &resized_bitmap_data); | 372 &resized_bitmap_data); |
373 callback.Run(bitmap_result); | 373 callback.Run(bitmap_result); |
374 } | 374 } |
375 | 375 |
376 } // namespace favicon | 376 } // namespace favicon |
OLD | NEW |