| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 virtual void RemoveObserver(Observer* observer) = 0; | 135 virtual void RemoveObserver(Observer* observer) = 0; |
| 136 | 136 |
| 137 // Called by the embedder, after creating the download manager, to let it know | 137 // Called by the embedder, after creating the download manager, to let it know |
| 138 // about downloads from previous runs of the browser. | 138 // about downloads from previous runs of the browser. |
| 139 virtual DownloadItem* CreateDownloadItem( | 139 virtual DownloadItem* CreateDownloadItem( |
| 140 uint32 id, | 140 uint32 id, |
| 141 const base::FilePath& current_path, | 141 const base::FilePath& current_path, |
| 142 const base::FilePath& target_path, | 142 const base::FilePath& target_path, |
| 143 const std::vector<GURL>& url_chain, | 143 const std::vector<GURL>& url_chain, |
| 144 const GURL& referrer_url, | 144 const GURL& referrer_url, |
| 145 const std::string& mime_type, |
| 146 const std::string& original_mime_type, |
| 145 const base::Time& start_time, | 147 const base::Time& start_time, |
| 146 const base::Time& end_time, | 148 const base::Time& end_time, |
| 147 const std::string& etag, | 149 const std::string& etag, |
| 148 const std::string& last_modified, | 150 const std::string& last_modified, |
| 149 int64 received_bytes, | 151 int64 received_bytes, |
| 150 int64 total_bytes, | 152 int64 total_bytes, |
| 151 DownloadItem::DownloadState state, | 153 DownloadItem::DownloadState state, |
| 152 DownloadDangerType danger_type, | 154 DownloadDangerType danger_type, |
| 153 DownloadInterruptReason interrupt_reason, | 155 DownloadInterruptReason interrupt_reason, |
| 154 bool opened) = 0; | 156 bool opened) = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 172 virtual void CheckForHistoryFilesRemoval() = 0; | 174 virtual void CheckForHistoryFilesRemoval() = 0; |
| 173 | 175 |
| 174 // Get the download item for |id| if present, no matter what type of download | 176 // Get the download item for |id| if present, no matter what type of download |
| 175 // it is or state it's in. | 177 // it is or state it's in. |
| 176 virtual DownloadItem* GetDownload(uint32 id) = 0; | 178 virtual DownloadItem* GetDownload(uint32 id) = 0; |
| 177 }; | 179 }; |
| 178 | 180 |
| 179 } // namespace content | 181 } // namespace content |
| 180 | 182 |
| 181 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ | 183 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |