OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/browser_process.h" | 30 #include "chrome/browser/browser_process.h" |
31 #include "chrome/browser/browser_thread.h" | 31 #include "chrome/browser/browser_thread.h" |
32 #include "chrome/browser/download/download_item.h" | 32 #include "chrome/browser/download/download_item.h" |
33 #include "chrome/browser/download/download_item_model.h" | 33 #include "chrome/browser/download/download_item_model.h" |
34 #include "chrome/browser/download/download_manager.h" | 34 #include "chrome/browser/download/download_manager.h" |
35 #include "chrome/browser/extensions/crx_installer.h" | 35 #include "chrome/browser/extensions/crx_installer.h" |
36 #include "chrome/browser/extensions/extension_install_ui.h" | 36 #include "chrome/browser/extensions/extension_install_ui.h" |
37 #include "chrome/browser/extensions/extensions_service.h" | 37 #include "chrome/browser/extensions/extensions_service.h" |
38 #include "chrome/browser/history/download_create_info.h" | 38 #include "chrome/browser/history/download_create_info.h" |
39 #include "chrome/browser/net/chrome_url_request_context.h" | 39 #include "chrome/browser/net/chrome_url_request_context.h" |
40 #include "chrome/browser/profile.h" | 40 #include "chrome/browser/profiles/profile.h" |
41 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 41 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
42 #include "chrome/browser/tab_contents/infobar_delegate.h" | 42 #include "chrome/browser/tab_contents/infobar_delegate.h" |
43 #include "chrome/browser/tab_contents/tab_contents.h" | 43 #include "chrome/browser/tab_contents/tab_contents.h" |
44 #include "chrome/browser/ui/browser.h" | 44 #include "chrome/browser/ui/browser.h" |
45 #include "chrome/common/chrome_paths.h" | 45 #include "chrome/common/chrome_paths.h" |
46 #include "chrome/common/notification_service.h" | 46 #include "chrome/common/notification_service.h" |
47 #include "chrome/common/time_format.h" | 47 #include "chrome/common/time_format.h" |
48 #include "gfx/canvas_skia.h" | 48 #include "gfx/canvas_skia.h" |
49 #include "gfx/rect.h" | 49 #include "gfx/rect.h" |
50 #include "grit/generated_resources.h" | 50 #include "grit/generated_resources.h" |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 ExtensionsService* service = profile->GetExtensionsService(); | 730 ExtensionsService* service = profile->GetExtensionsService(); |
731 if (!service || | 731 if (!service || |
732 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { | 732 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { |
733 return true; | 733 return true; |
734 } | 734 } |
735 } | 735 } |
736 return false; | 736 return false; |
737 } | 737 } |
738 | 738 |
739 } // namespace download_util | 739 } // namespace download_util |
OLD | NEW |