| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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" |
| 67 #elif defined(TOOLKIT_GTK) | 67 #elif defined(TOOLKIT_GTK) |
| 68 #include "chrome/browser/gtk/custom_drag.h" | 68 #include "chrome/browser/ui/gtk/custom_drag.h" |
| 69 #endif // defined(TOOLKIT_GTK) | 69 #endif // defined(TOOLKIT_GTK) |
| 70 #endif // defined(TOOLKIT_USES_GTK) | 70 #endif // defined(TOOLKIT_USES_GTK) |
| 71 | 71 |
| 72 #if defined(OS_WIN) | 72 #if defined(OS_WIN) |
| 73 #include "app/win/win_util.h" | 73 #include "app/win/win_util.h" |
| 74 #include "base/win/scoped_comptr.h" | 74 #include "base/win/scoped_comptr.h" |
| 75 #include "chrome/browser/browser_list.h" | 75 #include "chrome/browser/browser_list.h" |
| 76 #include "chrome/browser/ui/views/frame/browser_view.h" | 76 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 77 #include "ui/base/dragdrop/drag_source.h" | 77 #include "ui/base/dragdrop/drag_source.h" |
| 78 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" | 78 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" |
| (...skipping 694 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 |