| 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 // Download utility implementation | 5 // Download utility implementation |
| 6 | 6 |
| 7 #include "chrome/browser/download/download_util.h" | 7 #include "chrome/browser/download/download_util.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <shobjidl.h> | 10 #include <shobjidl.h> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "base/sys_string_conversions.h" | 23 #include "base/sys_string_conversions.h" |
| 24 #include "base/threading/thread_restrictions.h" | 24 #include "base/threading/thread_restrictions.h" |
| 25 #include "base/utf_string_conversions.h" | 25 #include "base/utf_string_conversions.h" |
| 26 #include "base/value_conversions.h" | 26 #include "base/value_conversions.h" |
| 27 #include "base/values.h" | 27 #include "base/values.h" |
| 28 #include "base/win/windows_version.h" | 28 #include "base/win/windows_version.h" |
| 29 #include "chrome/browser/download/download_create_info.h" | 29 #include "chrome/browser/download/download_create_info.h" |
| 30 #include "chrome/browser/download/download_extensions.h" | 30 #include "chrome/browser/download/download_extensions.h" |
| 31 #include "chrome/browser/download/download_item.h" | 31 #include "chrome/browser/download/download_item.h" |
| 32 #include "chrome/browser/download/download_item_model.h" | 32 #include "chrome/browser/download/download_item_model.h" |
| 33 #include "chrome/browser/download/download_manager.h" | |
| 34 #include "chrome/browser/download/download_types.h" | 33 #include "chrome/browser/download/download_types.h" |
| 35 #include "chrome/browser/profiles/profile.h" | 34 #include "chrome/browser/profiles/profile.h" |
| 36 #include "chrome/browser/ui/browser.h" | 35 #include "chrome/browser/ui/browser.h" |
| 37 #include "chrome/common/chrome_notification_types.h" | 36 #include "chrome/common/chrome_notification_types.h" |
| 38 #include "chrome/common/chrome_paths.h" | 37 #include "chrome/common/chrome_paths.h" |
| 39 #include "chrome/common/time_format.h" | 38 #include "chrome/common/time_format.h" |
| 40 #include "content/browser/browser_thread.h" | 39 #include "content/browser/browser_thread.h" |
| 41 #include "content/browser/renderer_host/render_view_host.h" | 40 #include "content/browser/renderer_host/render_view_host.h" |
| 42 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 41 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 43 #include "content/browser/tab_contents/tab_contents.h" | 42 #include "content/browser/tab_contents/tab_contents.h" |
| (...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 FilePath GetCrDownloadPath(const FilePath& suggested_path) { | 984 FilePath GetCrDownloadPath(const FilePath& suggested_path) { |
| 986 FilePath::StringType file_name; | 985 FilePath::StringType file_name; |
| 987 base::SStringPrintf( | 986 base::SStringPrintf( |
| 988 &file_name, | 987 &file_name, |
| 989 PRFilePathLiteral FILE_PATH_LITERAL(".crdownload"), | 988 PRFilePathLiteral FILE_PATH_LITERAL(".crdownload"), |
| 990 suggested_path.value().c_str()); | 989 suggested_path.value().c_str()); |
| 991 return FilePath(file_name); | 990 return FilePath(file_name); |
| 992 } | 991 } |
| 993 | 992 |
| 994 } // namespace download_util | 993 } // namespace download_util |
| OLD | NEW |