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

Issue 17132012: Proxy support for P2P TCP Socket (Closed)

Created:
7 years, 6 months ago by Mallinath (Gone from Chromium)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Proxy detection is important feature for the P2P sockets, as it provides additional security for enterprise use cases. Communication between webrtc endpoints happens through UDP/TCP/STUN with or without the help of TURN server. In case of firewall restrictions like outgoing UDP block and allowing only secure ports, direct communication between two endbecomes impossible without the help of TURN. In the presence of proxies, direct communication even to TURN server also becomes impossible without first esablishing connection with the proxy. This CL is trying to address the last problem. If proxies are configured(HTTP/S/SOCKS) send data(stun+media) through it. jingle_glue::ProxyResolvingClientSocket solves the problem of proxy detection and establishing the connection and also it's a type of net::StreamSocket, this class can be directly used in P2PSocketHostTcpBase. R=sergeyu@chromium.org,juberti@chromium.org,thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207919

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -91 lines) Patch
M content/browser/renderer_host/p2p/socket_dispatcher_host.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_dispatcher_host.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -3 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -8 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp.h View 1 2 3 4 5 6 7 8 4 chunks +16 lines, -6 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp.cc View 1 2 3 4 5 6 7 5 chunks +45 lines, -27 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp_server.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -41 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Mallinath (Gone from Chromium)
Justin/Sergey, Please review this CL. Unit tests are not complete yet, i am working on ...
7 years, 6 months ago (2013-06-19 00:00:56 UTC) #1
Mallinath (Gone from Chromium)
On 2013/06/19 00:00:56, mallinath2 wrote: > Justin/Sergey, > > Please review this CL. Unit tests ...
7 years, 6 months ago (2013-06-20 00:58:14 UTC) #2
Sergey Ulanov
looks mostly good. https://codereview.chromium.org/17132012/diff/10001/content/browser/renderer_host/p2p/socket_dispatcher_host.h File content/browser/renderer_host/p2p/socket_dispatcher_host.h (right): https://codereview.chromium.org/17132012/diff/10001/content/browser/renderer_host/p2p/socket_dispatcher_host.h#newcode30 content/browser/renderer_host/p2p/socket_dispatcher_host.h:30: net::URLRequestContextGetter* getter); better to call it ...
7 years, 6 months ago (2013-06-20 01:50:02 UTC) #3
Mallinath (Gone from Chromium)
PTAL https://codereview.chromium.org/17132012/diff/10001/content/browser/renderer_host/p2p/socket_dispatcher_host.h File content/browser/renderer_host/p2p/socket_dispatcher_host.h (right): https://codereview.chromium.org/17132012/diff/10001/content/browser/renderer_host/p2p/socket_dispatcher_host.h#newcode30 content/browser/renderer_host/p2p/socket_dispatcher_host.h:30: net::URLRequestContextGetter* getter); On 2013/06/20 01:50:02, Sergey Ulanov wrote: ...
7 years, 6 months ago (2013-06-20 05:24:14 UTC) #4
Sergey Ulanov
lgtm
7 years, 6 months ago (2013-06-20 19:56:33 UTC) #5
Mallinath (Gone from Chromium)
+thakis@chromium.org - for content/browser/render_host
7 years, 6 months ago (2013-06-20 20:23:58 UTC) #6
Mallinath (Gone from Chromium)
On 2013/06/20 20:23:58, mallinath2 wrote: > mailto:+thakis@chromium.org - for content/browser/render_host Ping @thakis
7 years, 6 months ago (2013-06-21 00:05:08 UTC) #7
juberti
Code lgtm Can this be unit tested? Have we done any tests with real proxies? ...
7 years, 6 months ago (2013-06-21 04:30:34 UTC) #8
Nico
renderer_host lgtm
7 years, 6 months ago (2013-06-21 04:37:14 UTC) #9
Mallinath (Gone from Chromium)
On 2013/06/21 04:30:34, juberti wrote: > Code lgtm > > Can this be unit tested? ...
7 years, 6 months ago (2013-06-21 05:46:00 UTC) #10
Mallinath (Gone from Chromium)
https://codereview.chromium.org/17132012/diff/65001/content/browser/renderer_host/p2p/socket_host_tcp.cc File content/browser/renderer_host/p2p/socket_host_tcp.cc (right): https://codereview.chromium.org/17132012/diff/65001/content/browser/renderer_host/p2p/socket_host_tcp.cc#newcode33 content/browser/renderer_host/p2p/socket_host_tcp.cc:33: //weak_ptr_factory_(this), On 2013/06/21 04:30:35, juberti wrote: > Remove? Done.
7 years, 6 months ago (2013-06-21 05:46:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mallinath@chromium.org/17132012/85002
7 years, 6 months ago (2013-06-21 19:01:32 UTC) #12
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 21:07:57 UTC) #13
Message was sent while issue was closed.
Change committed as 207919

Powered by Google App Engine
This is Rietveld 408576698