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

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

Issue 10891016: Remove all callers of Profile::GetResourceContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 // TODO(nasko): Until we have proper storage partitions, create a 722 // TODO(nasko): Until we have proper storage partitions, create a
723 // non-persistent context using the RPH's id. 723 // non-persistent context using the RPH's id.
724 std::string id("guest-"); 724 std::string id("guest-");
725 id.append(base::IntToString(renderer_child_id)); 725 id.append(base::IntToString(renderer_child_id));
726 return io_data_.GetIsolatedMediaRequestContextGetter(id); 726 return io_data_.GetIsolatedMediaRequestContextGetter(id);
727 } 727 }
728 728
729 return io_data_.GetMediaRequestContextGetter(); 729 return io_data_.GetMediaRequestContextGetter();
730 } 730 }
731 731
732 content::ResourceContext* ProfileImpl::GetResourceContext() { 732 content::ResourceContext* ProfileImpl::GetResourceContext(
733 content::SiteInstance* instance) {
734 // TODO(ajwong): Actually do something appropriate here.
733 return io_data_.GetResourceContext(); 735 return io_data_.GetResourceContext();
734 } 736 }
735 737
736 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() { 738 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() {
737 return io_data_.GetExtensionsRequestContextGetter(); 739 return io_data_.GetExtensionsRequestContextGetter();
738 } 740 }
739 741
740 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForIsolatedApp( 742 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForIsolatedApp(
741 const std::string& app_id) { 743 const std::string& app_id) {
742 return io_data_.GetIsolatedAppRequestContextGetter(app_id); 744 return io_data_.GetIsolatedAppRequestContextGetter(app_id);
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 if (!path.empty()) 1091 if (!path.empty())
1090 *cache_path = path; 1092 *cache_path = path;
1091 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1093 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1092 prefs_->GetInteger(prefs::kDiskCacheSize); 1094 prefs_->GetInteger(prefs::kDiskCacheSize);
1093 } 1095 }
1094 1096
1095 base::Callback<ChromeURLDataManagerBackend*(void)> 1097 base::Callback<ChromeURLDataManagerBackend*(void)>
1096 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1098 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1097 return io_data_.GetChromeURLDataManagerBackendGetter(); 1099 return io_data_.GetChromeURLDataManagerBackendGetter();
1098 } 1100 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/renderer_host/plugin_info_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698