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 23 matching lines...) Expand all Loading... |
34 #include "chrome/browser/extensions/extension_service.h" | 34 #include "chrome/browser/extensions/extension_service.h" |
35 #include "chrome/browser/history/download_create_info.h" | 35 #include "chrome/browser/history/download_create_info.h" |
36 #include "chrome/browser/net/chrome_url_request_context.h" | 36 #include "chrome/browser/net/chrome_url_request_context.h" |
37 #include "chrome/browser/profiles/profile.h" | 37 #include "chrome/browser/profiles/profile.h" |
38 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 38 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
39 #include "chrome/browser/tab_contents/tab_contents.h" | 39 #include "chrome/browser/tab_contents/tab_contents.h" |
40 #include "chrome/browser/ui/browser.h" | 40 #include "chrome/browser/ui/browser.h" |
41 #include "chrome/common/chrome_paths.h" | 41 #include "chrome/common/chrome_paths.h" |
42 #include "chrome/common/notification_service.h" | 42 #include "chrome/common/notification_service.h" |
43 #include "chrome/common/time_format.h" | 43 #include "chrome/common/time_format.h" |
44 #include "gfx/canvas_skia.h" | |
45 #include "gfx/rect.h" | |
46 #include "grit/generated_resources.h" | 44 #include "grit/generated_resources.h" |
47 #include "grit/locale_settings.h" | 45 #include "grit/locale_settings.h" |
48 #include "grit/theme_resources.h" | 46 #include "grit/theme_resources.h" |
49 #include "net/base/mime_util.h" | 47 #include "net/base/mime_util.h" |
50 #include "net/base/net_util.h" | 48 #include "net/base/net_util.h" |
51 #include "skia/ext/image_operations.h" | 49 #include "skia/ext/image_operations.h" |
52 #include "third_party/skia/include/core/SkPath.h" | 50 #include "third_party/skia/include/core/SkPath.h" |
53 #include "third_party/skia/include/core/SkShader.h" | 51 #include "third_party/skia/include/core/SkShader.h" |
54 #include "ui/base/l10n/l10n_util.h" | 52 #include "ui/base/l10n/l10n_util.h" |
55 #include "ui/base/resource/resource_bundle.h" | 53 #include "ui/base/resource/resource_bundle.h" |
| 54 #include "ui/gfx/canvas_skia.h" |
| 55 #include "ui/gfx/rect.h" |
56 | 56 |
57 #if defined(TOOLKIT_VIEWS) | 57 #if defined(TOOLKIT_VIEWS) |
58 #include "ui/base/dragdrop/os_exchange_data.h" | 58 #include "ui/base/dragdrop/os_exchange_data.h" |
59 #include "views/drag_utils.h" | 59 #include "views/drag_utils.h" |
60 #endif | 60 #endif |
61 | 61 |
62 #if defined(TOOLKIT_USES_GTK) | 62 #if defined(TOOLKIT_USES_GTK) |
63 #if defined(TOOLKIT_VIEWS) | 63 #if defined(TOOLKIT_VIEWS) |
64 #include "ui/base/dragdrop/drag_drop_types.h" | 64 #include "ui/base/dragdrop/drag_drop_types.h" |
65 #include "views/widget/widget_gtk.h" | 65 #include "views/widget/widget_gtk.h" |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { | 814 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { |
815 // Extensions that are not from the gallery are considered dangerous. | 815 // Extensions that are not from the gallery are considered dangerous. |
816 ret = true; | 816 ret = true; |
817 } | 817 } |
818 } | 818 } |
819 | 819 |
820 return ret; | 820 return ret; |
821 } | 821 } |
822 | 822 |
823 } // namespace download_util | 823 } // namespace download_util |
OLD | NEW |