| 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 20 matching lines...) Expand all Loading... |
| 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" | 33 #include "chrome/browser/download/download_manager.h" |
| 34 #include "chrome/browser/extensions/crx_installer.h" | 34 #include "chrome/browser/extensions/crx_installer.h" |
| 35 #include "chrome/browser/extensions/extension_install_ui.h" | 35 #include "chrome/browser/extensions/extension_install_ui.h" |
| 36 #include "chrome/browser/extensions/extension_service.h" | 36 #include "chrome/browser/extensions/extension_service.h" |
| 37 #include "chrome/browser/history/download_create_info.h" | 37 #include "chrome/browser/history/download_create_info.h" |
| 38 #include "chrome/browser/net/chrome_url_request_context.h" | 38 #include "chrome/browser/net/chrome_url_request_context.h" |
| 39 #include "chrome/browser/profiles/profile.h" | 39 #include "chrome/browser/profiles/profile.h" |
| 40 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 40 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 41 #include "chrome/browser/tab_contents/infobar_delegate.h" | |
| 42 #include "chrome/browser/tab_contents/tab_contents.h" | 41 #include "chrome/browser/tab_contents/tab_contents.h" |
| 43 #include "chrome/browser/ui/browser.h" | 42 #include "chrome/browser/ui/browser.h" |
| 44 #include "chrome/common/chrome_paths.h" | 43 #include "chrome/common/chrome_paths.h" |
| 45 #include "chrome/common/notification_service.h" | 44 #include "chrome/common/notification_service.h" |
| 46 #include "chrome/common/time_format.h" | 45 #include "chrome/common/time_format.h" |
| 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" |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { | 772 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { |
| 774 // Extensions that are not from the gallery are considered dangerous. | 773 // Extensions that are not from the gallery are considered dangerous. |
| 775 return true; | 774 return true; |
| 776 } | 775 } |
| 777 } | 776 } |
| 778 | 777 |
| 779 return false; | 778 return false; |
| 780 } | 779 } |
| 781 | 780 |
| 782 } // namespace download_util | 781 } // namespace download_util |
| OLD | NEW |