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); |
}; |