| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/profiles/profile_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 const base::FilePath& partition_path, | 873 const base::FilePath& partition_path, |
| 874 bool in_memory) { | 874 bool in_memory) { |
| 875 return io_data_.GetIsolatedMediaRequestContextGetter(partition_path, | 875 return io_data_.GetIsolatedMediaRequestContextGetter(partition_path, |
| 876 in_memory); | 876 in_memory); |
| 877 } | 877 } |
| 878 | 878 |
| 879 content::ResourceContext* ProfileImpl::GetResourceContext() { | 879 content::ResourceContext* ProfileImpl::GetResourceContext() { |
| 880 return io_data_.GetResourceContext(); | 880 return io_data_.GetResourceContext(); |
| 881 } | 881 } |
| 882 | 882 |
| 883 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() { | |
| 884 return io_data_.GetExtensionsRequestContextGetter(); | |
| 885 } | |
| 886 | |
| 887 net::URLRequestContextGetter* | 883 net::URLRequestContextGetter* |
| 888 ProfileImpl::CreateRequestContextForStoragePartition( | 884 ProfileImpl::CreateRequestContextForStoragePartition( |
| 889 const base::FilePath& partition_path, | 885 const base::FilePath& partition_path, |
| 890 bool in_memory, | 886 bool in_memory, |
| 891 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 887 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 892 blob_protocol_handler, | 888 blob_protocol_handler, |
| 893 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 889 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 894 file_system_protocol_handler, | 890 file_system_protocol_handler, |
| 895 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 891 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 896 developer_protocol_handler, | 892 developer_protocol_handler, |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1186 base::FilePath* cache_path, | 1182 base::FilePath* cache_path, |
| 1187 int* max_size) { | 1183 int* max_size) { |
| 1188 DCHECK(cache_path); | 1184 DCHECK(cache_path); |
| 1189 DCHECK(max_size); | 1185 DCHECK(max_size); |
| 1190 base::FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); | 1186 base::FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); |
| 1191 if (!path.empty()) | 1187 if (!path.empty()) |
| 1192 *cache_path = path; | 1188 *cache_path = path; |
| 1193 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : | 1189 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : |
| 1194 prefs_->GetInteger(prefs::kDiskCacheSize); | 1190 prefs_->GetInteger(prefs::kDiskCacheSize); |
| 1195 } | 1191 } |
| OLD | NEW |