OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 // Asks the user for the path to save a page. The delegate calls | 99 // Asks the user for the path to save a page. The delegate calls |
100 // SavePackage::OnPathPicked to give the answer. | 100 // SavePackage::OnPathPicked to give the answer. |
101 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, | 101 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, |
102 const FilePath& suggested_path, | 102 const FilePath& suggested_path, |
103 bool can_save_as_complete) = 0; | 103 bool can_save_as_complete) = 0; |
104 | 104 |
105 // Informs the delegate that the progress of downloads has changed. | 105 // Informs the delegate that the progress of downloads has changed. |
106 virtual void DownloadProgressUpdated() = 0; | 106 virtual void DownloadProgressUpdated() = 0; |
107 | 107 |
| 108 virtual void MarkDownloadOpened(int64 db_handle) = 0; |
| 109 |
108 protected: | 110 protected: |
109 DownloadManagerDelegate() {} | 111 DownloadManagerDelegate() {} |
110 | 112 |
111 DISALLOW_COPY_AND_ASSIGN(DownloadManagerDelegate); | 113 DISALLOW_COPY_AND_ASSIGN(DownloadManagerDelegate); |
112 }; | 114 }; |
113 | 115 |
114 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_ | 116 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_ |
OLD | NEW |