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/jumplist.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/jumplist.h')
-rw-r--r-- | chrome/browser/jumplist.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/jumplist.h b/chrome/browser/jumplist.h index 5ba7e04..9d9d49b 100644 --- a/chrome/browser/jumplist.h +++ b/chrome/browser/jumplist.h @@ -45,7 +45,7 @@ class ShellLinkItem : public base::RefCountedThreadSafe<ShellLinkItem> { const std::wstring& title() const { return title_; } const std::wstring& icon() const { return icon_; } int index() const { return index_; } - scoped_refptr<RefCountedBytes> data() const { return data_; } + scoped_refptr<RefCountedMemory> data() const { return data_; } void SetArguments(const std::wstring& arguments) { arguments_ = arguments; @@ -61,7 +61,7 @@ class ShellLinkItem : public base::RefCountedThreadSafe<ShellLinkItem> { favicon_ = favicon; } - void SetIconData(scoped_refptr<RefCountedBytes> data) { + void SetIconData(scoped_refptr<RefCountedMemory> data) { data_ = data; } @@ -73,7 +73,7 @@ class ShellLinkItem : public base::RefCountedThreadSafe<ShellLinkItem> { std::wstring arguments_; std::wstring title_; std::wstring icon_; - scoped_refptr<RefCountedBytes> data_; + scoped_refptr<RefCountedMemory> data_; int index_; bool favicon_; @@ -159,7 +159,7 @@ class JumpList : public TabRestoreService::Observer { // decompresses collected fav icons and updates a JumpList. void OnFavIconDataAvailable(HistoryService::Handle handle, bool know_favicon, - scoped_refptr<RefCountedBytes> data, + scoped_refptr<RefCountedMemory> data, bool expired, GURL icon_url); |