| OLD | NEW |
| 1 // Copyright (c) 2011 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" |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. |
| 113 virtual void ChooseSavePath(WebContents* web_contents, | 113 virtual void ChooseSavePath(WebContents* web_contents, |
| 114 const FilePath& suggested_path, | 114 const FilePath& suggested_path, |
| 115 const FilePath::StringType& default_extension, | 115 const FilePath::StringType& default_extension, |
| 116 bool can_save_as_complete, | 116 bool can_save_as_complete, |
| 117 SaveFilePathPickedCallback callback) {} | 117 SaveFilePathPickedCallback callback) {} |
| 118 | |
| 119 // Informs the delegate that the progress of downloads has changed. | |
| 120 virtual void DownloadProgressUpdated() {} | |
| 121 }; | 118 }; |
| 122 | 119 |
| 123 } // namespace content | 120 } // namespace content |
| 124 | 121 |
| 125 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ | 122 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ |
| OLD | NEW |