diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-23 22:34:50 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-23 22:34:50 +0000 |
commit | 6ab9b20222cb8ac94dea662c3d65a59839817dd4 (patch) | |
tree | 7797501d237c55b031569418caac62eb1b94ea97 /chrome/browser/profile.h | |
parent | be4576e292be2d77ffc45ef4df8245a0059e3d5f (diff) | |
download | chromium_src-6ab9b20222cb8ac94dea662c3d65a59839817dd4.zip chromium_src-6ab9b20222cb8ac94dea662c3d65a59839817dd4.tar.gz chromium_src-6ab9b20222cb8ac94dea662c3d65a59839817dd4.tar.bz2 |
Refactor the two URLRequestContext subclasses in profile.cc into a new shared
ChromeRequestContext class. This will allow us to put browser-specific request
context here rather than in URLRequestContext and eliminates a lot of
duplicate code.
I looked at having two different classes using either inheritance (as proposed
by the existing TODO) or composition, but it seems like there isn't enough
difference between these two classes to justify it.
Removed is_off_the_record() because it wasn't being used anywhere and did a
few other minor code cleanup things.
Review URL: http://codereview.chromium.org/16408
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7448 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r-- | chrome/browser/profile.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index c2b88a89..16455c1 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -23,6 +23,7 @@ #include "chrome/common/pref_service.h" class BookmarkModel; +class ChromeURLRequestContext; class DownloadManager; class ExtensionsService; class GreasemonkeyMaster; @@ -294,8 +295,6 @@ class ProfileImpl : public Profile, const NotificationDetails& details); private: - class RequestContext; - friend class Profile; explicit ProfileImpl(const std::wstring& path); @@ -332,7 +331,7 @@ class ProfileImpl : public Profile, scoped_ptr<ProfilePersonalization> personalization_; #endif - RequestContext* request_context_; + ChromeURLRequestContext* request_context_; scoped_refptr<DownloadManager> download_manager_; scoped_refptr<HistoryService> history_service_; |