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

Unified Diff: content/shell/shell_download_manager_delegate.h

Issue 10867060: Move some download tests to content from chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments. Created 8 years, 4 months 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/content_tests.gypi ('k') | content/shell/shell_download_manager_delegate.cc » ('j') | 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 360817772839bd2f50572ef69b918591aa0d9c7f..e201025ad5492d7d3e1d06aab39bf78b74ccb6c0 100644
--- a/content/shell/shell_download_manager_delegate.h
+++ b/content/shell/shell_download_manager_delegate.h
@@ -25,6 +25,11 @@ class ShellDownloadManagerDelegate
virtual bool DetermineDownloadTarget(
DownloadItem* download,
const DownloadTargetCallback& callback) OVERRIDE;
+ virtual void AddItemToPersistentStore(DownloadItem* item) OVERRIDE;
+
+ // Inhibits prompting and sets the default download path.
+ void SetDownloadBehaviorForTesting(
+ const FilePath& default_download_path);
private:
friend class base::RefCountedThreadSafe<ShellDownloadManagerDelegate>;
@@ -33,12 +38,19 @@ class ShellDownloadManagerDelegate
void GenerateFilename(int32 download_id,
const DownloadTargetCallback& callback,
- const FilePath& generated_name);
+ const FilePath& generated_name,
+ const FilePath& suggested_directory);
+ void OnDownloadPathGenerated(int32 download_id,
+ const DownloadTargetCallback& callback,
+ const FilePath& suggested_path);
void ChooseDownloadPath(int32 download_id,
const DownloadTargetCallback& callback,
const FilePath& suggested_path);
DownloadManager* download_manager_;
+ FilePath default_download_path_;
+ bool suppress_prompting_;
+ int64 last_download_db_handle_;
DISALLOW_COPY_AND_ASSIGN(ShellDownloadManagerDelegate);
};
« no previous file with comments | « content/content_tests.gypi ('k') | content/shell/shell_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698