diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 07:07:49 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 07:07:49 +0000 |
commit | d80a432e2201c81d60508d8399129063baa63982 (patch) | |
tree | 00106740b6f9547148411a97fcc1328cc66b13c7 /chrome/browser/browser_main.cc | |
parent | b8c904a326b28ad76146ab2a7366b2bbc2edaab9 (diff) | |
download | chromium_src-d80a432e2201c81d60508d8399129063baa63982.zip chromium_src-d80a432e2201c81d60508d8399129063baa63982.tar.gz chromium_src-d80a432e2201c81d60508d8399129063baa63982.tar.bz2 |
Make ClientSocketPool/ClientSocketPoolBase/ClientSocketHandle more generic.
This is in preparation for creating an SSLClientSocketPool.
ClientSocketPoolBase is now templated. Most of the implementation has moved to ClientSocketPoolBaseHelper which is not templated.
In order to make this possible, ClientSocketPoolBaseHelper's internal data structures do not use the full concrete Request type, but rather use a pointer to Request.
ClientSocketPoolBase takes a SocketParams as a template argument, primarily to allow RequestSocket to take a templated parameter that contains all the information necessary to connect the socket (be it TCP or SSL or whatever).
ClientSocketPool::RequestSocket() and ClientSocketHandle::Init() have been templated as well to handle this case.
I've left adding run-time type safety checks as a TODO.
TEST=net_unittests
BUG=http://crbug.com/13289
Review URL: http://codereview.chromium.org/160621
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r-- | chrome/browser/browser_main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index 3501779..c111478 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -659,7 +659,7 @@ int BrowserMain(const MainFunctionParams& parameters) { const int late_binding_group = socket_late_binding_trial->AppendGroup("_enable_late_binding", 50); if (socket_late_binding_trial->group() == late_binding_group) - net::ClientSocketPoolBase::EnableLateBindingOfSockets(true); + net::EnableLateBindingOfSockets(true); #if defined(OS_WIN) // Init common control sex. |