diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 00:32:01 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 00:32:01 +0000 |
commit | 89afcea333db036bc6710cd8a6ec90b388eee84a (patch) | |
tree | b0889227bdb1e7768e868911eaa64e45b40745ad /chrome/browser/download/save_package.h | |
parent | b1f498e33399652b128d9801ad7d96bbeee4ba87 (diff) | |
download | chromium_src-89afcea333db036bc6710cd8a6ec90b388eee84a.zip chromium_src-89afcea333db036bc6710cd8a6ec90b388eee84a.tar.gz chromium_src-89afcea333db036bc6710cd8a6ec90b388eee84a.tar.bz2 |
Sixth patch in making destructors of refcounted objects private.
BUG=26749
Review URL: http://codereview.chromium.org/370001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31176 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/save_package.h')
-rw-r--r-- | chrome/browser/download/save_package.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/download/save_package.h b/chrome/browser/download/save_package.h index a20f027..4d52864 100644 --- a/chrome/browser/download/save_package.h +++ b/chrome/browser/download/save_package.h @@ -94,8 +94,6 @@ class SavePackage : public base::RefCountedThreadSafe<SavePackage>, const FilePath& file_full_path, const FilePath& directory_full_path); - ~SavePackage(); - // Initialize the SavePackage. Returns true if it initializes properly. // Need to make sure that this method must be called in the UI thread because // using g_browser_process on a non-UI thread can cause crashes during @@ -197,10 +195,14 @@ class SavePackage : public base::RefCountedThreadSafe<SavePackage>, virtual void FileSelectionCanceled(void* params); private: + friend class base::RefCountedThreadSafe<SavePackage>; + // For testing only. SavePackage(const FilePath& file_full_path, const FilePath& directory_full_path); + ~SavePackage(); + // Notes from Init() above applies here as well. void InternalInit(); |