diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-15 10:12:58 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-15 10:12:58 +0000 |
commit | 6100c2dc176357f240888922673ff8e01a649875 (patch) | |
tree | 69d12033f472afba5d1f9606b76c06f81b8a65ef /chrome/browser/browsing_data_appcache_helper.h | |
parent | 293aa522da6b9707fb5567b68949a332417599f6 (diff) | |
download | chromium_src-6100c2dc176357f240888922673ff8e01a649875.zip chromium_src-6100c2dc176357f240888922673ff8e01a649875.tar.gz chromium_src-6100c2dc176357f240888922673ff8e01a649875.tar.bz2 |
Revert 92668 - Remove more unnecessary ChromeURLRequestContext members.
ProfileIOData is now always deleted on the IO thread. Replaces a use of ChromeURLRequestContextGetter with a ChromeURLDataManagerBackend getter callback. Also gets rid of ExtensionInfoMap from ChromeURLRequestContext by directly passing it into the places that need it. Gets rid of the HTML5 storage objects from ChromeURLRequestContext too.
Adds a workaround for TranslateManager's Profile::GetDefaultRequestContext() use, since after this refactoring (by not requiring ChromeURLRequestContextGetter for ChromeURLDataManagerBackend), it prevents having to initialize the ChromeURLRequestContextGetter in most tests since they don't actually use it. This means |default_request_context_| doesn't always get initialized in BrowserMain(), which causes TranslateManager to crash on startup since it requires |default_request_context_| to be initialized. So we forcibly initialize |default_request_context_| until TranslateManager stops depending on this.
BUG=89396
TEST=none
Review URL: http://codereview.chromium.org/7282054
TBR=willchan@chromium.org
Review URL: http://codereview.chromium.org/7384008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92673 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_appcache_helper.h')
-rw-r--r-- | chrome/browser/browsing_data_appcache_helper.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/browsing_data_appcache_helper.h b/chrome/browser/browsing_data_appcache_helper.h index c40ff48..6dfad26 100644 --- a/chrome/browser/browsing_data_appcache_helper.h +++ b/chrome/browser/browsing_data_appcache_helper.h @@ -10,6 +10,7 @@ #include "base/task.h" #include "content/browser/appcache/chrome_appcache_service.h" #include "googleurl/src/gurl.h" +#include "net/url_request/url_request_context_getter.h" class Profile; @@ -38,9 +39,10 @@ class BrowsingDataAppCacheHelper private: void OnFetchComplete(int rv); + ChromeAppCacheService* GetAppCacheService(); + scoped_refptr<net::URLRequestContextGetter> request_context_getter_; bool is_fetching_; - scoped_refptr<ChromeAppCacheService> appcache_service_; scoped_refptr<net::CancelableCompletionCallback<BrowsingDataAppCacheHelper> > appcache_info_callback_; |