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

Issue 113811: Adding socks4 support for chromium. tested for windows and linux.... (Closed)

Created:
11 years, 7 months ago by Arindam
Modified:
7 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, wtc, darin (slow to review)
Visibility:
Public.

Description

Adding socks4 support for chromium. tested for windows and linux. includes socks4, socks4a TEST=change proxy settings to use proxy and set only the socks proxy fields (others must remain blank). Use CCProxy for windows or 'ssh -D' for linux / cygwin if trying it via localhost. Browser should successfully open both http and https URLs. tests are also at HttpNetworkTransactionTest.SOCKS* BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19005

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 54

Patch Set 5 : '' #

Total comments: 24

Patch Set 6 : '' #

Total comments: 5

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 87

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 57

Patch Set 12 : replying to willchan's comments, added IPv6 failovers #

Total comments: 4

Patch Set 13 : fixing htons issue #

Patch Set 14 : final patch #

Patch Set 15 : final patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+739 lines, -10 lines) Patch
M net/http/http_network_transaction.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +58 lines, -9 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +109 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M net/proxy/proxy_config.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +11 lines, -0 lines 0 comments Download
M net/proxy/proxy_config_unittest.cc View 5 6 7 8 9 10 11 12 13 1 chunk +11 lines, -0 lines 0 comments Download
M net/proxy/proxy_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M net/proxy/proxy_server_unittest.cc View 5 6 7 8 9 10 11 12 13 2 chunks +20 lines, -1 line 0 comments Download
A net/socket/socks_client_socket.h View 1 chunk +131 lines, -0 lines 0 comments Download
A net/socket/socks_client_socket.cc View 1 chunk +390 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
eroman
Great work! I did a first pass of the change, focusing on the code style. ...
11 years, 7 months ago (2009-05-27 00:46:43 UTC) #1
Arindam
Please note that comments not replied to have been acknowledged and I will try to ...
11 years, 7 months ago (2009-05-27 06:53:21 UTC) #2
eroman
http://codereview.chromium.org/113811/diff/45/1033 File net/base/socks_client_socket.h (right): http://codereview.chromium.org/113811/diff/45/1033#newcode17 Line 17: class SocksClientSocket : public ClientSocket { On 2009/05/27 ...
11 years, 7 months ago (2009-05-27 21:02:31 UTC) #3
eroman
> For unit-tests, I found that we use a python httpd for http/ftp. Should > ...
11 years, 7 months ago (2009-05-27 22:23:08 UTC) #4
Arindam
I added a few unit tests, atleast for http_network_transaction as you suggested. I will be ...
11 years, 6 months ago (2009-05-29 12:50:22 UTC) #5
eroman
> I will be adding more unit tests for socksclientsocket, but can that be in ...
11 years, 6 months ago (2009-05-29 21:09:26 UTC) #6
Arindam
I had to re-do the minor changes at some places since on updating the tree ...
11 years, 6 months ago (2009-06-19 04:08:14 UTC) #7
eroman
This is almost ready to be committed. Following are some more comments. http://codereview.chromium.org/113811/diff/5072/5080 File net/base/client_socket_factory.cc ...
11 years, 6 months ago (2009-06-19 07:02:49 UTC) #8
Arindam
I was not able to find the HostResolver for http to pass along, so I ...
11 years, 6 months ago (2009-06-19 20:43:10 UTC) #9
eroman
LGTM! (Please ready my last batch of comments though.) Let me know once you had ...
11 years, 6 months ago (2009-06-20 00:27:40 UTC) #10
eroman
[adding some other people as FYI... speak now or forever hold your peace]
11 years, 6 months ago (2009-06-20 00:28:47 UTC) #11
willchan no longer on Chromium
Glad to see this getting implemented, thanks for helping out! I've just got some stylistic ...
11 years, 6 months ago (2009-06-20 02:35:15 UTC) #12
eroman
http://codereview.chromium.org/113811/diff/8001/9001 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/113811/diff/8001/9001#newcode145 Line 145: using_socks_proxy_(false), On 2009/06/20 02:35:15, willchan wrote: > I'm ...
11 years, 6 months ago (2009-06-20 04:56:58 UTC) #13
Arindam
A small change in this : When I am doing DNS resolution and the result ...
11 years, 6 months ago (2009-06-20 11:42:55 UTC) #14
willchan no longer on Chromium
Sorry for missing the note about using_proxy_, there was a lot of previous context I ...
11 years, 6 months ago (2009-06-20 16:41:59 UTC) #15
Arindam
http://codereview.chromium.org/113811/diff/8001/9006 File net/base/socks_client_socket.cc (right): http://codereview.chromium.org/113811/diff/8001/9006#newcode197 Line 197: void SOCKSClientSocket::BuildHandshakeWriteBuffer() { On 2009/06/20 16:41:59, willchan wrote: ...
11 years, 6 months ago (2009-06-21 00:18:23 UTC) #16
willchan no longer on Chromium
11 years, 6 months ago (2009-06-21 01:46:01 UTC) #17
lgtm!

http://codereview.chromium.org/113811/diff/8001/9006
File net/base/socks_client_socket.cc (right):

http://codereview.chromium.org/113811/diff/8001/9006#newcode197
Line 197: void SOCKSClientSocket::BuildHandshakeWriteBuffer() {
On 2009/06/21 00:18:28, Arindam wrote:
> Did not know about std::string supporting '\0'. Tried it but had issues with
> const_casts and type castings on the string data ... I think I should
implement
> it in the follow-up CL which should include other refactorings.

Ah yes.  I guess it might involve some evil casts to get this to work with
std::string.  I'm fine with punting it to a followup cl.

Powered by Google App Engine
This is Rietveld 408576698