| OLD | NEW |
| 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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 installed_app->is_storage_isolated()) | 825 installed_app->is_storage_isolated()) |
| 826 return GetRequestContextForIsolatedApp(installed_app->id()); | 826 return GetRequestContextForIsolatedApp(installed_app->id()); |
| 827 | 827 |
| 828 return GetRequestContext(); | 828 return GetRequestContext(); |
| 829 } | 829 } |
| 830 | 830 |
| 831 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForMedia() { | 831 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForMedia() { |
| 832 return io_data_.GetMediaRequestContextGetter(); | 832 return io_data_.GetMediaRequestContextGetter(); |
| 833 } | 833 } |
| 834 | 834 |
| 835 const content::ResourceContext& ProfileImpl::GetResourceContext() { |
| 836 return io_data_.GetResourceContext(); |
| 837 } |
| 838 |
| 835 FaviconService* ProfileImpl::GetFaviconService(ServiceAccessType sat) { | 839 FaviconService* ProfileImpl::GetFaviconService(ServiceAccessType sat) { |
| 836 if (!favicon_service_created_) { | 840 if (!favicon_service_created_) { |
| 837 favicon_service_created_ = true; | 841 favicon_service_created_ = true; |
| 838 scoped_refptr<FaviconService> service(new FaviconService(this)); | 842 scoped_refptr<FaviconService> service(new FaviconService(this)); |
| 839 favicon_service_.swap(service); | 843 favicon_service_.swap(service); |
| 840 } | 844 } |
| 841 return favicon_service_.get(); | 845 return favicon_service_.get(); |
| 842 } | 846 } |
| 843 | 847 |
| 844 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() { | 848 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() { |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1490 return pref_proxy_config_tracker_; | 1494 return pref_proxy_config_tracker_; |
| 1491 } | 1495 } |
| 1492 | 1496 |
| 1493 prerender::PrerenderManager* ProfileImpl::GetPrerenderManager() { | 1497 prerender::PrerenderManager* ProfileImpl::GetPrerenderManager() { |
| 1494 if (!prerender::PrerenderManager::IsPrerenderingPossible()) | 1498 if (!prerender::PrerenderManager::IsPrerenderingPossible()) |
| 1495 return NULL; | 1499 return NULL; |
| 1496 if (!prerender_manager_) | 1500 if (!prerender_manager_) |
| 1497 prerender_manager_ = new prerender::PrerenderManager(this); | 1501 prerender_manager_ = new prerender::PrerenderManager(this); |
| 1498 return prerender_manager_; | 1502 return prerender_manager_; |
| 1499 } | 1503 } |
| OLD | NEW |