diff options
author | kkimlabs@chromium.org <kkimlabs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-14 08:07:36 +0000 |
---|---|---|
committer | kkimlabs@chromium.org <kkimlabs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-14 08:07:36 +0000 |
commit | 545d7e9191a507c65f2e50f2fd190c528a06ec1b (patch) | |
tree | 33937d9701db39acf7d84b0bb63165326f7d295f /components/enhanced_bookmarks/image_store.h | |
parent | 90de51b8ae488d888e615ad8d2eef271c200cd38 (diff) | |
download | chromium_src-545d7e9191a507c65f2e50f2fd190c528a06ec1b.zip chromium_src-545d7e9191a507c65f2e50f2fd190c528a06ec1b.tar.gz chromium_src-545d7e9191a507c65f2e50f2fd190c528a06ec1b.tar.bz2 |
Remove RefCounted from ImageStore class.
We won't be using scoped_refptr<ImageStore> so remove the unnecessary RefCounted.
BUG=68988
Review URL: https://codereview.chromium.org/283843002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/enhanced_bookmarks/image_store.h')
-rw-r--r-- | components/enhanced_bookmarks/image_store.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/components/enhanced_bookmarks/image_store.h b/components/enhanced_bookmarks/image_store.h index 33771bd..46ca138 100644 --- a/components/enhanced_bookmarks/image_store.h +++ b/components/enhanced_bookmarks/image_store.h @@ -8,8 +8,6 @@ #include <map> #include <set> -#include "base/memory/ref_counted.h" -#include "base/memory/scoped_ptr.h" #include "base/threading/thread_checker.h" #include "ui/gfx/image/image.h" @@ -17,9 +15,10 @@ class GURL; // The ImageStore keeps an image for each URL. This class is not thread safe, // and will check the thread using base::ThreadChecker, except the constructor. -class ImageStore : public base::RefCounted<ImageStore> { +class ImageStore { public: ImageStore(); + virtual ~ImageStore(); // Returns true if there is an image for this url. virtual bool HasKey(const GURL& page_url) = 0; @@ -54,13 +53,9 @@ class ImageStore : public base::RefCounted<ImageStore> { void ChangeImageURL(const GURL& from, const GURL& to); protected: - virtual ~ImageStore(); - base::ThreadChecker thread_checker_; private: - friend class base::RefCounted<ImageStore>; - DISALLOW_COPY_AND_ASSIGN(ImageStore); }; |