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 // The DownloadManager object manages the process of downloading, including | 5 // The DownloadManager object manages the process of downloading, including |
6 // updates to the history system and providing the information for displaying | 6 // updates to the history system and providing the information for displaying |
7 // the downloads view in the Destinations tab. There is one DownloadManager per | 7 // the downloads view in the Destinations tab. There is one DownloadManager per |
8 // active browser context in Chrome. | 8 // active browser context in Chrome. |
9 // | 9 // |
10 // Download observers: | 10 // Download observers: |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 const std::string& etag, | 145 const std::string& etag, |
146 const std::string& last_modified, | 146 const std::string& last_modified, |
147 int64_t received_bytes, | 147 int64_t received_bytes, |
148 int64_t total_bytes, | 148 int64_t total_bytes, |
149 const std::string& hash, | 149 const std::string& hash, |
150 DownloadItem::DownloadState state, | 150 DownloadItem::DownloadState state, |
151 DownloadDangerType danger_type, | 151 DownloadDangerType danger_type, |
152 DownloadInterruptReason interrupt_reason, | 152 DownloadInterruptReason interrupt_reason, |
153 bool opened, | 153 bool opened, |
154 base::Time last_access_time, | 154 base::Time last_access_time, |
| 155 bool visible, |
155 const std::vector<DownloadItem::ReceivedSlice>& received_slices) = 0; | 156 const std::vector<DownloadItem::ReceivedSlice>& received_slices) = 0; |
156 | 157 |
157 // The number of in progress (including paused) downloads. | 158 // The number of in progress (including paused) downloads. |
158 // Performance note: this loops over all items. If profiling finds that this | 159 // Performance note: this loops over all items. If profiling finds that this |
159 // is too slow, use an AllDownloadItemNotifier to count in-progress items. | 160 // is too slow, use an AllDownloadItemNotifier to count in-progress items. |
160 virtual int InProgressCount() const = 0; | 161 virtual int InProgressCount() const = 0; |
161 | 162 |
162 // The number of in progress (including paused) downloads. | 163 // The number of in progress (including paused) downloads. |
163 // Performance note: this loops over all items. If profiling finds that this | 164 // Performance note: this loops over all items. If profiling finds that this |
164 // is too slow, use an AllDownloadItemNotifier to count in-progress items. | 165 // is too slow, use an AllDownloadItemNotifier to count in-progress items. |
(...skipping 14 matching lines...) Expand all Loading... |
179 // if you need to keep track of a specific download. (http://crbug.com/593020) | 180 // if you need to keep track of a specific download. (http://crbug.com/593020) |
180 virtual DownloadItem* GetDownload(uint32_t id) = 0; | 181 virtual DownloadItem* GetDownload(uint32_t id) = 0; |
181 | 182 |
182 // Get the download item for |guid|. | 183 // Get the download item for |guid|. |
183 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; | 184 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; |
184 }; | 185 }; |
185 | 186 |
186 } // namespace content | 187 } // namespace content |
187 | 188 |
188 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 189 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
OLD | NEW |