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

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

Issue 6594063: Update a bunch of files to the new location of browser_thread.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months 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) 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>
11 #endif 11 #endif
12 #include <string> 12 #include <string>
13 13
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/i18n/rtl.h" 15 #include "base/i18n/rtl.h"
16 #include "base/i18n/time_formatting.h" 16 #include "base/i18n/time_formatting.h"
17 #include "base/lazy_instance.h" 17 #include "base/lazy_instance.h"
18 #include "base/path_service.h" 18 #include "base/path_service.h"
19 #include "base/string16.h" 19 #include "base/string16.h"
20 #include "base/string_number_conversions.h" 20 #include "base/string_number_conversions.h"
21 #include "base/stringprintf.h" 21 #include "base/stringprintf.h"
22 #include "base/sys_string_conversions.h" 22 #include "base/sys_string_conversions.h"
23 #include "base/threading/thread_restrictions.h" 23 #include "base/threading/thread_restrictions.h"
24 #include "base/utf_string_conversions.h" 24 #include "base/utf_string_conversions.h"
25 #include "base/values.h" 25 #include "base/values.h"
26 #include "base/win/windows_version.h" 26 #include "base/win/windows_version.h"
27 #include "chrome/browser/browser_thread.h"
28 #include "chrome/browser/download/download_extensions.h" 27 #include "chrome/browser/download/download_extensions.h"
29 #include "chrome/browser/download/download_item.h" 28 #include "chrome/browser/download/download_item.h"
30 #include "chrome/browser/download/download_item_model.h" 29 #include "chrome/browser/download/download_item_model.h"
31 #include "chrome/browser/download/download_manager.h" 30 #include "chrome/browser/download/download_manager.h"
32 #include "chrome/browser/extensions/crx_installer.h" 31 #include "chrome/browser/extensions/crx_installer.h"
33 #include "chrome/browser/extensions/extension_install_ui.h" 32 #include "chrome/browser/extensions/extension_install_ui.h"
34 #include "chrome/browser/extensions/extension_service.h" 33 #include "chrome/browser/extensions/extension_service.h"
35 #include "chrome/browser/history/download_create_info.h" 34 #include "chrome/browser/history/download_create_info.h"
36 #include "chrome/browser/net/chrome_url_request_context.h" 35 #include "chrome/browser/net/chrome_url_request_context.h"
37 #include "chrome/browser/profiles/profile.h" 36 #include "chrome/browser/profiles/profile.h"
38 #include "chrome/browser/renderer_host/render_view_host.h"
39 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
40 #include "chrome/browser/tab_contents/tab_contents.h"
41 #include "chrome/browser/ui/browser.h" 37 #include "chrome/browser/ui/browser.h"
42 #include "chrome/common/chrome_paths.h" 38 #include "chrome/common/chrome_paths.h"
43 #include "chrome/common/notification_service.h" 39 #include "chrome/common/notification_service.h"
44 #include "chrome/common/time_format.h" 40 #include "chrome/common/time_format.h"
41 #include "content/browser/browser_thread.h"
42 #include "content/browser/renderer_host/render_view_host.h"
43 #include "content/browser/renderer_host/resource_dispatcher_host.h"
44 #include "content/browser/tab_contents/tab_contents.h"
45 #include "grit/generated_resources.h" 45 #include "grit/generated_resources.h"
46 #include "grit/locale_settings.h" 46 #include "grit/locale_settings.h"
47 #include "grit/theme_resources.h" 47 #include "grit/theme_resources.h"
48 #include "net/base/mime_util.h" 48 #include "net/base/mime_util.h"
49 #include "net/base/net_util.h" 49 #include "net/base/net_util.h"
50 #include "skia/ext/image_operations.h" 50 #include "skia/ext/image_operations.h"
51 #include "third_party/skia/include/core/SkPath.h" 51 #include "third_party/skia/include/core/SkPath.h"
52 #include "third_party/skia/include/core/SkShader.h" 52 #include "third_party/skia/include/core/SkShader.h"
53 #include "ui/base/l10n/l10n_util.h" 53 #include "ui/base/l10n/l10n_util.h"
54 #include "ui/base/resource/resource_bundle.h" 54 #include "ui/base/resource/resource_bundle.h"
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 !service->IsDownloadFromGallery(info->url, info->referrer_url)) { 832 !service->IsDownloadFromGallery(info->url, info->referrer_url)) {
833 // Extensions that are not from the gallery are considered dangerous. 833 // Extensions that are not from the gallery are considered dangerous.
834 ret = true; 834 ret = true;
835 } 835 }
836 } 836 }
837 837
838 return ret; 838 return ret;
839 } 839 }
840 840
841 } // namespace download_util 841 } // namespace download_util
OLDNEW
« no previous file with comments | « chrome/browser/download/download_safe_browsing_client.cc ('k') | chrome/browser/download/drag_download_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698