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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/favicon_delegate.h
diff --git a/chrome/browser/favicon_delegate.h b/chrome/browser/favicon_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee229cd683c14b988be2d0432b358b949016bab4
--- /dev/null
+++ b/chrome/browser/favicon_delegate.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_FAVICON_DELEGATE_H__
+#define CHROME_BROWSER_FAVICON_DELEGATE_H__
+#pragma once
+
+#include "chrome/browser/icon_delegate.h"
+
+class TabContents;
+
+class FaviconDelegate : public IconDelegate {
+ public:
+ explicit FaviconDelegate(TabContents* tab_contents);
+ virtual ~FaviconDelegate();
+
+ virtual void UpdateFaviconImageData(NavigationEntry* entry,
+ const GURL& url,
+ scoped_refptr<RefCountedMemory> data);
+
+ virtual void UpdateFaviconImageData(NavigationEntry* entry,
+ scoped_refptr<RefCountedMemory> data);
+
+ virtual void UpdateFaviconImageData(NavigationEntry* entry,
+ const SkBitmap& image);
+
+ virtual void UpdateFaviconURL(NavigationEntry* entry, const GURL& url);
+
+ // Scales the image such that either the width and/or height is 16 pixels
+ // wide. Does nothing if the image is empty.
+ virtual SkBitmap ConvertToFaviconSize(const SkBitmap& image) = 0;
+
+ virtual int GetIconSize();
+
+ private:
+ TabContents* tab_contents_;
+};
+
+#endif // CHROME_BROWSER_FAVICON_DELEGATE_H__

Powered by Google App Engine
This is Rietveld 408576698