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> |
11 #endif | 11 #endif |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "app/l10n_util.h" | 14 #include "app/l10n_util.h" |
15 #include "app/resource_bundle.h" | |
16 #include "base/file_util.h" | 15 #include "base/file_util.h" |
17 #include "base/i18n/rtl.h" | 16 #include "base/i18n/rtl.h" |
18 #include "base/i18n/time_formatting.h" | 17 #include "base/i18n/time_formatting.h" |
19 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
20 #include "base/path_service.h" | 19 #include "base/path_service.h" |
21 #include "base/string16.h" | 20 #include "base/string16.h" |
22 #include "base/string_number_conversions.h" | 21 #include "base/string_number_conversions.h" |
23 #include "base/stringprintf.h" | 22 #include "base/stringprintf.h" |
24 #include "base/sys_string_conversions.h" | 23 #include "base/sys_string_conversions.h" |
25 #include "base/threading/thread_restrictions.h" | 24 #include "base/threading/thread_restrictions.h" |
(...skipping 21 matching lines...) Expand all Loading... |
47 #include "gfx/canvas_skia.h" | 46 #include "gfx/canvas_skia.h" |
48 #include "gfx/rect.h" | 47 #include "gfx/rect.h" |
49 #include "grit/generated_resources.h" | 48 #include "grit/generated_resources.h" |
50 #include "grit/locale_settings.h" | 49 #include "grit/locale_settings.h" |
51 #include "grit/theme_resources.h" | 50 #include "grit/theme_resources.h" |
52 #include "net/base/mime_util.h" | 51 #include "net/base/mime_util.h" |
53 #include "net/base/net_util.h" | 52 #include "net/base/net_util.h" |
54 #include "skia/ext/image_operations.h" | 53 #include "skia/ext/image_operations.h" |
55 #include "third_party/skia/include/core/SkPath.h" | 54 #include "third_party/skia/include/core/SkPath.h" |
56 #include "third_party/skia/include/core/SkShader.h" | 55 #include "third_party/skia/include/core/SkShader.h" |
| 56 #include "ui/base/resource/resource_bundle.h" |
57 | 57 |
58 #if defined(TOOLKIT_VIEWS) | 58 #if defined(TOOLKIT_VIEWS) |
59 #include "ui/base/dragdrop/os_exchange_data.h" | 59 #include "ui/base/dragdrop/os_exchange_data.h" |
60 #include "views/drag_utils.h" | 60 #include "views/drag_utils.h" |
61 #endif | 61 #endif |
62 | 62 |
63 #if defined(TOOLKIT_USES_GTK) | 63 #if defined(TOOLKIT_USES_GTK) |
64 #if defined(TOOLKIT_VIEWS) | 64 #if defined(TOOLKIT_VIEWS) |
65 #include "ui/base/dragdrop/drag_drop_types.h" | 65 #include "ui/base/dragdrop/drag_drop_types.h" |
66 #include "views/widget/widget_gtk.h" | 66 #include "views/widget/widget_gtk.h" |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { | 773 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { |
774 // Extensions that are not from the gallery are considered dangerous. | 774 // Extensions that are not from the gallery are considered dangerous. |
775 return true; | 775 return true; |
776 } | 776 } |
777 } | 777 } |
778 | 778 |
779 return false; | 779 return false; |
780 } | 780 } |
781 | 781 |
782 } // namespace download_util | 782 } // namespace download_util |
OLD | NEW |