| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 #include "ui/gfx/rect.h" | 57 #include "ui/gfx/rect.h" |
| 58 | 58 |
| 59 #if defined(TOOLKIT_VIEWS) | 59 #if defined(TOOLKIT_VIEWS) |
| 60 #include "ui/base/dragdrop/os_exchange_data.h" | 60 #include "ui/base/dragdrop/os_exchange_data.h" |
| 61 #include "views/drag_utils.h" | 61 #include "views/drag_utils.h" |
| 62 #endif | 62 #endif |
| 63 | 63 |
| 64 #if defined(TOOLKIT_USES_GTK) | 64 #if defined(TOOLKIT_USES_GTK) |
| 65 #if defined(TOOLKIT_VIEWS) | 65 #if defined(TOOLKIT_VIEWS) |
| 66 #include "ui/base/dragdrop/drag_drop_types.h" | 66 #include "ui/base/dragdrop/drag_drop_types.h" |
| 67 #include "ui/views/widget/native_widget_gtk.h" | 67 #include "views/widget/native_widget_gtk.h" |
| 68 #elif defined(TOOLKIT_GTK) | 68 #elif defined(TOOLKIT_GTK) |
| 69 #include "chrome/browser/ui/gtk/custom_drag.h" | 69 #include "chrome/browser/ui/gtk/custom_drag.h" |
| 70 #include "chrome/browser/ui/gtk/unity_service.h" | 70 #include "chrome/browser/ui/gtk/unity_service.h" |
| 71 #endif // defined(TOOLKIT_GTK) | 71 #endif // defined(TOOLKIT_GTK) |
| 72 #endif // defined(TOOLKIT_USES_GTK) | 72 #endif // defined(TOOLKIT_USES_GTK) |
| 73 | 73 |
| 74 #if defined(OS_WIN) && !defined(USE_AURA) | 74 #if defined(OS_WIN) && !defined(USE_AURA) |
| 75 #include "base/win/scoped_comptr.h" | 75 #include "base/win/scoped_comptr.h" |
| 76 #include "chrome/browser/ui/browser_list.h" | 76 #include "chrome/browser/ui/browser_list.h" |
| 77 #include "chrome/browser/ui/views/frame/browser_view.h" | 77 #include "chrome/browser/ui/views/frame/browser_view.h" |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 return DownloadFile::GetUniquePathNumberWithSuffix( | 565 return DownloadFile::GetUniquePathNumberWithSuffix( |
| 566 path, FILE_PATH_LITERAL(".crdownload")); | 566 path, FILE_PATH_LITERAL(".crdownload")); |
| 567 } | 567 } |
| 568 | 568 |
| 569 FilePath GetCrDownloadPath(const FilePath& suggested_path) { | 569 FilePath GetCrDownloadPath(const FilePath& suggested_path) { |
| 570 return DownloadFile::AppendSuffixToPath( | 570 return DownloadFile::AppendSuffixToPath( |
| 571 suggested_path, FILE_PATH_LITERAL(".crdownload")); | 571 suggested_path, FILE_PATH_LITERAL(".crdownload")); |
| 572 } | 572 } |
| 573 | 573 |
| 574 } // namespace download_util | 574 } // namespace download_util |
| OLD | NEW |