Chromium Code Reviews| Index: chrome/browser/extensions/webstore_installer.h |
| diff --git a/chrome/browser/extensions/webstore_installer.h b/chrome/browser/extensions/webstore_installer.h |
| index 8d2ebb1100df00944cbd31c221b4e6797b744754..aaf95fbc18bfa620af3e3b0a938b5e5ef99e942c 100644 |
| --- a/chrome/browser/extensions/webstore_installer.h |
| +++ b/chrome/browser/extensions/webstore_installer.h |
| @@ -12,6 +12,7 @@ |
| #include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "base/values.h" |
| +#include "content/public/browser/browser_thread.h" |
| #include "content/public/browser/download_id.h" |
| #include "content/public/browser/download_item.h" |
| #include "content/public/browser/notification_observer.h" |
| @@ -29,9 +30,10 @@ class NavigationController; |
| namespace extensions { |
| // Downloads and installs extensions from the web store. |
| -class WebstoreInstaller : public content::NotificationObserver, |
| - public content::DownloadItem::Observer, |
| - public base::RefCounted<WebstoreInstaller> { |
| +class WebstoreInstaller :public content::NotificationObserver, |
|
miket_OOO
2012/08/02 15:53:55
I liked the old whitespace better.
|
| + public content::DownloadItem::Observer, |
| + public base::RefCountedThreadSafe< |
| + WebstoreInstaller, content::BrowserThread::DeleteOnUIThread> { |
| public: |
| enum Flag { |
| FLAG_NONE = 0, |
| @@ -125,7 +127,9 @@ class WebstoreInstaller : public content::NotificationObserver, |
| static void SetDownloadDirectoryForTests(FilePath* directory); |
| private: |
| - friend class base::RefCounted<WebstoreInstaller>; |
| + friend struct content::BrowserThread::DeleteOnThread< |
| + content::BrowserThread::UI>; |
| + friend class base::DeleteHelper<WebstoreInstaller>; |
| virtual ~WebstoreInstaller(); |
| // DownloadManager::DownloadUrl callback. |