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> |
| 8 |
7 #include <cmath> | 9 #include <cmath> |
8 | 10 |
9 #include "base/hash.h" | 11 #include "base/hash.h" |
10 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
11 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
12 #include "components/favicon/core/favicon_client.h" | 14 #include "components/favicon/core/favicon_client.h" |
13 #include "components/favicon_base/favicon_util.h" | 15 #include "components/favicon_base/favicon_util.h" |
14 #include "components/favicon_base/select_favicon_frames.h" | 16 #include "components/favicon_base/select_favicon_frames.h" |
15 #include "components/history/core/browser/history_service.h" | 17 #include "components/history/core/browser/history_service.h" |
16 #include "third_party/skia/include/core/SkBitmap.h" | 18 #include "third_party/skia/include/core/SkBitmap.h" |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 callback.Run(favicon_base::FaviconRawBitmapResult()); | 368 callback.Run(favicon_base::FaviconRawBitmapResult()); |
367 return; | 369 return; |
368 } | 370 } |
369 | 371 |
370 bitmap_result.bitmap_data = base::RefCountedBytes::TakeVector( | 372 bitmap_result.bitmap_data = base::RefCountedBytes::TakeVector( |
371 &resized_bitmap_data); | 373 &resized_bitmap_data); |
372 callback.Run(bitmap_result); | 374 callback.Run(bitmap_result); |
373 } | 375 } |
374 | 376 |
375 } // namespace favicon | 377 } // namespace favicon |
OLD | NEW |