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

Side by Side Diff: chrome/browser/download/download_manager.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
« no previous file with comments | « chrome/browser/download/download_manager.h ('k') | chrome/browser/download/download_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/download/download_manager.h" 5 #include "chrome/browser/download/download_manager.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/rand_util.h" 11 #include "base/rand_util.h"
12 #include "base/stl_util-inl.h" 12 #include "base/stl_util-inl.h"
13 #include "base/stringprintf.h" 13 #include "base/stringprintf.h"
14 #include "base/sys_string_conversions.h" 14 #include "base/sys_string_conversions.h"
15 #include "base/task.h" 15 #include "base/task.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "chrome/browser/browser_list.h" 18 #include "chrome/browser/browser_list.h"
19 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
20 #include "chrome/browser/browser_thread.h"
21 #include "chrome/browser/download/download_extensions.h" 20 #include "chrome/browser/download/download_extensions.h"
22 #include "chrome/browser/download/download_file_manager.h" 21 #include "chrome/browser/download/download_file_manager.h"
23 #include "chrome/browser/download/download_history.h" 22 #include "chrome/browser/download/download_history.h"
24 #include "chrome/browser/download/download_item.h" 23 #include "chrome/browser/download/download_item.h"
25 #include "chrome/browser/download/download_prefs.h" 24 #include "chrome/browser/download/download_prefs.h"
26 #include "chrome/browser/download/download_safe_browsing_client.h" 25 #include "chrome/browser/download/download_safe_browsing_client.h"
27 #include "chrome/browser/download/download_status_updater.h" 26 #include "chrome/browser/download/download_status_updater.h"
28 #include "chrome/browser/download/download_util.h" 27 #include "chrome/browser/download/download_util.h"
29 #include "chrome/browser/extensions/extension_service.h" 28 #include "chrome/browser/extensions/extension_service.h"
30 #include "chrome/browser/history/download_create_info.h" 29 #include "chrome/browser/history/download_create_info.h"
31 #include "chrome/browser/net/chrome_url_request_context.h" 30 #include "chrome/browser/net/chrome_url_request_context.h"
32 #include "chrome/browser/platform_util.h" 31 #include "chrome/browser/platform_util.h"
33 #include "chrome/browser/profiles/profile.h" 32 #include "chrome/browser/profiles/profile.h"
34 #include "chrome/browser/renderer_host/render_process_host.h"
35 #include "chrome/browser/renderer_host/render_view_host.h"
36 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
37 #include "chrome/browser/tab_contents/tab_contents.h"
38 #include "chrome/browser/tab_contents/tab_util.h" 33 #include "chrome/browser/tab_contents/tab_util.h"
39 #include "chrome/browser/ui/browser.h" 34 #include "chrome/browser/ui/browser.h"
40 #include "chrome/common/chrome_paths.h" 35 #include "chrome/common/chrome_paths.h"
41 #include "chrome/common/notification_type.h" 36 #include "chrome/common/notification_type.h"
37 #include "content/browser/browser_thread.h"
38 #include "content/browser/renderer_host/render_process_host.h"
39 #include "content/browser/renderer_host/render_view_host.h"
40 #include "content/browser/renderer_host/resource_dispatcher_host.h"
41 #include "content/browser/tab_contents/tab_contents.h"
42 #include "googleurl/src/gurl.h" 42 #include "googleurl/src/gurl.h"
43 #include "grit/generated_resources.h" 43 #include "grit/generated_resources.h"
44 #include "grit/theme_resources.h" 44 #include "grit/theme_resources.h"
45 #include "net/base/mime_util.h" 45 #include "net/base/mime_util.h"
46 #include "net/base/net_util.h" 46 #include "net/base/net_util.h"
47 #include "ui/base/l10n/l10n_util.h" 47 #include "ui/base/l10n/l10n_util.h"
48 #include "ui/base/resource/resource_bundle.h" 48 #include "ui/base/resource/resource_bundle.h"
49 49
50 DownloadManager::DownloadManager(DownloadStatusUpdater* status_updater) 50 DownloadManager::DownloadManager(DownloadStatusUpdater* status_updater)
51 : shutdown_needed_(false), 51 : shutdown_needed_(false),
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 observed_download_manager_->RemoveObserver(this); 1150 observed_download_manager_->RemoveObserver(this);
1151 } 1151 }
1152 1152
1153 void DownloadManager::OtherDownloadManagerObserver::ModelChanged() { 1153 void DownloadManager::OtherDownloadManagerObserver::ModelChanged() {
1154 observing_download_manager_->NotifyModelChanged(); 1154 observing_download_manager_->NotifyModelChanged();
1155 } 1155 }
1156 1156
1157 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() { 1157 void DownloadManager::OtherDownloadManagerObserver::ManagerGoingDown() {
1158 observed_download_manager_ = NULL; 1158 observed_download_manager_ = NULL;
1159 } 1159 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_manager.h ('k') | chrome/browser/download/download_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698