From e89b77dfdb077be0254ce8f0ca84ea536ab4d6e7 Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Fri, 15 Apr 2011 18:58:10 +0000 Subject: 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 --- chrome/test/testing_profile.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/test/testing_profile.h') 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(); -- cgit v1.1