| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 bool IsExecutable(const FilePath::StringType& extension); | 403 bool IsExecutable(const FilePath::StringType& extension); |
| 404 | 404 |
| 405 // Resets the automatic open preference. | 405 // Resets the automatic open preference. |
| 406 void ResetAutoOpenFiles(); | 406 void ResetAutoOpenFiles(); |
| 407 | 407 |
| 408 // Returns true if there are automatic handlers registered for any file | 408 // Returns true if there are automatic handlers registered for any file |
| 409 // types. | 409 // types. |
| 410 bool HasAutoOpenFileTypesRegistered() const; | 410 bool HasAutoOpenFileTypesRegistered() const; |
| 411 | 411 |
| 412 // Overridden from SelectFileDialog::Listener: | 412 // Overridden from SelectFileDialog::Listener: |
| 413 // TODO(port): convert this to FilePath when SelectFileDialog gets converted. | |
| 414 virtual void FileSelected(const FilePath& path, int index, void* params); | 413 virtual void FileSelected(const FilePath& path, int index, void* params); |
| 415 virtual void FileSelectionCanceled(void* params); | 414 virtual void FileSelectionCanceled(void* params); |
| 416 | 415 |
| 417 // Deletes the specified path on the file thread. | 416 // Deletes the specified path on the file thread. |
| 418 void DeleteDownload(const FilePath& path); | 417 void DeleteDownload(const FilePath& path); |
| 419 | 418 |
| 420 // Called when the user has validated the donwload of a dangerous file. | 419 // Called when the user has validated the donwload of a dangerous file. |
| 421 void DangerousDownloadValidated(DownloadItem* download); | 420 void DangerousDownloadValidated(DownloadItem* download); |
| 422 | 421 |
| 423 // Used to make sure we have a safe file extension and filename for a | 422 // Used to make sure we have a safe file extension and filename for a |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 PendingFinishedMap pending_finished_downloads_; | 585 PendingFinishedMap pending_finished_downloads_; |
| 587 | 586 |
| 588 // The "Save As" dialog box used to ask the user where a file should be | 587 // The "Save As" dialog box used to ask the user where a file should be |
| 589 // saved. | 588 // saved. |
| 590 scoped_refptr<SelectFileDialog> select_file_dialog_; | 589 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 591 | 590 |
| 592 DISALLOW_COPY_AND_ASSIGN(DownloadManager); | 591 DISALLOW_COPY_AND_ASSIGN(DownloadManager); |
| 593 }; | 592 }; |
| 594 | 593 |
| 595 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ | 594 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |