| 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 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 FilePath GetCrDownloadPath(const FilePath& suggested_path) { | 908 FilePath GetCrDownloadPath(const FilePath& suggested_path) { |
| 910 FilePath::StringType file_name; | 909 FilePath::StringType file_name; |
| 911 base::SStringPrintf( | 910 base::SStringPrintf( |
| 912 &file_name, | 911 &file_name, |
| 913 PRFilePathLiteral FILE_PATH_LITERAL(".crdownload"), | 912 PRFilePathLiteral FILE_PATH_LITERAL(".crdownload"), |
| 914 suggested_path.value().c_str()); | 913 suggested_path.value().c_str()); |
| 915 return FilePath(file_name); | 914 return FilePath(file_name); |
| 916 } | 915 } |
| 917 | 916 |
| 918 } // namespace download_util | 917 } // namespace download_util |
| OLD | NEW |