diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-15 18:58:10 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-15 18:58:10 +0000 |
commit | e89b77dfdb077be0254ce8f0ca84ea536ab4d6e7 (patch) | |
tree | d5b6744a7feaa6249d049f58d29c42ea74bb7fc2 /chrome/test/testing_profile.h | |
parent | e6b761eb74e0ac2909afca9e209de1ccdd2eb097 (diff) | |
download | chromium_src-e89b77dfdb077be0254ce8f0ca84ea536ab4d6e7.zip chromium_src-e89b77dfdb077be0254ce8f0ca84ea536ab4d6e7.tar.gz chromium_src-e89b77dfdb077be0254ce8f0ca84ea536ab4d6e7.tar.bz2 |
Create a content::ResourceContext.
Each Profile will have a ResourceContext which lives within the ProfileIOData on the IO thread, although it is created on the UI thread (since that's where the ProfileIOData is created).
Move webkit_database::DatabaseTracker into ResourceContext and out of ChromeURLRequestContext.
Fixed WorkerProcessHost to create its own ResourceMessageFilter that uses a URLRequestContextOverride pointing to its own URLRequestContext, rather than using the default request context.
BUG=78596
TEST=existing
Review URL: http://codereview.chromium.org/6825038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81774 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_profile.h')
-rw-r--r-- | chrome/test/testing_profile.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h index f43a87f..13c252f 100644 --- a/chrome/test/testing_profile.h +++ b/chrome/test/testing_profile.h @@ -12,6 +12,10 @@ #include "base/timer.h" #include "chrome/browser/profiles/profile.h" +namespace content { +class ResourceContextGetter; +} + namespace history { class TopSites; } @@ -207,6 +211,8 @@ class TestingProfile : public Profile { virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( const std::string& app_id); + virtual const content::ResourceContext& GetResourceContext(); + virtual net::SSLConfigService* GetSSLConfigService(); virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); virtual FindBarState* GetFindBarState(); |