Chromium Code Reviews

Issue 3747003: net: clean up SSLHostInfo construction. (Closed)

Created:
10 years, 2 months ago by agl
Modified:
9 years, 7 months ago
Reviewers:
willchan no longer on Chromium
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, ben+cc_chromium.org, Sergey Ulanov, Alpha Left Google, dmac, pam+watch_chromium.org, awong, garykac
Visibility:
Public.

Description

net: clean up SSLHostInfo construction. Create an SSLHostInfoFactory interface and plumb it from the HttpCache to the SSLConnectJob. Also, move the SSLHostInfo reference from the ssl_config to being passed to the SSLClientSocket. BUG=none TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=62918

Patch Set 1 #

Total comments: 7

Patch Set 2 : ... #

Unified diffs Side-by-side diffs Stats (+216 lines, -97 lines)
M chrome/browser/net/connection_tester.cc View 1 chunk +2 lines, -2 lines 0 comments
M chrome/service/net/service_url_request_context.cc View 1 chunk +1 line, -0 lines 0 comments
M jingle/notifier/base/chrome_async_socket.cc View 1 chunk +2 lines, -1 line 0 comments
M jingle/notifier/base/xmpp_client_socket_factory.h View 2 chunks +5 lines, -1 line 0 comments
M jingle/notifier/base/xmpp_client_socket_factory.cc View 1 chunk +3 lines, -2 lines 0 comments
M net/base/ssl_config_service.h View 1 chunk +0 lines, -6 lines 0 comments
M net/base/ssl_host_info.h View 2 chunks +11 lines, -5 lines 0 comments
M net/http/disk_cache_based_ssl_host_info.cc View 1 chunk +2 lines, -1 line 0 comments
M net/http/http_cache.h View 3 chunks +4 lines, -1 line 0 comments
M net/http/http_cache.cc View 3 chunks +22 lines, -1 line 0 comments
M net/http/http_cache_transaction.cc View 1 chunk +0 lines, -10 lines 0 comments
M net/http/http_network_layer.h View 5 chunks +5 lines, -0 lines 0 comments
M net/http/http_network_layer.cc View 9 chunks +10 lines, -1 line 0 comments
M net/http/http_network_layer_unittest.cc View 3 chunks +3 lines, -0 lines 0 comments
M net/http/http_network_session.h View 2 chunks +2 lines, -0 lines 0 comments
M net/http/http_network_session.cc View 2 chunks +2 lines, -0 lines 0 comments
M net/http/http_network_transaction.h View 2 chunks +0 lines, -2 lines 0 comments
M net/http/http_network_transaction.cc View 1 chunk +0 lines, -4 lines 0 comments
M net/http/http_network_transaction_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments
M net/http/http_proxy_client_socket_pool_unittest.cc View 2 chunks +2 lines, -0 lines 0 comments
M net/http/http_response_body_drainer_unittest.cc View 1 chunk +1 line, -0 lines 0 comments
M net/net.gyp View 1 chunk +2 lines, -0 lines 0 comments
M net/proxy/proxy_script_fetcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments
M net/socket/client_socket_factory.h View 2 chunks +7 lines, -4 lines 0 comments
M net/socket/client_socket_factory.cc View 5 chunks +15 lines, -7 lines 0 comments
M net/socket/client_socket_pool_base_unittest.cc View 1 chunk +3 lines, -1 line 0 comments
M net/socket/client_socket_pool_manager.h View 3 chunks +4 lines, -1 line 0 comments
M net/socket/client_socket_pool_manager.cc View 4 chunks +5 lines, -0 lines 0 comments
M net/socket/socket_test_util.h View 4 chunks +6 lines, -2 lines 0 comments
M net/socket/socket_test_util.cc View 4 chunks +8 lines, -4 lines 0 comments
M net/socket/ssl_client_socket_nss.h View 3 chunks +6 lines, -2 lines 0 comments
M net/socket/ssl_client_socket_nss.cc View 7 chunks +16 lines, -14 lines 0 comments
M net/socket/ssl_client_socket_pool.h View 6 chunks +9 lines, -2 lines 0 comments
M net/socket/ssl_client_socket_pool.cc View 10 chunks +17 lines, -5 lines 0 comments
M net/socket/ssl_client_socket_pool_unittest.cc View 2 chunks +2 lines, -0 lines 0 comments
M net/socket/ssl_client_socket_unittest.cc View 10 chunks +20 lines, -10 lines 0 comments
M net/socket/tcp_client_socket_pool_unittest.cc View 1 chunk +3 lines, -1 line 0 comments
M net/socket_stream/socket_stream.cc View 1 chunk +3 lines, -1 line 0 comments
M net/spdy/spdy_test_util.h View 3 chunks +3 lines, -0 lines 0 comments
M net/tools/fetch/fetch_client.cc View 1 chunk +1 line, -0 lines 0 comments
M net/url_request/url_request_unittest.h View 1 chunk +2 lines, -1 line 0 comments
M remoting/jingle_glue/ssl_socket_adapter.cc View 1 chunk +2 lines, -1 line 0 comments

Messages

Total messages: 4 (0 generated)
agl
I'm sure the try bot will tell me that I've missed something in Chrome Frame. ...
10 years, 2 months ago (2010-10-13 23:17:06 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/3747003/diff/1/5 File net/base/ssl_host_info.h (right): http://codereview.chromium.org/3747003/diff/1/5#newcode59 net/base/ssl_host_info.h:59: virtual void GetForHost(scoped_refptr<SSLHostInfo>* out, Style guide says output params ...
10 years, 2 months ago (2010-10-13 23:50:53 UTC) #2
agl
This CL is getting huge. I haven't made any changes other than the ones requested ...
10 years, 2 months ago (2010-10-14 18:06:08 UTC) #3
willchan no longer on Chromium
10 years, 2 months ago (2010-10-14 18:18:16 UTC) #4
Great, LGTM.

http://codereview.chromium.org/3747003/diff/1/5
File net/base/ssl_host_info.h (right):

http://codereview.chromium.org/3747003/diff/1/5#newcode59
net/base/ssl_host_info.h:59: virtual void GetForHost(scoped_refptr<SSLHostInfo>*
out,
On 2010/10/14 18:06:08, agl wrote:
> On 2010/10/13 23:50:53, willchan wrote:
> > Style guide says output params come after input params.  But why not just
> return
> > a SSLHostInfo?
> 
> I don't like returning pointers to things which are reference counted: the

That makes sense.  An alternative would be to return scoped_refptr<Foo> to force
a ref.  NRVO should hopefully prevent the unnecessary AddRef()/Release() pair.

> caller might miss the reference counting. But since I'm going to kill the
> reference counting here, I can change this.
> 
>

Powered by Google App Engine