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 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1141 FilePath* cache_path, | 1141 FilePath* cache_path, |
1142 int* max_size) { | 1142 int* max_size) { |
1143 DCHECK(cache_path); | 1143 DCHECK(cache_path); |
1144 DCHECK(max_size); | 1144 DCHECK(max_size); |
1145 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); | 1145 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); |
1146 if (!path.empty()) | 1146 if (!path.empty()) |
1147 *cache_path = path; | 1147 *cache_path = path; |
1148 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : | 1148 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : |
1149 prefs_->GetInteger(prefs::kDiskCacheSize); | 1149 prefs_->GetInteger(prefs::kDiskCacheSize); |
1150 } | 1150 } |
1151 | |
1152 base::Callback<ChromeURLDataManagerBackend*(void)> | |
1153 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { | |
1154 return io_data_.GetChromeURLDataManagerBackendGetter(); | |
1155 } | |
OLD | NEW |