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

Side by Side Diff: components/favicon/core/large_icon_service.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/large_icon_service.h" 5 #include "components/favicon/core/large_icon_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "base/task_runner.h" 13 #include "base/task_runner.h"
13 #include "base/threading/sequenced_worker_pool.h" 14 #include "base/threading/sequenced_worker_pool.h"
14 #include "components/favicon/core/favicon_service.h" 15 #include "components/favicon/core/favicon_service.h"
15 #include "components/favicon_base/fallback_icon_style.h" 16 #include "components/favicon_base/fallback_icon_style.h"
16 #include "components/favicon_base/favicon_types.h" 17 #include "components/favicon_base/favicon_types.h"
17 #include "skia/ext/image_operations.h" 18 #include "skia/ext/image_operations.h"
18 #include "ui/gfx/codec/png_codec.h" 19 #include "ui/gfx/codec/png_codec.h"
19 #include "ui/gfx/geometry/size.h" 20 #include "ui/gfx/geometry/size.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // GetLargestRawFaviconForPageURL. Add the logic required to select the best 194 // GetLargestRawFaviconForPageURL. Add the logic required to select the best
194 // possible large icon. Also add logic to fetch-on-demand when the URL of 195 // possible large icon. Also add logic to fetch-on-demand when the URL of
195 // a large icon is known but its bitmap is not available. 196 // a large icon is known but its bitmap is not available.
196 return favicon_service_->GetLargestRawFaviconForPageURL( 197 return favicon_service_->GetLargestRawFaviconForPageURL(
197 page_url, large_icon_types_, min_source_size_in_pixel, 198 page_url, large_icon_types_, min_source_size_in_pixel,
198 base::Bind(&LargeIconWorker::OnIconLookupComplete, worker), 199 base::Bind(&LargeIconWorker::OnIconLookupComplete, worker),
199 tracker); 200 tracker);
200 } 201 }
201 202
202 } // namespace favicon 203 } // namespace favicon
OLDNEW
« no previous file with comments | « components/favicon/core/large_icon_service.h ('k') | components/favicon/core/large_icon_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698