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

Side by Side Diff: chrome/browser/fav_icon_helper.cc

Issue 2878081: Clean up inclusion of <map>, <set>, <vector> in chrome/browser/*.h. (Closed)
Patch Set: Created 10 years, 4 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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/fav_icon_helper.h" 5 #include "chrome/browser/fav_icon_helper.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <vector>
10
9 #include "base/callback.h" 11 #include "base/callback.h"
10 #include "base/ref_counted_memory.h" 12 #include "base/ref_counted_memory.h"
11 #include "chrome/browser/profile.h" 13 #include "chrome/browser/profile.h"
12 #include "chrome/browser/renderer_host/render_view_host.h" 14 #include "chrome/browser/renderer_host/render_view_host.h"
13 #include "chrome/browser/tab_contents/navigation_controller.h" 15 #include "chrome/browser/tab_contents/navigation_controller.h"
14 #include "chrome/browser/tab_contents/navigation_entry.h" 16 #include "chrome/browser/tab_contents/navigation_entry.h"
15 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 17 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
16 #include "chrome/browser/tab_contents/tab_contents.h" 18 #include "chrome/browser/tab_contents/tab_contents.h"
17 #include "gfx/codec/png_codec.h" 19 #include "gfx/codec/png_codec.h"
18 #include "gfx/favicon_size.h" 20 #include "gfx/favicon_size.h"
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 int width = image.width(); 289 int width = image.width();
288 int height = image.height(); 290 int height = image.height();
289 if (width > 0 && height > 0) { 291 if (width > 0 && height > 0) {
290 calc_favicon_target_size(&width, &height); 292 calc_favicon_target_size(&width, &height);
291 return skia::ImageOperations::Resize( 293 return skia::ImageOperations::Resize(
292 image, skia::ImageOperations::RESIZE_LANCZOS3, 294 image, skia::ImageOperations::RESIZE_LANCZOS3,
293 width, height); 295 width, height);
294 } 296 }
295 return image; 297 return image;
296 } 298 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698