Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2072)

Unified Diff: content/shell/shell_download_manager_delegate.h

Issue 11366121: Split DownloadFile::Rename into RenameAndUniquify and RenameAndAnnotate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/test/test_file_error_injector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_download_manager_delegate.h
diff --git a/content/shell/shell_download_manager_delegate.h b/content/shell/shell_download_manager_delegate.h
index e201025ad5492d7d3e1d06aab39bf78b74ccb6c0..3d75eac15c15f15b8b208c5dcf337dd9d95ee955 100644
--- a/content/shell/shell_download_manager_delegate.h
+++ b/content/shell/shell_download_manager_delegate.h
@@ -31,10 +31,13 @@ class ShellDownloadManagerDelegate
void SetDownloadBehaviorForTesting(
const FilePath& default_download_path);
+ protected:
+ // To allow subclasses for testing.
+ virtual ~ShellDownloadManagerDelegate();
jochen (gone - plz use gerrit) 2012/11/07 21:58:48 why not just friend the test?
Randy Smith (Not in Mondays) 2012/11/07 22:24:55 Huh. My inclination is against, partially because
+
private:
friend class base::RefCountedThreadSafe<ShellDownloadManagerDelegate>;
- virtual ~ShellDownloadManagerDelegate();
void GenerateFilename(int32 download_id,
const DownloadTargetCallback& callback,
« no previous file with comments | « content/public/test/test_file_error_injector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698