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

Side by Side Diff: content/browser/download/download_manager_impl.cc

Issue 8921021: Trivial move of content::BrowserContext to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years 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 #include "content/browser/download/download_manager_impl.h" 5 #include "content/browser/download/download_manager_impl.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/i18n/case_conversion.h" 12 #include "base/i18n/case_conversion.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/stl_util.h" 14 #include "base/stl_util.h"
15 #include "base/stringprintf.h" 15 #include "base/stringprintf.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "base/sys_string_conversions.h" 17 #include "base/sys_string_conversions.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "content/browser/browser_context.h"
20 #include "content/browser/download/download_create_info.h" 19 #include "content/browser/download/download_create_info.h"
21 #include "content/browser/download/download_file_manager.h" 20 #include "content/browser/download/download_file_manager.h"
22 #include "content/browser/download/download_id_factory.h" 21 #include "content/browser/download/download_id_factory.h"
23 #include "content/browser/download/download_item_impl.h" 22 #include "content/browser/download/download_item_impl.h"
24 #include "content/browser/download/download_persistent_store_info.h" 23 #include "content/browser/download/download_persistent_store_info.h"
25 #include "content/browser/download/download_stats.h" 24 #include "content/browser/download/download_stats.h"
26 #include "content/browser/download/download_status_updater.h" 25 #include "content/browser/download/download_status_updater.h"
27 #include "content/browser/download/interrupt_reasons.h" 26 #include "content/browser/download/interrupt_reasons.h"
28 #include "content/browser/renderer_host/render_view_host.h" 27 #include "content/browser/renderer_host/render_view_host.h"
29 #include "content/browser/renderer_host/resource_dispatcher_host.h" 28 #include "content/browser/renderer_host/resource_dispatcher_host.h"
30 #include "content/browser/tab_contents/tab_contents.h" 29 #include "content/browser/tab_contents/tab_contents.h"
30 #include "content/public/browser/browser_context.h"
31 #include "content/public/browser/browser_thread.h" 31 #include "content/public/browser/browser_thread.h"
32 #include "content/public/browser/content_browser_client.h" 32 #include "content/public/browser/content_browser_client.h"
33 #include "content/public/browser/download_manager_delegate.h" 33 #include "content/public/browser/download_manager_delegate.h"
34 #include "content/public/browser/notification_service.h" 34 #include "content/public/browser/notification_service.h"
35 #include "content/public/browser/notification_types.h" 35 #include "content/public/browser/notification_types.h"
36 #include "content/public/browser/render_process_host.h" 36 #include "content/public/browser/render_process_host.h"
37 37
38 using content::BrowserThread; 38 using content::BrowserThread;
39 39
40 namespace { 40 namespace {
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 it != history_downloads_.end(); ++it) { 1132 it != history_downloads_.end(); ++it) {
1133 if (it->second->IsComplete() && !it->second->GetOpened()) 1133 if (it->second->IsComplete() && !it->second->GetOpened())
1134 ++num_unopened; 1134 ++num_unopened;
1135 } 1135 }
1136 download_stats::RecordOpensOutstanding(num_unopened); 1136 download_stats::RecordOpensOutstanding(num_unopened);
1137 } 1137 }
1138 1138
1139 void DownloadManagerImpl::SetFileManager(DownloadFileManager* file_manager) { 1139 void DownloadManagerImpl::SetFileManager(DownloadFileManager* file_manager) {
1140 file_manager_ = file_manager; 1140 file_manager_ = file_manager;
1141 } 1141 }
OLDNEW
« no previous file with comments | « content/browser/browsing_instance.cc ('k') | content/browser/download/download_request_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698