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

Side by Side Diff: chrome/browser/favicon_delegate.h

Issue 6672065: Support touch icon in FaviconHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only update the FAVICON data to the NavigationEntry. Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_FAVICON_DELEGATE_H__
6 #define CHROME_BROWSER_FAVICON_DELEGATE_H__
7 #pragma once
8
9 #include "chrome/browser/icon_delegate.h"
10
11 class TabContents;
12
13 class FaviconDelegate : public IconDelegate {
14 public:
15 explicit FaviconDelegate(TabContents* tab_contents);
16 virtual ~FaviconDelegate();
17
18 virtual void UpdateFaviconImageData(NavigationEntry* entry,
19 const GURL& url,
20 scoped_refptr<RefCountedMemory> data);
21
22 virtual void UpdateFaviconImageData(NavigationEntry* entry,
23 scoped_refptr<RefCountedMemory> data);
24
25 virtual void UpdateFaviconImageData(NavigationEntry* entry,
26 const SkBitmap& image);
27
28 virtual void UpdateFaviconURL(NavigationEntry* entry, const GURL& url);
29
30 // Scales the image such that either the width and/or height is 16 pixels
31 // wide. Does nothing if the image is empty.
32 virtual SkBitmap ConvertToFaviconSize(const SkBitmap& image) = 0;
33
34 virtual int GetIconSize();
35
36 private:
37 TabContents* tab_contents_;
38 };
39
40 #endif // CHROME_BROWSER_FAVICON_DELEGATE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698