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 #include "chrome/browser/download/download_manager.h" | 5 #include "chrome/browser/download/download_manager.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/command_line.h" | 8 #include "base/command_line.h" |
8 #include "base/file_util.h" | 9 #include "base/file_util.h" |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
11 #include "base/path_service.h" | 12 #include "base/path_service.h" |
12 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
13 #include "base/stl_util-inl.h" | 14 #include "base/stl_util-inl.h" |
14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
15 #include "base/sys_string_conversions.h" | 16 #include "base/sys_string_conversions.h" |
16 #include "base/task.h" | 17 #include "base/task.h" |
17 #include "base/thread.h" | 18 #include "base/thread.h" |
18 #include "base/timer.h" | 19 #include "base/timer.h" |
19 #include "chrome/browser/browser_list.h" | 20 #include "chrome/browser/browser_list.h" |
20 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/download/download_file.h" | 22 #include "chrome/browser/download/download_file.h" |
22 #include "chrome/browser/extensions/extension.h" | 23 #include "chrome/browser/extensions/extension.h" |
23 #include "chrome/browser/extensions/extensions_service.h" | 24 #include "chrome/browser/extensions/extensions_service.h" |
24 #include "chrome/browser/profile.h" | 25 #include "chrome/browser/profile.h" |
25 #include "chrome/browser/renderer_host/render_process_host.h" | 26 #include "chrome/browser/renderer_host/render_process_host.h" |
26 #include "chrome/browser/renderer_host/render_view_host.h" | 27 #include "chrome/browser/renderer_host/render_view_host.h" |
27 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 28 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
28 #include "chrome/browser/tab_contents/tab_util.h" | 29 #include "chrome/browser/tab_contents/tab_util.h" |
29 #include "chrome/browser/tab_contents/tab_contents.h" | 30 #include "chrome/browser/tab_contents/tab_contents.h" |
30 #include "chrome/common/chrome_constants.h" | 31 #include "chrome/common/chrome_constants.h" |
31 #include "chrome/common/chrome_paths.h" | 32 #include "chrome/common/chrome_paths.h" |
32 #include "chrome/common/chrome_switches.h" | 33 #include "chrome/common/chrome_switches.h" |
33 #include "chrome/common/l10n_util.h" | |
34 #include "chrome/common/platform_util.h" | 34 #include "chrome/common/platform_util.h" |
35 #include "chrome/common/pref_names.h" | 35 #include "chrome/common/pref_names.h" |
36 #include "chrome/common/pref_service.h" | 36 #include "chrome/common/pref_service.h" |
37 #include "googleurl/src/gurl.h" | 37 #include "googleurl/src/gurl.h" |
38 #include "grit/chromium_strings.h" | 38 #include "grit/chromium_strings.h" |
39 #include "grit/generated_resources.h" | 39 #include "grit/generated_resources.h" |
40 #include "net/base/mime_util.h" | 40 #include "net/base/mime_util.h" |
41 #include "net/base/net_util.h" | 41 #include "net/base/net_util.h" |
42 #include "net/url_request/url_request_context.h" | 42 #include "net/url_request/url_request_context.h" |
43 | 43 |
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1511 searched_downloads.push_back(dit->second); | 1511 searched_downloads.push_back(dit->second); |
1512 } | 1512 } |
1513 | 1513 |
1514 requestor->SetDownloads(searched_downloads); | 1514 requestor->SetDownloads(searched_downloads); |
1515 } | 1515 } |
1516 | 1516 |
1517 // Clears the last download path, used to initialize "save as" dialogs. | 1517 // Clears the last download path, used to initialize "save as" dialogs. |
1518 void DownloadManager::ClearLastDownloadPath() { | 1518 void DownloadManager::ClearLastDownloadPath() { |
1519 last_download_path_ = FilePath(); | 1519 last_download_path_ = FilePath(); |
1520 } | 1520 } |
OLD | NEW |