| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 const std::vector<GURL>& url_chain, | 146 const std::vector<GURL>& url_chain, |
| 147 const GURL& referrer_url, | 147 const GURL& referrer_url, |
| 148 const std::string& mime_type, | 148 const std::string& mime_type, |
| 149 const std::string& original_mime_type, | 149 const std::string& original_mime_type, |
| 150 const base::Time& start_time, | 150 const base::Time& start_time, |
| 151 const base::Time& end_time, | 151 const base::Time& end_time, |
| 152 const std::string& etag, | 152 const std::string& etag, |
| 153 const std::string& last_modified, | 153 const std::string& last_modified, |
| 154 int64_t received_bytes, | 154 int64_t received_bytes, |
| 155 int64_t total_bytes, | 155 int64_t total_bytes, |
| 156 const std::string& hash, |
| 156 DownloadItem::DownloadState state, | 157 DownloadItem::DownloadState state, |
| 157 DownloadDangerType danger_type, | 158 DownloadDangerType danger_type, |
| 158 DownloadInterruptReason interrupt_reason, | 159 DownloadInterruptReason interrupt_reason, |
| 159 bool opened) = 0; | 160 bool opened) = 0; |
| 160 | 161 |
| 161 // The number of in progress (including paused) downloads. | 162 // The number of in progress (including paused) downloads. |
| 162 // Performance note: this loops over all items. If profiling finds that this | 163 // Performance note: this loops over all items. If profiling finds that this |
| 163 // is too slow, use an AllDownloadItemNotifier to count in-progress items. | 164 // is too slow, use an AllDownloadItemNotifier to count in-progress items. |
| 164 virtual int InProgressCount() const = 0; | 165 virtual int InProgressCount() const = 0; |
| 165 | 166 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 183 // if you need to keep track of a specific download. (http://crbug.com/593020) | 184 // if you need to keep track of a specific download. (http://crbug.com/593020) |
| 184 virtual DownloadItem* GetDownload(uint32_t id) = 0; | 185 virtual DownloadItem* GetDownload(uint32_t id) = 0; |
| 185 | 186 |
| 186 // Get the download item for |guid|. | 187 // Get the download item for |guid|. |
| 187 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; | 188 virtual DownloadItem* GetDownloadByGuid(const std::string& guid) = 0; |
| 188 }; | 189 }; |
| 189 | 190 |
| 190 } // namespace content | 191 } // namespace content |
| 191 | 192 |
| 192 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 193 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |