| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 profile in Chrome. | 8 // active profile in Chrome. |
| 9 // | 9 // |
| 10 // Each download is represented by a DownloadItem, and all DownloadItems | 10 // Each download is represented by a DownloadItem, and all DownloadItems |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // Use AddObserver() / RemoveObserver() on the appropriate download object to | 25 // Use AddObserver() / RemoveObserver() on the appropriate download object to |
| 26 // receive state updates. | 26 // receive state updates. |
| 27 // | 27 // |
| 28 // Download state persistence: | 28 // Download state persistence: |
| 29 // The DownloadManager uses the history service for storing persistent | 29 // The DownloadManager uses the history service for storing persistent |
| 30 // information about the state of all downloads. The history system maintains a | 30 // information about the state of all downloads. The history system maintains a |
| 31 // separate table for this called 'downloads'. At the point that the | 31 // separate table for this called 'downloads'. At the point that the |
| 32 // DownloadManager is constructed, we query the history service for the state of | 32 // DownloadManager is constructed, we query the history service for the state of |
| 33 // all persisted downloads. | 33 // all persisted downloads. |
| 34 | 34 |
| 35 #ifndef CHROME_BROWSER_DOWNLOAD_MANAGER_H__ | 35 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H__ |
| 36 #define CHROME_BROWSER_DOWNLOAD_MANAGER_H__ | 36 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H__ |
| 37 | 37 |
| 38 #include <string> | 38 #include <string> |
| 39 #include <map> | 39 #include <map> |
| 40 #include <set> | 40 #include <set> |
| 41 #include <vector> | 41 #include <vector> |
| 42 | 42 |
| 43 #include "base/basictypes.h" | 43 #include "base/basictypes.h" |
| 44 #include "base/hash_tables.h" | 44 #include "base/hash_tables.h" |
| 45 #include "base/observer_list.h" | 45 #include "base/observer_list.h" |
| 46 #include "base/ref_counted.h" | 46 #include "base/ref_counted.h" |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 PendingFinishedMap pending_finished_downloads_; | 473 PendingFinishedMap pending_finished_downloads_; |
| 474 | 474 |
| 475 // The "Save As" dialog box used to ask the user where a file should be | 475 // The "Save As" dialog box used to ask the user where a file should be |
| 476 // saved. | 476 // saved. |
| 477 scoped_refptr<SelectFileDialog> select_file_dialog_; | 477 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 478 | 478 |
| 479 DISALLOW_EVIL_CONSTRUCTORS(DownloadManager); | 479 DISALLOW_EVIL_CONSTRUCTORS(DownloadManager); |
| 480 }; | 480 }; |
| 481 | 481 |
| 482 | 482 |
| 483 #endif // CHROME_BROWSER_DOWNLOAD_MANAGER_H__ | 483 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H__ |
| OLD | NEW |