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

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

Issue 6825038: Create a content::ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dependencies. Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 installed_app->is_storage_isolated()) 826 installed_app->is_storage_isolated())
827 return GetRequestContextForIsolatedApp(installed_app->id()); 827 return GetRequestContextForIsolatedApp(installed_app->id());
828 828
829 return GetRequestContext(); 829 return GetRequestContext();
830 } 830 }
831 831
832 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForMedia() { 832 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForMedia() {
833 return io_data_.GetMediaRequestContextGetter(); 833 return io_data_.GetMediaRequestContextGetter();
834 } 834 }
835 835
836 const content::ResourceContext& ProfileImpl::GetResourceContext() {
837 return io_data_.GetResourceContext();
838 }
839
836 FaviconService* ProfileImpl::GetFaviconService(ServiceAccessType sat) { 840 FaviconService* ProfileImpl::GetFaviconService(ServiceAccessType sat) {
837 if (!favicon_service_created_) { 841 if (!favicon_service_created_) {
838 favicon_service_created_ = true; 842 favicon_service_created_ = true;
839 scoped_refptr<FaviconService> service(new FaviconService(this)); 843 scoped_refptr<FaviconService> service(new FaviconService(this));
840 favicon_service_.swap(service); 844 favicon_service_.swap(service);
841 } 845 }
842 return favicon_service_.get(); 846 return favicon_service_.get();
843 } 847 }
844 848
845 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() { 849 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() {
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 return pref_proxy_config_tracker_; 1504 return pref_proxy_config_tracker_;
1501 } 1505 }
1502 1506
1503 prerender::PrerenderManager* ProfileImpl::GetPrerenderManager() { 1507 prerender::PrerenderManager* ProfileImpl::GetPrerenderManager() {
1504 if (!prerender::PrerenderManager::IsPrerenderingPossible()) 1508 if (!prerender::PrerenderManager::IsPrerenderingPossible())
1505 return NULL; 1509 return NULL;
1506 if (!prerender_manager_) 1510 if (!prerender_manager_)
1507 prerender_manager_ = new prerender::PrerenderManager(this); 1511 prerender_manager_ = new prerender::PrerenderManager(this);
1508 return prerender_manager_; 1512 return prerender_manager_;
1509 } 1513 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698