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

Side by Side Diff: chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc

Issue 11416179: Move chrome/common/favicon_url.(cc|h) into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
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 "chrome/browser/ui/ash/launcher/launcher_favicon_loader.h" 5 #include "chrome/browser/ui/ash/launcher/launcher_favicon_loader.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/favicon/favicon_download_helper.h" 8 #include "chrome/browser/favicon/favicon_download_helper.h"
9 #include "chrome/browser/favicon/favicon_download_helper_delegate.h" 9 #include "chrome/browser/favicon/favicon_download_helper_delegate.h"
10 #include "chrome/browser/ui/ash/launcher/browser_launcher_item_controller.h" 10 #include "chrome/browser/ui/ash/launcher/browser_launcher_item_controller.h"
11 #include "chrome/common/favicon_url.h"
12 #include "chrome/common/icon_messages.h" 11 #include "chrome/common/icon_messages.h"
13 #include "content/public/browser/render_view_host.h" 12 #include "content/public/browser/render_view_host.h"
14 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
15 #include "content/public/browser/web_contents_delegate.h" 14 #include "content/public/browser/web_contents_delegate.h"
15 #include "content/public/common/favicon_url.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "third_party/skia/include/core/SkBitmap.h" 17 #include "third_party/skia/include/core/SkBitmap.h"
18 18
19 using content::FaviconURL;
20
19 namespace internal { 21 namespace internal {
20 22
21 const int kMaxBitmapSize = 256; 23 const int kMaxBitmapSize = 256;
22 24
23 //////////////////////////////////////////////////////////////////////////////// 25 ////////////////////////////////////////////////////////////////////////////////
24 // FaviconBitmapHandler fetchs all bitmaps with the 'icon' (or 'shortcut icon') 26 // FaviconBitmapHandler fetchs all bitmaps with the 'icon' (or 'shortcut icon')
25 // link tag, storing the one that best matches ash::kLauncherPreferredSize. 27 // link tag, storing the one that best matches ash::kLauncherPreferredSize.
26 // These icon bitmaps are not resized and are not cached beyond the lifetime 28 // These icon bitmaps are not resized and are not cached beyond the lifetime
27 // of the class. Bitmaps larger than kMaxBitmapSize are ignored. 29 // of the class. Bitmaps larger than kMaxBitmapSize are ignored.
28 30
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 LauncherFaviconLoader::~LauncherFaviconLoader() { 170 LauncherFaviconLoader::~LauncherFaviconLoader() {
169 } 171 }
170 172
171 SkBitmap LauncherFaviconLoader::GetFavicon() const { 173 SkBitmap LauncherFaviconLoader::GetFavicon() const {
172 return favicon_handler_->bitmap(); 174 return favicon_handler_->bitmap();
173 } 175 }
174 176
175 bool LauncherFaviconLoader::HasPendingDownloads() const { 177 bool LauncherFaviconLoader::HasPendingDownloads() const {
176 return favicon_handler_->HasPendingDownloads(); 178 return favicon_handler_->HasPendingDownloads();
177 } 179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698