| 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 CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 virtual void RemoveItemsFromPersistentStoreBetween( | 102 virtual void RemoveItemsFromPersistentStoreBetween( |
| 103 base::Time remove_begin, | 103 base::Time remove_begin, |
| 104 base::Time remove_end) {} | 104 base::Time remove_end) {} |
| 105 | 105 |
| 106 // Retrieve the directories to save html pages and downloads to. | 106 // Retrieve the directories to save html pages and downloads to. |
| 107 virtual void GetSaveDir(WebContents* web_contents, | 107 virtual void GetSaveDir(WebContents* web_contents, |
| 108 FilePath* website_save_dir, | 108 FilePath* website_save_dir, |
| 109 FilePath* download_save_dir) {} | 109 FilePath* download_save_dir) {} |
| 110 | 110 |
| 111 // Asks the user for the path to save a page. The delegate calls the callback | 111 // Asks the user for the path to save a page. The delegate calls the callback |
| 112 // to give the answer. | 112 // to give the answer, except on ChromeOS, where the saving is done by |
| 113 // SavePackageFilePickerChromeOS. TODO(achuith): Move ChromeOS save |
| 114 // functionality to SavePackage. |
| 113 virtual void ChooseSavePath(WebContents* web_contents, | 115 virtual void ChooseSavePath(WebContents* web_contents, |
| 114 const FilePath& suggested_path, | 116 const FilePath& suggested_path, |
| 115 const FilePath::StringType& default_extension, | 117 const FilePath::StringType& default_extension, |
| 116 bool can_save_as_complete, | 118 bool can_save_as_complete, |
| 117 SaveFilePathPickedCallback callback) {} | 119 SaveFilePathPickedCallback callback) {} |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 } // namespace content | 122 } // namespace content |
| 121 | 123 |
| 122 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ | 124 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ |
| OLD | NEW |