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 // 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 virtual int64 GetTotalDownloadBytes(); | 258 virtual int64 GetTotalDownloadBytes(); |
259 | 259 |
260 // Called by the delegate after the save as dialog is closed. | 260 // Called by the delegate after the save as dialog is closed. |
261 void FileSelected(const FilePath& path, void* params); | 261 void FileSelected(const FilePath& path, void* params); |
262 void FileSelectionCanceled(void* params); | 262 void FileSelectionCanceled(void* params); |
263 | 263 |
264 // Called by the delegate if it delayed the download in | 264 // Called by the delegate if it delayed the download in |
265 // DownloadManagerDelegate::ShouldStartDownload and now is ready. | 265 // DownloadManagerDelegate::ShouldStartDownload and now is ready. |
266 void RestartDownload(int32 download_id); | 266 void RestartDownload(int32 download_id); |
267 | 267 |
| 268 // Mark the download opened in the persistent store. |
| 269 void MarkDownloadOpened(DownloadItem* download); |
| 270 |
268 // Checks whether downloaded files still exist. Updates state of downloads | 271 // Checks whether downloaded files still exist. Updates state of downloads |
269 // that refer to removed files. The check runs in the background and may | 272 // that refer to removed files. The check runs in the background and may |
270 // finish asynchronously after this method returns. | 273 // finish asynchronously after this method returns. |
271 void CheckForHistoryFilesRemoval(); | 274 void CheckForHistoryFilesRemoval(); |
272 | 275 |
273 // Checks whether a downloaded file still exists and updates the file's state | 276 // Checks whether a downloaded file still exists and updates the file's state |
274 // if the file is already removed. The check runs in the background and may | 277 // if the file is already removed. The check runs in the background and may |
275 // finish asynchronously after this method returns. | 278 // finish asynchronously after this method returns. |
276 void CheckForFileRemoval(DownloadItem* download_item); | 279 void CheckForFileRemoval(DownloadItem* download_item); |
277 | 280 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 DownloadManagerDelegate* delegate_; | 434 DownloadManagerDelegate* delegate_; |
432 | 435 |
433 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. | 436 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. |
434 // For debugging only. | 437 // For debugging only. |
435 int64 largest_db_handle_in_history_; | 438 int64 largest_db_handle_in_history_; |
436 | 439 |
437 DISALLOW_COPY_AND_ASSIGN(DownloadManager); | 440 DISALLOW_COPY_AND_ASSIGN(DownloadManager); |
438 }; | 441 }; |
439 | 442 |
440 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ | 443 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ |
OLD | NEW |