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" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 | 12 |
13 class DownloadItem; | 13 class DownloadItem; |
14 class DownloadManager; | |
jam
2011/10/11 19:31:13
nit: not needed anymore
Randy Smith (Not in Mondays)
2011/10/11 20:28:27
Done.
| |
14 class FilePath; | 15 class FilePath; |
15 class TabContents; | 16 class TabContents; |
16 class SavePackage; | 17 class SavePackage; |
17 | 18 |
18 // Browser's download manager: manages all downloads and destination view. | 19 // Browser's download manager: manages all downloads and destination view. |
19 class DownloadManagerDelegate { | 20 class DownloadManagerDelegate { |
20 public: | 21 public: |
21 virtual ~DownloadManagerDelegate() {} | 22 virtual ~DownloadManagerDelegate() {} |
22 | 23 |
23 // Lets the delegate know that the download manager is shutting down. | 24 // Lets the delegate know that the download manager is shutting down. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 // Informs the delegate that the progress of downloads has changed. | 106 // Informs the delegate that the progress of downloads has changed. |
106 virtual void DownloadProgressUpdated() = 0; | 107 virtual void DownloadProgressUpdated() = 0; |
107 | 108 |
108 protected: | 109 protected: |
109 DownloadManagerDelegate() {} | 110 DownloadManagerDelegate() {} |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(DownloadManagerDelegate); | 112 DISALLOW_COPY_AND_ASSIGN(DownloadManagerDelegate); |
112 }; | 113 }; |
113 | 114 |
114 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_ | 115 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_ |
OLD | NEW |