diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-07 01:56:19 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-07 01:56:19 +0000 |
commit | e6e6ba4925feed48fbbd0568b07d8ccb6569eeee (patch) | |
tree | fc2fc1bc4d4a56fb413709a977b6ba42ab27af46 /chrome/browser/thumbnail_store.h | |
parent | daefca3e87d6d36f0e6a58e3b0ff60917f285acb (diff) | |
download | chromium_src-e6e6ba4925feed48fbbd0568b07d8ccb6569eeee.zip chromium_src-e6e6ba4925feed48fbbd0568b07d8ccb6569eeee.tar.gz chromium_src-e6e6ba4925feed48fbbd0568b07d8ccb6569eeee.tar.bz2 |
Ninth patch in making destructors of refcounted objects private.
BUG=26749
Review URL: http://codereview.chromium.org/372013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31357 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 d54c5d4..ed95a02 100644 --- a/chrome/browser/thumbnail_store.h +++ b/chrome/browser/thumbnail_store.h @@ -39,7 +39,6 @@ class ThumbnailStore : public base::RefCountedThreadSafe<ThumbnailStore>, public NotificationObserver { public: ThumbnailStore(); - ~ThumbnailStore(); // Must be called before {Set,Get}PageThumbnail. |db_name| is the location // of an existing ThumbnailStore database or where to create a new one. @@ -63,12 +62,15 @@ class ThumbnailStore : public base::RefCountedThreadSafe<ThumbnailStore>, void Shutdown(); private: + friend class base::RefCountedThreadSafe<ThumbnailStore>; FRIEND_TEST(ThumbnailStoreTest, RetrieveFromCache); FRIEND_TEST(ThumbnailStoreTest, RetrieveFromDisk); FRIEND_TEST(ThumbnailStoreTest, UpdateThumbnail); FRIEND_TEST(ThumbnailStoreTest, FollowRedirects); friend class ThumbnailStoreTest; + ~ThumbnailStore(); + struct CacheEntry { scoped_refptr<RefCountedBytes> data_; ThumbnailScore score_; |