Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(579)

Side by Side Diff: chrome/browser/download/download_util.cc

Issue 5089001: Cleanup: Include browser.h -> ui/browser.h [Part 3]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes. Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
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" 15 #include "app/resource_bundle.h"
16 #include "base/file_util.h" 16 #include "base/file_util.h"
17 #include "base/i18n/rtl.h" 17 #include "base/i18n/rtl.h"
18 #include "base/i18n/time_formatting.h" 18 #include "base/i18n/time_formatting.h"
19 #include "base/path_service.h" 19 #include "base/path_service.h"
20 #include "base/singleton.h" 20 #include "base/singleton.h"
21 #include "base/string16.h" 21 #include "base/string16.h"
22 #include "base/string_number_conversions.h" 22 #include "base/string_number_conversions.h"
23 #include "base/stringprintf.h" 23 #include "base/stringprintf.h"
24 #include "base/sys_string_conversions.h" 24 #include "base/sys_string_conversions.h"
25 #include "base/thread_restrictions.h" 25 #include "base/thread_restrictions.h"
26 #include "base/utf_string_conversions.h" 26 #include "base/utf_string_conversions.h"
27 #include "base/values.h" 27 #include "base/values.h"
28 #include "base/win/windows_version.h" 28 #include "base/win/windows_version.h"
29 #include "chrome/browser/browser.h"
30 #include "chrome/browser/browser_list.h" 29 #include "chrome/browser/browser_list.h"
31 #include "chrome/browser/browser_process.h" 30 #include "chrome/browser/browser_process.h"
32 #include "chrome/browser/browser_thread.h" 31 #include "chrome/browser/browser_thread.h"
33 #include "chrome/browser/download/download_item.h" 32 #include "chrome/browser/download/download_item.h"
34 #include "chrome/browser/download/download_item_model.h" 33 #include "chrome/browser/download/download_item_model.h"
35 #include "chrome/browser/download/download_manager.h" 34 #include "chrome/browser/download/download_manager.h"
36 #include "chrome/browser/extensions/crx_installer.h" 35 #include "chrome/browser/extensions/crx_installer.h"
37 #include "chrome/browser/extensions/extension_install_ui.h" 36 #include "chrome/browser/extensions/extension_install_ui.h"
38 #include "chrome/browser/extensions/extensions_service.h" 37 #include "chrome/browser/extensions/extensions_service.h"
39 #include "chrome/browser/history/download_create_info.h" 38 #include "chrome/browser/history/download_create_info.h"
40 #include "chrome/browser/net/chrome_url_request_context.h" 39 #include "chrome/browser/net/chrome_url_request_context.h"
41 #include "chrome/browser/profile.h" 40 #include "chrome/browser/profile.h"
42 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 41 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
43 #include "chrome/browser/tab_contents/infobar_delegate.h" 42 #include "chrome/browser/tab_contents/infobar_delegate.h"
44 #include "chrome/browser/tab_contents/tab_contents.h" 43 #include "chrome/browser/tab_contents/tab_contents.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"
51 #include "grit/locale_settings.h" 51 #include "grit/locale_settings.h"
52 #include "grit/theme_resources.h" 52 #include "grit/theme_resources.h"
53 #include "net/base/mime_util.h" 53 #include "net/base/mime_util.h"
54 #include "net/base/net_util.h" 54 #include "net/base/net_util.h"
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 ExtensionsService* service = profile->GetExtensionsService(); 741 ExtensionsService* service = profile->GetExtensionsService();
742 if (!service || 742 if (!service ||
743 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { 743 !service->IsDownloadFromGallery(info->url, info->referrer_url)) {
744 return true; 744 return true;
745 } 745 }
746 } 746 }
747 return false; 747 return false;
748 } 748 }
749 749
750 } // namespace download_util 750 } // namespace download_util
OLDNEW
« no previous file with comments | « chrome/browser/download/download_shelf.cc ('k') | chrome/browser/download/save_page_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698