diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 20:19:57 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 20:19:57 +0000 |
commit | 790879f7d6faea44ef0d13c2f7b44fe74edafa5e (patch) | |
tree | 6d0210a7594a265ba97425289f0a0ac44aabfb62 /chrome/browser/fav_icon_helper.h | |
parent | 36ea6c6f047abed672aa9af4f3071a7364142d64 (diff) | |
download | chromium_src-790879f7d6faea44ef0d13c2f7b44fe74edafa5e.zip chromium_src-790879f7d6faea44ef0d13c2f7b44fe74edafa5e.tar.gz chromium_src-790879f7d6faea44ef0d13c2f7b44fe74edafa5e.tar.bz2 |
Change so that the extension favicon is read on the UI thread since extension objects should only be accessed on the UI thread.
This also fixes erg's todo to make favicons use RefCountedMemory instead of RefCountedBytes in all places.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/1028001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/fav_icon_helper.h')
-rw-r--r-- | chrome/browser/fav_icon_helper.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/fav_icon_helper.h b/chrome/browser/fav_icon_helper.h index e5e1b23..008ba7e 100644 --- a/chrome/browser/fav_icon_helper.h +++ b/chrome/browser/fav_icon_helper.h @@ -10,7 +10,6 @@ #include "base/basictypes.h" #include "base/callback.h" -#include "base/ref_counted_memory.h" #include "base/scoped_ptr.h" #include "chrome/browser/cancelable_request.h" #include "chrome/browser/favicon_service.h" @@ -20,6 +19,7 @@ class NavigationEntry; class Profile; +class RefCountedMemory; class SkBitmap; class TabContents; @@ -120,7 +120,7 @@ class FavIconHelper : public RenderViewHostDelegate::FavIcon { // See description above class for details. void OnFavIconDataForInitialURL(FaviconService::Handle handle, bool know_favicon, - scoped_refptr<RefCountedBytes> data, + scoped_refptr<RefCountedMemory> data, bool expired, GURL icon_url); @@ -132,7 +132,7 @@ class FavIconHelper : public RenderViewHostDelegate::FavIcon { // See description above class for details. void OnFavIconData(FaviconService::Handle handle, bool know_favicon, - scoped_refptr<RefCountedBytes> data, + scoped_refptr<RefCountedMemory> data, bool expired, GURL icon_url); @@ -149,7 +149,7 @@ class FavIconHelper : public RenderViewHostDelegate::FavIcon { // If the TabContents has a delegate, it is notified of the new favicon // (INVALIDATE_FAVICON). void UpdateFavIcon(NavigationEntry* entry, - const std::vector<unsigned char>& data); + scoped_refptr<RefCountedMemory> data); void UpdateFavIcon(NavigationEntry* entry, const SkBitmap& image); // Scales the image such that either the width and/or height is 16 pixels |