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

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

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch unittest fix from michael Created 8 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
OLDNEW
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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 // TODO(nasko): Until we have proper storage partitions, create a 725 // TODO(nasko): Until we have proper storage partitions, create a
726 // non-persistent context using the RPH's id. 726 // non-persistent context using the RPH's id.
727 std::string id("guest-"); 727 std::string id("guest-");
728 id.append(base::IntToString(renderer_child_id)); 728 id.append(base::IntToString(renderer_child_id));
729 return io_data_.GetIsolatedMediaRequestContextGetter(id); 729 return io_data_.GetIsolatedMediaRequestContextGetter(id);
730 } 730 }
731 731
732 return io_data_.GetMediaRequestContextGetter(); 732 return io_data_.GetMediaRequestContextGetter();
733 } 733 }
734 734
735 net::URLRequestContextGetter*
736 ProfileImpl::GetMediaRequestContextForStoragePartition(
737 const std::string& partition_id) {
738 return io_data_.GetIsolatedMediaRequestContextGetter(partition_id);
739 }
740
735 content::ResourceContext* ProfileImpl::GetResourceContext() { 741 content::ResourceContext* ProfileImpl::GetResourceContext() {
736 return io_data_.GetResourceContext(); 742 return io_data_.GetResourceContext();
737 } 743 }
738 744
739 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() { 745 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() {
740 return io_data_.GetExtensionsRequestContextGetter(); 746 return io_data_.GetExtensionsRequestContextGetter();
741 } 747 }
742 748
743 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForIsolatedApp( 749 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForIsolatedApp(
744 const std::string& app_id) { 750 const std::string& app_id) {
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 if (!path.empty()) 1098 if (!path.empty())
1093 *cache_path = path; 1099 *cache_path = path;
1094 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1100 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1095 prefs_->GetInteger(prefs::kDiskCacheSize); 1101 prefs_->GetInteger(prefs::kDiskCacheSize);
1096 } 1102 }
1097 1103
1098 base::Callback<ChromeURLDataManagerBackend*(void)> 1104 base::Callback<ChromeURLDataManagerBackend*(void)>
1099 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1105 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1100 return io_data_.GetChromeURLDataManagerBackendGetter(); 1106 return io_data_.GetChromeURLDataManagerBackendGetter();
1101 } 1107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698