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

Side by Side Diff: chrome/browser/profile_impl.cc

Issue 3108042: Support sending BlobData to browser process. Also support sending UploadData... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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/profile_impl.h ('k') | chrome/browser/renderer_host/blob_dispatcher_host.h » ('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) 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 #include "chrome/browser/profile_impl.h" 5 #include "chrome/browser/profile_impl.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/string_number_conversions.h" 14 #include "base/string_number_conversions.h"
15 #include "base/string_util.h" 15 #include "base/string_util.h"
16 #include "chrome/browser/appcache/chrome_appcache_service.h" 16 #include "chrome/browser/appcache/chrome_appcache_service.h"
17 #include "chrome/browser/autocomplete/autocomplete_classifier.h" 17 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
18 #include "chrome/browser/autofill/personal_data_manager.h" 18 #include "chrome/browser/autofill/personal_data_manager.h"
19 #include "chrome/browser/background_contents_service.h" 19 #include "chrome/browser/background_contents_service.h"
20 #include "chrome/browser/background_mode_manager.h" 20 #include "chrome/browser/background_mode_manager.h"
21 #include "chrome/browser/bookmarks/bookmark_model.h" 21 #include "chrome/browser/bookmarks/bookmark_model.h"
22 #include "chrome/browser/browser_list.h" 22 #include "chrome/browser/browser_list.h"
23 #include "chrome/browser/browser_process.h" 23 #include "chrome/browser/browser_process.h"
24 #include "chrome/browser/chrome_blob_storage_context.h"
24 #include "chrome/browser/chrome_thread.h" 25 #include "chrome/browser/chrome_thread.h"
25 #include "chrome/browser/dom_ui/ntp_resource_cache.h" 26 #include "chrome/browser/dom_ui/ntp_resource_cache.h"
26 #include "chrome/browser/download/download_manager.h" 27 #include "chrome/browser/download/download_manager.h"
27 #include "chrome/browser/extensions/extension_devtools_manager.h" 28 #include "chrome/browser/extensions/extension_devtools_manager.h"
28 #include "chrome/browser/extensions/extension_error_reporter.h" 29 #include "chrome/browser/extensions/extension_error_reporter.h"
29 #include "chrome/browser/extensions/extension_message_service.h" 30 #include "chrome/browser/extensions/extension_message_service.h"
30 #include "chrome/browser/extensions/extension_process_manager.h" 31 #include "chrome/browser/extensions/extension_process_manager.h"
31 #include "chrome/browser/extensions/extensions_service.h" 32 #include "chrome/browser/extensions/extensions_service.h"
32 #include "chrome/browser/extensions/user_script_master.h" 33 #include "chrome/browser/extensions/user_script_master.h"
33 #include "chrome/browser/favicon_service.h" 34 #include "chrome/browser/favicon_service.h"
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 sync_service_.reset( 1214 sync_service_.reset(
1214 profile_sync_factory_->CreateProfileSyncService()); 1215 profile_sync_factory_->CreateProfileSyncService());
1215 sync_service_->Initialize(); 1216 sync_service_->Initialize();
1216 } 1217 }
1217 1218
1218 void ProfileImpl::InitCloudPrintProxyService() { 1219 void ProfileImpl::InitCloudPrintProxyService() {
1219 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); 1220 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this));
1220 cloud_print_proxy_service_->Initialize(); 1221 cloud_print_proxy_service_->Initialize();
1221 } 1222 }
1222 1223
1224 ChromeBlobStorageContext* ProfileImpl::GetBlobStorageContext() {
1225 if (!blob_storage_context_) {
1226 blob_storage_context_ = new ChromeBlobStorageContext();
1227 ChromeThread::PostTask(
1228 ChromeThread::IO, FROM_HERE,
1229 NewRunnableMethod(blob_storage_context_.get(),
1230 &ChromeBlobStorageContext::InitializeOnIOThread));
1231 }
1232 return blob_storage_context_;
1233 }
1234
1223 #if defined(OS_CHROMEOS) 1235 #if defined(OS_CHROMEOS)
1224 chromeos::ProxyConfigServiceImpl* 1236 chromeos::ProxyConfigServiceImpl*
1225 ProfileImpl::GetChromeOSProxyConfigServiceImpl() { 1237 ProfileImpl::GetChromeOSProxyConfigServiceImpl() {
1226 if (!chromeos_proxy_config_service_impl_) { 1238 if (!chromeos_proxy_config_service_impl_) {
1227 chromeos_proxy_config_service_impl_ = 1239 chromeos_proxy_config_service_impl_ =
1228 new chromeos::ProxyConfigServiceImpl(); 1240 new chromeos::ProxyConfigServiceImpl();
1229 } 1241 }
1230 return chromeos_proxy_config_service_impl_; 1242 return chromeos_proxy_config_service_impl_;
1231 } 1243 }
1232 #endif // defined(OS_CHROMEOS) 1244 #endif // defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/browser/profile_impl.h ('k') | chrome/browser/renderer_host/blob_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698