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 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 const SavePackagePathPickedCallback& callback) { | 117 const SavePackagePathPickedCallback& callback) { |
118 } | 118 } |
119 | 119 |
| 120 // Opens the file associated with this download. |
| 121 virtual void OpenDownload(DownloadItem* download) {} |
| 122 |
| 123 // Shows the download via the OS shell. |
| 124 virtual void ShowDownloadInShell(DownloadItem* download) {} |
| 125 |
120 protected: | 126 protected: |
121 virtual ~DownloadManagerDelegate(); | 127 virtual ~DownloadManagerDelegate(); |
122 }; | 128 }; |
123 | 129 |
124 } // namespace content | 130 } // namespace content |
125 | 131 |
126 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ | 132 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ |
OLD | NEW |