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 #include "chrome/browser/download/download_item.h" | 5 #include "content/browser/download/download_item.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/i18n/case_conversion.h" | 10 #include "base/i18n/case_conversion.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
14 #include "base/timer.h" | 14 #include "base/timer.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "net/base/net_util.h" | 16 #include "net/base/net_util.h" |
17 #include "chrome/browser/download/download_create_info.h" | |
18 #include "chrome/browser/download/download_crx_util.h" | 17 #include "chrome/browser/download/download_crx_util.h" |
19 #include "chrome/browser/download/download_extensions.h" | 18 #include "chrome/browser/download/download_extensions.h" |
20 #include "chrome/browser/download/download_file_manager.h" | |
21 #include "chrome/browser/download/download_history.h" | 19 #include "chrome/browser/download/download_history.h" |
22 #include "chrome/browser/download/download_manager.h" | |
23 #include "chrome/browser/download/download_manager_delegate.h" | 20 #include "chrome/browser/download/download_manager_delegate.h" |
24 #include "chrome/browser/download/download_prefs.h" | 21 #include "chrome/browser/download/download_prefs.h" |
25 #include "chrome/browser/download/download_state_info.h" | |
benjhayden
2011/08/19 15:23:10
Looks like you forgot to add content/b/d/d_s_i.h,
| |
26 #include "chrome/browser/download/download_util.h" | 22 #include "chrome/browser/download/download_util.h" |
27 #include "chrome/browser/extensions/crx_installer.h" | 23 #include "chrome/browser/extensions/crx_installer.h" |
28 #include "chrome/browser/history/download_history_info.h" | 24 #include "chrome/browser/history/download_history_info.h" |
29 #include "chrome/browser/platform_util.h" | 25 #include "chrome/browser/platform_util.h" |
30 #include "chrome/browser/prefs/pref_service.h" | 26 #include "chrome/browser/prefs/pref_service.h" |
31 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
32 #include "chrome/common/chrome_notification_types.h" | 28 #include "chrome/common/chrome_notification_types.h" |
33 #include "chrome/common/extensions/extension.h" | 29 #include "chrome/common/extensions/extension.h" |
34 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
35 #include "content/browser/browser_thread.h" | 31 #include "content/browser/browser_thread.h" |
32 #include "content/browser/download/download_create_info.h" | |
33 #include "content/browser/download/download_file_manager.h" | |
34 #include "content/browser/download/download_manager.h" | |
36 #include "content/common/notification_source.h" | 35 #include "content/common/notification_source.h" |
37 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
38 | 37 |
39 // A DownloadItem normally goes through the following states: | 38 // A DownloadItem normally goes through the following states: |
40 // * Created (when download starts) | 39 // * Created (when download starts) |
41 // * Made visible to consumers (e.g. Javascript) after the | 40 // * Made visible to consumers (e.g. Javascript) after the |
42 // destination file has been determined. | 41 // destination file has been determined. |
43 // * Entered into the history database. | 42 // * Entered into the history database. |
44 // * Made visible in the download shelf. | 43 // * Made visible in the download shelf. |
45 // * All data is saved. Note that the actual data download occurs | 44 // * All data is saved. Note that the actual data download occurs |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
858 state_info_.target_name.value().c_str(), | 857 state_info_.target_name.value().c_str(), |
859 full_path().value().c_str()); | 858 full_path().value().c_str()); |
860 } else { | 859 } else { |
861 description += base::StringPrintf(" url = \"%s\"", url_list.c_str()); | 860 description += base::StringPrintf(" url = \"%s\"", url_list.c_str()); |
862 } | 861 } |
863 | 862 |
864 description += " }"; | 863 description += " }"; |
865 | 864 |
866 return description; | 865 return description; |
867 } | 866 } |
OLD | NEW |