Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Issue 6833031: Changed the jingle network code in ChromeAsyncSocket to use the client socket pool. This also all... (Closed)

Created:
9 years, 8 months ago by sanjeevr
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, idana, Raghu Simha, ncarter (slow), darin-cc_chromium.org, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

Changed the jingle network code in ChromeAsyncSocket to use the client socket pool. This also allows the connection to be able to tunnel through proxies. BUG=77430 TEST=Unit-tests, sync unit-tests, test Cloud Print and Sync behind procy servers. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81820

Patch Set 1 #

Patch Set 2 : Lint fix #

Total comments: 8

Patch Set 3 : Mac/Linux compile fix #

Patch Set 4 : Created ProxyResolvingClientSocket #

Patch Set 5 : Fixed license #

Patch Set 6 : Fixed lint errors #

Patch Set 7 : Fixed Linux compile #

Patch Set 8 : More Mac/Linux compile fixes #

Total comments: 25

Patch Set 9 : Review comments addressed #

Total comments: 22

Patch Set 10 : Added unit-tests for ProxyResolvingClientSocket #

Patch Set 11 : Minor comment change #

Patch Set 12 : Lint fixes #

Patch Set 13 : More review comments addressed #

Patch Set 14 : Lint fixes #

Total comments: 18

Patch Set 15 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+805 lines, -168 lines) Patch
M chrome/browser/sync/notifier/invalidation_notifier.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -4 lines 0 comments Download
M jingle/jingle.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M jingle/notifier/base/chrome_async_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -11 lines 0 comments Download
M jingle/notifier/base/chrome_async_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +12 lines, -38 lines 0 comments Download
M jingle/notifier/base/chrome_async_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +62 lines, -4 lines 0 comments Download
A jingle/notifier/base/proxy_resolving_client_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +94 lines, -0 lines 0 comments Download
A jingle/notifier/base/proxy_resolving_client_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +337 lines, -0 lines 0 comments Download
A jingle/notifier/base/proxy_resolving_client_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +85 lines, -0 lines 0 comments Download
A jingle/notifier/base/resolving_client_socket_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +37 lines, -0 lines 0 comments Download
D jingle/notifier/base/xmpp_client_socket_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +19 lines, -11 lines 0 comments Download
D jingle/notifier/base/xmpp_client_socket_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +18 lines, -17 lines 0 comments Download
M jingle/notifier/base/xmpp_connection.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -5 lines 0 comments Download
M jingle/notifier/base/xmpp_connection.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +16 lines, -13 lines 0 comments Download
M jingle/notifier/base/xmpp_connection_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +46 lines, -10 lines 0 comments Download
M jingle/notifier/communicator/login.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -4 lines 0 comments Download
M jingle/notifier/communicator/login.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -4 lines 0 comments Download
M jingle/notifier/communicator/login_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +7 lines, -16 lines 0 comments Download
M jingle/notifier/communicator/login_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -6 lines 0 comments Download
M jingle/notifier/communicator/single_login_attempt.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +9 lines, -9 lines 0 comments Download
M jingle/notifier/communicator/xmpp_connection_generator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -0 lines 0 comments Download
M jingle/notifier/communicator/xmpp_connection_generator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +25 lines, -11 lines 0 comments Download
M jingle/notifier/listener/mediator_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -4 lines 0 comments Download
M net/socket/client_socket_pool_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
sanjeevr
willchan, please review the net/ changes. akalin, please review everything.
9 years, 8 months ago (2011-04-13 19:21:10 UTC) #1
akalin
willchan@, do you have any suggestions for the best way for sanjeevr to proceed is? ...
9 years, 8 months ago (2011-04-13 20:49:32 UTC) #2
sanjeevr
Will and I had spoken about this a couple of weeks back before I started ...
9 years, 8 months ago (2011-04-13 21:20:14 UTC) #3
sanjeevr
http://codereview.chromium.org/6833031/diff/2004/jingle/notifier/base/chrome_async_socket.cc File jingle/notifier/base/chrome_async_socket.cc (right): http://codereview.chromium.org/6833031/diff/2004/jingle/notifier/base/chrome_async_socket.cc#newcode42 jingle/notifier/base/chrome_async_socket.cc:42: const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, On 2011/04/13 20:49:32, akalin wrote: > ...
9 years, 8 months ago (2011-04-13 21:20:21 UTC) #4
sanjeevr
Created a ProxyResolvingClientSocket to hide the details of the proxy resolution and the socket pool ...
9 years, 8 months ago (2011-04-14 17:02:11 UTC) #5
akalin
I like this much better! Some initial comments. http://codereview.chromium.org/6833031/diff/8018/jingle/notifier/base/proxy_resolving_client_socket.cc File jingle/notifier/base/proxy_resolving_client_socket.cc (right): http://codereview.chromium.org/6833031/diff/8018/jingle/notifier/base/proxy_resolving_client_socket.cc#newcode17 jingle/notifier/base/proxy_resolving_client_socket.cc:17: Can ...
9 years, 8 months ago (2011-04-14 21:54:50 UTC) #6
sanjeevr
Thanks for the exhaustive review. Made all the changes except adding the unit-test. Working on ...
9 years, 8 months ago (2011-04-14 23:15:43 UTC) #7
akalin
Few more comments http://codereview.chromium.org/6833031/diff/15001/jingle/notifier/base/proxy_resolving_client_socket.cc File jingle/notifier/base/proxy_resolving_client_socket.cc (right): http://codereview.chromium.org/6833031/diff/15001/jingle/notifier/base/proxy_resolving_client_socket.cc#newcode33 jingle/notifier/base/proxy_resolving_client_socket.cc:33: bound_net_log_( need to init tried_direct_connect_ http://codereview.chromium.org/6833031/diff/15001/jingle/notifier/base/proxy_resolving_client_socket.cc#newcode40 ...
9 years, 8 months ago (2011-04-15 01:47:33 UTC) #8
sanjeevr
Added the unit-tests for ProxyResolvingClientSocket as well. PTAL.
9 years, 8 months ago (2011-04-15 02:01:40 UTC) #9
sanjeevr
Addressed all your comments (no more please, I beg of you! ;) ) http://codereview.chromium.org/6833031/diff/15001/jingle/notifier/base/proxy_resolving_client_socket.cc File ...
9 years, 8 months ago (2011-04-15 04:23:34 UTC) #10
akalin
LGTM, after taking care of the below minor comments Make sure to hunt down willchan ...
9 years, 8 months ago (2011-04-15 17:41:05 UTC) #11
sanjeevr
Done http://codereview.chromium.org/6833031/diff/35006/jingle/notifier/base/chrome_async_socket.cc File jingle/notifier/base/chrome_async_socket.cc (right): http://codereview.chromium.org/6833031/diff/35006/jingle/notifier/base/chrome_async_socket.cc#newcode7 jingle/notifier/base/chrome_async_socket.cc:7: #if defined(OS_WIN) On 2011/04/15 17:41:05, akalin wrote: > ...
9 years, 8 months ago (2011-04-15 18:04:33 UTC) #12
willchan no longer on Chromium
Sorry I didn't get around to this earlier. The net/ change LGTM. I wish I ...
9 years, 8 months ago (2011-04-15 18:07:08 UTC) #13
Timur Iskhodzhanov
9 years, 8 months ago (2011-04-16 11:49:53 UTC) #14
Memory leak introduced by this CL : crbug.com/79651
Please consider running your tests under Valgrind before commiting

Powered by Google App Engine
This is Rietveld 408576698