| 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::vector<GURL>& url_chain, | 145 const std::vector<GURL>& url_chain, |
| 146 const GURL& referrer_url, | 146 const GURL& referrer_url, |
| 147 const std::string& mime_type, | 147 const std::string& mime_type, |
| 148 const std::string& original_mime_type, | 148 const std::string& original_mime_type, |
| 149 const base::Time& start_time, | 149 const base::Time& start_time, |
| 150 const base::Time& end_time, | 150 const base::Time& end_time, |
| 151 const std::string& etag, | 151 const std::string& etag, |
| 152 const std::string& last_modified, | 152 const std::string& last_modified, |
| 153 int64_t received_bytes, | 153 int64_t received_bytes, |
| 154 int64_t total_bytes, | 154 int64_t total_bytes, |
| 155 const std::string& hash, |
| 155 DownloadItem::DownloadState state, | 156 DownloadItem::DownloadState state, |
| 156 DownloadDangerType danger_type, | 157 DownloadDangerType danger_type, |
| 157 DownloadInterruptReason interrupt_reason, | 158 DownloadInterruptReason interrupt_reason, |
| 158 bool opened) = 0; | 159 bool opened) = 0; |
| 159 | 160 |
| 160 // The number of in progress (including paused) downloads. | 161 // The number of in progress (including paused) downloads. |
| 161 // Performance note: this loops over all items. If profiling finds that this | 162 // Performance note: this loops over all items. If profiling finds that this |
| 162 // is too slow, use an AllDownloadItemNotifier to count in-progress items. | 163 // is too slow, use an AllDownloadItemNotifier to count in-progress items. |
| 163 virtual int InProgressCount() const = 0; | 164 virtual int InProgressCount() const = 0; |
| 164 | 165 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 176 virtual void CheckForHistoryFilesRemoval() = 0; | 177 virtual void CheckForHistoryFilesRemoval() = 0; |
| 177 | 178 |
| 178 // Get the download item for |id| if present, no matter what type of download | 179 // Get the download item for |id| if present, no matter what type of download |
| 179 // it is or state it's in. | 180 // it is or state it's in. |
| 180 virtual DownloadItem* GetDownload(uint32_t id) = 0; | 181 virtual DownloadItem* GetDownload(uint32_t id) = 0; |
| 181 }; | 182 }; |
| 182 | 183 |
| 183 } // namespace content | 184 } // namespace content |
| 184 | 185 |
| 185 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 186 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |