| Index: content/browser/download/download_manager_impl.h
|
| diff --git a/content/browser/download/download_manager_impl.h b/content/browser/download/download_manager_impl.h
|
| index bbdd0856ac6af37fa1459019aeb5e049c9659e90..7458433b4851a91b1405e11abc35458ac21b6e49 100644
|
| --- a/content/browser/download/download_manager_impl.h
|
| +++ b/content/browser/download/download_manager_impl.h
|
| @@ -36,6 +36,7 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
|
| // Caller guarantees that |net_log| will remain valid
|
| // for the lifetime of DownloadManagerImpl (until Shutdown() is called).
|
| DownloadManagerImpl(net::NetLog* net_log, BrowserContext* browser_context);
|
| + virtual ~DownloadManagerImpl();
|
|
|
| // Implementation functions (not part of the DownloadManager interface).
|
|
|
| @@ -102,10 +103,6 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
|
| friend class DownloadManagerTest;
|
| friend class DownloadTest;
|
|
|
| - friend class base::RefCountedThreadSafe<DownloadManagerImpl>;
|
| -
|
| - virtual ~DownloadManagerImpl();
|
| -
|
| // Create a new active item based on the info. Separate from
|
| // StartDownload() for testing.
|
| DownloadItemImpl* CreateActiveItem(DownloadId id,
|
| @@ -166,6 +163,8 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
|
|
|
| net::NetLog* net_log_;
|
|
|
| + base::WeakPtrFactory<DownloadManagerImpl> weak_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
|
| };
|
|
|
|
|