diff options
author | meelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 22:56:46 +0000 |
---|---|---|
committer | meelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 22:56:46 +0000 |
commit | 2a58420b7c51fc7649d88b475a324385683c4106 (patch) | |
tree | 9e5d3a16e9ebc36d6c39828bcd000c18ebc9907e /chrome/browser/thumbnail_store.h | |
parent | 0d63354d16ebf48e0fcd105db1fc7e421ba9b3fe (diff) | |
download | chromium_src-2a58420b7c51fc7649d88b475a324385683c4106.zip chromium_src-2a58420b7c51fc7649d88b475a324385683c4106.tar.gz chromium_src-2a58420b7c51fc7649d88b475a324385683c4106.tar.bz2 |
WriteThumbnailToDisk runs on a bg thread so it cannot access the cache_ directly.
Instead, pass the data to be written to disk so no cache_ lookups are necessary.
Review URL: http://codereview.chromium.org/149105
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19435 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/thumbnail_store.h')
-rw-r--r-- | chrome/browser/thumbnail_store.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/thumbnail_store.h b/chrome/browser/thumbnail_store.h index 40e6033..5c6bfe4 100644 --- a/chrome/browser/thumbnail_store.h +++ b/chrome/browser/thumbnail_store.h @@ -117,7 +117,9 @@ class ThumbnailStore : public base::RefCountedThreadSafe<ThumbnailStore> { void OnDiskDataAvailable(ThumbnailStore::Cache* cache); // Write thumbnail data to disk for a given url. - bool WriteThumbnailToDisk(const GURL& url) const; + bool WriteThumbnailToDisk(const GURL& url, + scoped_refptr<RefCountedBytes> data, + const ThumbnailScore& score) const; // Pack the given ThumbnailScore into the given Pickle. void PackScore(const ThumbnailScore& score, Pickle* packed) const; |