| 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 StringPrefMember download_path_; | 554 StringPrefMember download_path_; |
| 555 | 555 |
| 556 // The user's last choice for download directory. This is only used when the | 556 // The user's last choice for download directory. This is only used when the |
| 557 // user wants us to prompt for a save location for each download. | 557 // user wants us to prompt for a save location for each download. |
| 558 FilePath last_download_path_; | 558 FilePath last_download_path_; |
| 559 | 559 |
| 560 // Set of file extensions to open at download completion. | 560 // Set of file extensions to open at download completion. |
| 561 std::set<FilePath::StringType> auto_open_; | 561 std::set<FilePath::StringType> auto_open_; |
| 562 | 562 |
| 563 // Set of file extensions that are executables and shouldn't be auto opened. | 563 // Set of file extensions that are executables and shouldn't be auto opened. |
| 564 std::set<FilePath::StringType> exe_types_; | 564 std::set<std::string> exe_types_; |
| 565 | 565 |
| 566 // Keep track of downloads that are completed before the user selects the | 566 // Keep track of downloads that are completed before the user selects the |
| 567 // destination, so that observers are appropriately notified of completion | 567 // destination, so that observers are appropriately notified of completion |
| 568 // after this determination is made. | 568 // after this determination is made. |
| 569 // The map is of download_id->remaining size (bytes), both of which are | 569 // The map is of download_id->remaining size (bytes), both of which are |
| 570 // required when calling DownloadFinished. | 570 // required when calling DownloadFinished. |
| 571 typedef std::map<int32, int64> PendingFinishedMap; | 571 typedef std::map<int32, int64> PendingFinishedMap; |
| 572 PendingFinishedMap pending_finished_downloads_; | 572 PendingFinishedMap pending_finished_downloads_; |
| 573 | 573 |
| 574 // The "Save As" dialog box used to ask the user where a file should be | 574 // The "Save As" dialog box used to ask the user where a file should be |
| 575 // saved. | 575 // saved. |
| 576 scoped_refptr<SelectFileDialog> select_file_dialog_; | 576 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 577 | 577 |
| 578 DISALLOW_COPY_AND_ASSIGN(DownloadManager); | 578 DISALLOW_COPY_AND_ASSIGN(DownloadManager); |
| 579 }; | 579 }; |
| 580 | 580 |
| 581 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ | 581 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |