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

Issue 22452002: Adding TLS support to the TCP Client sockets. (Closed)

Created:
7 years, 4 months ago by Mallinath (Gone from Chromium)
Modified:
7 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Adding TLS support to the TCP Client sockets. In case of WebRTC TLS socket will be created when application passes TURNS url. TurnPort will request for creating TLS sockets. In other instances TLS will be done using Pseudo-TLS, i.e. when TCPPort creates ssltcp, it's actually a pseudo-tls. TBR=vrk@chromium.org,jln@chromium.org

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -14 lines) Patch
M content/browser/renderer_host/p2p/socket_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp.cc View 1 2 3 4 5 6 7 8 9 7 chunks +90 lines, -12 lines 0 comments Download
M content/common/p2p_sockets.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/p2p/ipc_socket_factory.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -1 line 0 comments Download
M content/renderer/p2p/port_allocator.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/p2p/port_allocator.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
Mallinath (Gone from Chromium)
7 years, 4 months ago (2013-08-06 17:30:25 UTC) #1
juberti2
https://codereview.chromium.org/22452002/diff/8001/content/browser/renderer_host/p2p/socket_host.h File content/browser/renderer_host/p2p/socket_host.h (right): https://codereview.chromium.org/22452002/diff/8001/content/browser/renderer_host/p2p/socket_host.h#newcode68 content/browser/renderer_host/p2p/socket_host.h:68: STATE_TLS_CONNECTING, It seems confusing to have different meanings for ...
7 years, 4 months ago (2013-08-07 06:04:20 UTC) #2
Mallinath (Gone from Chromium)
ptal https://codereview.chromium.org/22452002/diff/8001/content/browser/renderer_host/p2p/socket_host.h File content/browser/renderer_host/p2p/socket_host.h (right): https://codereview.chromium.org/22452002/diff/8001/content/browser/renderer_host/p2p/socket_host.h#newcode68 content/browser/renderer_host/p2p/socket_host.h:68: STATE_TLS_CONNECTING, On 2013/08/07 06:04:21, juberti2 wrote: > It ...
7 years, 4 months ago (2013-08-07 23:48:19 UTC) #3
Mallinath (Gone from Chromium)
vrk - For content/renderer/media and Sergey for everything else. OWNERS, Please review, I need lgtm ...
7 years, 4 months ago (2013-08-08 22:01:41 UTC) #4
juberti2
https://codereview.chromium.org/22452002/diff/24001/content/browser/renderer_host/p2p/socket_host.h File content/browser/renderer_host/p2p/socket_host.h (right): https://codereview.chromium.org/22452002/diff/24001/content/browser/renderer_host/p2p/socket_host.h#newcode68 content/browser/renderer_host/p2p/socket_host.h:68: STATE_TLS_CONNECTING, I was thinking TLS_CONNECTING would come before OPEN, ...
7 years, 4 months ago (2013-08-08 22:16:06 UTC) #5
Mallinath (Gone from Chromium)
https://codereview.chromium.org/22452002/diff/24001/content/browser/renderer_host/p2p/socket_host.h File content/browser/renderer_host/p2p/socket_host.h (right): https://codereview.chromium.org/22452002/diff/24001/content/browser/renderer_host/p2p/socket_host.h#newcode68 content/browser/renderer_host/p2p/socket_host.h:68: STATE_TLS_CONNECTING, On 2013/08/08 22:16:06, juberti2 wrote: > I was ...
7 years, 4 months ago (2013-08-08 22:25:59 UTC) #6
Mallinath (Gone from Chromium)
On 2013/08/08 22:25:59, mallinath2 wrote: > https://codereview.chromium.org/22452002/diff/24001/content/browser/renderer_host/p2p/socket_host.h > File content/browser/renderer_host/p2p/socket_host.h (right): > > https://codereview.chromium.org/22452002/diff/24001/content/browser/renderer_host/p2p/socket_host.h#newcode68 > ...
7 years, 4 months ago (2013-08-09 22:58:52 UTC) #7
juberti2
https://codereview.chromium.org/22452002/diff/30002/content/browser/renderer_host/p2p/socket_host_tcp.cc File content/browser/renderer_host/p2p/socket_host_tcp.cc (right): https://codereview.chromium.org/22452002/diff/30002/content/browser/renderer_host/p2p/socket_host_tcp.cc#newcode134 content/browser/renderer_host/p2p/socket_host_tcp.cc:134: if (IsTlsClientSocket(type_)) { I think it would be clearest ...
7 years, 4 months ago (2013-08-09 23:49:26 UTC) #8
Mallinath (Gone from Chromium)
On 2013/08/09 23:49:26, juberti2 wrote: > https://codereview.chromium.org/22452002/diff/30002/content/browser/renderer_host/p2p/socket_host_tcp.cc > File content/browser/renderer_host/p2p/socket_host_tcp.cc (right): > > https://codereview.chromium.org/22452002/diff/30002/content/browser/renderer_host/p2p/socket_host_tcp.cc#newcode134 > ...
7 years, 4 months ago (2013-08-10 00:07:16 UTC) #9
Mallinath (Gone from Chromium)
https://codereview.chromium.org/22452002/diff/30002/content/browser/renderer_host/p2p/socket_host_tcp.cc File content/browser/renderer_host/p2p/socket_host_tcp.cc (right): https://codereview.chromium.org/22452002/diff/30002/content/browser/renderer_host/p2p/socket_host_tcp.cc#newcode134 content/browser/renderer_host/p2p/socket_host_tcp.cc:134: if (IsTlsClientSocket(type_)) { On 2013/08/09 23:49:26, juberti2 wrote: > ...
7 years, 4 months ago (2013-08-10 00:07:27 UTC) #10
juberti2
On 2013/08/10 00:07:27, mallinath2 wrote: > https://codereview.chromium.org/22452002/diff/30002/content/browser/renderer_host/p2p/socket_host_tcp.cc > File content/browser/renderer_host/p2p/socket_host_tcp.cc (right): > > https://codereview.chromium.org/22452002/diff/30002/content/browser/renderer_host/p2p/socket_host_tcp.cc#newcode134 > ...
7 years, 4 months ago (2013-08-10 00:35:20 UTC) #11
mallinath
Great, I will try that. On Fri, Aug 9, 2013 at 5:35 PM, <juberti@chromium.org> wrote: ...
7 years, 4 months ago (2013-08-10 00:43:21 UTC) #12
Sergey Ulanov
lgtm https://codereview.chromium.org/22452002/diff/53001/content/browser/renderer_host/p2p/socket_host_tcp.cc File content/browser/renderer_host/p2p/socket_host_tcp.cc (right): https://codereview.chromium.org/22452002/diff/53001/content/browser/renderer_host/p2p/socket_host_tcp.cc#newcode153 content/browser/renderer_host/p2p/socket_host_tcp.cc:153: if (state_ != STATE_TLS_CONNECTING) { nit: You can ...
7 years, 4 months ago (2013-08-12 22:25:13 UTC) #13
Mallinath (Gone from Chromium)
7 years, 4 months ago (2013-08-12 22:36:46 UTC) #14
https://codereview.chromium.org/22452002/diff/53001/content/browser/renderer_...
File content/browser/renderer_host/p2p/socket_host_tcp.cc (right):

https://codereview.chromium.org/22452002/diff/53001/content/browser/renderer_...
content/browser/renderer_host/p2p/socket_host_tcp.cc:153: if (state_ !=
STATE_TLS_CONNECTING) {
On 2013/08/12 22:25:14, Sergey Ulanov wrote:
> nit: You can just replace this block with a DCHECK(). This method is called
only
> from OnConnected() and never externally, so maybe you don't need this DCHECK
at
> all.

Done.

https://codereview.chromium.org/22452002/diff/53001/content/browser/renderer_...
content/browser/renderer_host/p2p/socket_host_tcp.cc:184: base::MessageLoop*
message_loop = base::MessageLoop::current();
On 2013/08/12 22:25:14, Sergey Ulanov wrote:
> To post a task for current thread please use
> ThreadTaskRunnerHandle()::Get()->PostTask().

Done.

https://codereview.chromium.org/22452002/diff/53001/content/browser/renderer_...
content/browser/renderer_host/p2p/socket_host_tcp.cc:185: CHECK(message_loop);
On 2013/08/12 22:25:14, Sergey Ulanov wrote:
> Do you need this? the next line will crash anyway. In either case this
sholdn't
> be a CHECK(), not DCHECK() and you won't need it with
> ThreadTaskRunnerHandle()::Get().

Done.

Powered by Google App Engine
This is Rietveld 408576698