diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-29 02:58:07 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-29 02:58:07 +0000 |
commit | a1e6ad0532c7537ee72bcdce23fe8a8932114b5e (patch) | |
tree | 31800c70679ae35080f3dde03c0a3c9af929caa9 /content/browser/resource_context.cc | |
parent | 99f8e0d06b19334c93fd15b9e74feedc8971fa37 (diff) | |
download | chromium_src-a1e6ad0532c7537ee72bcdce23fe8a8932114b5e.zip chromium_src-a1e6ad0532c7537ee72bcdce23fe8a8932114b5e.tar.gz chromium_src-a1e6ad0532c7537ee72bcdce23fe8a8932114b5e.tar.bz2 |
Remove ChromeURLRequestContext from content/.
Takes the last remaining uses and kills them, or moves them into ResourceContext.
Some of the additions to ResourceContext don't belong there either and will need to be removed.
BUG=77086,78596
TEST=none
Review URL: http://codereview.chromium.org/6880263
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/resource_context.cc')
-rw-r--r-- | content/browser/resource_context.cc | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/content/browser/resource_context.cc b/content/browser/resource_context.cc index 199f5dc..adafc44 100644 --- a/content/browser/resource_context.cc +++ b/content/browser/resource_context.cc @@ -94,4 +94,52 @@ void ResourceContext::set_blob_storage_context( blob_storage_context_ = context; } +HostZoomMap* ResourceContext::host_zoom_map() const { + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + EnsureInitialized(); + return host_zoom_map_; +} + +void ResourceContext::set_host_zoom_map(HostZoomMap* host_zoom_map) { + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + host_zoom_map_ = host_zoom_map; +} + +HostContentSettingsMap* ResourceContext::host_content_settings_map() const { + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + EnsureInitialized(); + return host_content_settings_map_; +} + +void ResourceContext::set_host_content_settings_map( + HostContentSettingsMap* host_content_settings_map) { + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + host_content_settings_map_ = host_content_settings_map; +} + +const ExtensionInfoMap* ResourceContext::extension_info_map() const { + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + EnsureInitialized(); + return extension_info_map_; +} + +void ResourceContext::set_extension_info_map( + ExtensionInfoMap* extension_info_map) { + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + extension_info_map_ = extension_info_map; +} + +const base::WeakPtr<prerender::PrerenderManager>& +ResourceContext::prerender_manager() const { + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + EnsureInitialized(); + return prerender_manager_; +} + +void ResourceContext::set_prerender_manager( + const base::WeakPtr<prerender::PrerenderManager>& prerender_manager) { + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + prerender_manager_ = prerender_manager; +} + } // namespace content |