| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual void UpdateItemInPersistentStore( | 79 virtual void UpdateItemInPersistentStore( |
| 80 content::DownloadItem* item) OVERRIDE; | 80 content::DownloadItem* item) OVERRIDE; |
| 81 virtual void UpdatePathForItemInPersistentStore( | 81 virtual void UpdatePathForItemInPersistentStore( |
| 82 content::DownloadItem* item, | 82 content::DownloadItem* item, |
| 83 const FilePath& new_path) OVERRIDE; | 83 const FilePath& new_path) OVERRIDE; |
| 84 virtual void RemoveItemFromPersistentStore( | 84 virtual void RemoveItemFromPersistentStore( |
| 85 content::DownloadItem* item) OVERRIDE; | 85 content::DownloadItem* item) OVERRIDE; |
| 86 virtual void RemoveItemsFromPersistentStoreBetween( | 86 virtual void RemoveItemsFromPersistentStoreBetween( |
| 87 base::Time remove_begin, | 87 base::Time remove_begin, |
| 88 base::Time remove_end) OVERRIDE; | 88 base::Time remove_end) OVERRIDE; |
| 89 virtual void GetSaveDir(content::WebContents* web_contents, | 89 virtual void GetSaveDir(content::BrowserContext* browser_context, |
| 90 FilePath* website_save_dir, | 90 FilePath* website_save_dir, |
| 91 FilePath* download_save_dir, | 91 FilePath* download_save_dir, |
| 92 bool* skip_dir_check) OVERRIDE; | 92 bool* skip_dir_check) OVERRIDE; |
| 93 virtual void ChooseSavePath( | 93 virtual void ChooseSavePath( |
| 94 content::WebContents* web_contents, | 94 content::WebContents* web_contents, |
| 95 const FilePath& suggested_path, | 95 const FilePath& suggested_path, |
| 96 const FilePath::StringType& default_extension, | 96 const FilePath::StringType& default_extension, |
| 97 bool can_save_as_complete, | 97 bool can_save_as_complete, |
| 98 const content::SavePackagePathPickedCallback& callback) OVERRIDE; | 98 const content::SavePackagePathPickedCallback& callback) OVERRIDE; |
| 99 | 99 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 #endif | 257 #endif |
| 258 | 258 |
| 259 // The directory most recently chosen by the user in response to a Save As | 259 // The directory most recently chosen by the user in response to a Save As |
| 260 // dialog for a regular download. | 260 // dialog for a regular download. |
| 261 FilePath last_download_path_; | 261 FilePath last_download_path_; |
| 262 | 262 |
| 263 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); | 263 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ | 266 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ |
| OLD | NEW |