| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 30 matching lines...) Expand all Loading... |
| 41 #include <map> | 41 #include <map> |
| 42 #include <set> | 42 #include <set> |
| 43 #include <vector> | 43 #include <vector> |
| 44 | 44 |
| 45 #include "base/basictypes.h" | 45 #include "base/basictypes.h" |
| 46 #include "base/file_path.h" | 46 #include "base/file_path.h" |
| 47 #include "base/hash_tables.h" | 47 #include "base/hash_tables.h" |
| 48 #include "base/observer_list.h" | 48 #include "base/observer_list.h" |
| 49 #include "base/ref_counted.h" | 49 #include "base/ref_counted.h" |
| 50 #include "base/time.h" | 50 #include "base/time.h" |
| 51 #include "base/timer.h" |
| 51 #include "chrome/browser/cancelable_request.h" | 52 #include "chrome/browser/cancelable_request.h" |
| 52 #include "chrome/browser/history/download_types.h" | 53 #include "chrome/browser/history/download_types.h" |
| 53 #include "chrome/browser/history/history.h" | 54 #include "chrome/browser/history/history.h" |
| 54 #include "chrome/browser/shell_dialogs.h" | 55 #include "chrome/browser/shell_dialogs.h" |
| 55 #include "chrome/common/pref_member.h" | 56 #include "chrome/common/pref_member.h" |
| 56 | 57 |
| 57 class DownloadFileManager; | 58 class DownloadFileManager; |
| 58 class DownloadItemView; | 59 class DownloadItemView; |
| 59 class DownloadManager; | 60 class DownloadManager; |
| 60 class GURL; | 61 class GURL; |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 PendingFinishedMap pending_finished_downloads_; | 591 PendingFinishedMap pending_finished_downloads_; |
| 591 | 592 |
| 592 // The "Save As" dialog box used to ask the user where a file should be | 593 // The "Save As" dialog box used to ask the user where a file should be |
| 593 // saved. | 594 // saved. |
| 594 scoped_refptr<SelectFileDialog> select_file_dialog_; | 595 scoped_refptr<SelectFileDialog> select_file_dialog_; |
| 595 | 596 |
| 596 DISALLOW_COPY_AND_ASSIGN(DownloadManager); | 597 DISALLOW_COPY_AND_ASSIGN(DownloadManager); |
| 597 }; | 598 }; |
| 598 | 599 |
| 599 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ | 600 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |