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

Issue 2146213002: Add support for dynamic channels in WebrtcTransport. (Closed)

Created:
4 years, 5 months ago by Sergey Ulanov
Modified:
4 years, 5 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for dynamic channels in WebrtcTransport. Previously WebrtcTransport clients had to use incoming_channel_factory() to accept incoming data channels. That worked only if the receiver knows in advance names of all channels it can receive. Now the transport calls EventHandler for incoming data channels, which allows the receiver to decide dynamically if it wants to accept that channel. Also channels now can be closed dynamically and the transport doesn't terminate connection when one of the channels is closed. BUG=621691 Committed: https://crrev.com/d059c46f227d0a491f0ce2d4b8a302beda5533b3 Cr-Commit-Position: refs/heads/master@{#406639}

Patch Set 1 #

Total comments: 16

Patch Set 2 : addressed feedback #

Total comments: 2

Patch Set 3 : No DCHECK #

Patch Set 4 : fix windows #

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -131 lines) Patch
M remoting/protocol/channel_dispatcher_base.h View 1 3 chunks +16 lines, -6 lines 0 comments Download
M remoting/protocol/channel_dispatcher_base.cc View 1 chunk +16 lines, -2 lines 0 comments Download
M remoting/protocol/client_video_dispatcher_unittest.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M remoting/protocol/connection_tester.h View 3 chunks +6 lines, -4 lines 0 comments Download
M remoting/protocol/connection_tester.cc View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M remoting/protocol/connection_unittest.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M remoting/protocol/ice_connection_to_client.h View 2 chunks +2 lines, -1 line 0 comments Download
M remoting/protocol/ice_connection_to_client.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/protocol/ice_connection_to_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/ice_connection_to_host.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/protocol/message_pipe.h View 1 1 chunk +14 lines, -4 lines 0 comments Download
M remoting/protocol/message_reader.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/protocol/stream_message_pipe_adapter.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/stream_message_pipe_adapter.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_client.h View 2 chunks +4 lines, -0 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_client.cc View 1 2 5 chunks +25 lines, -5 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_host.h View 2 chunks +4 lines, -0 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_host.cc View 4 chunks +21 lines, -5 lines 0 comments Download
M remoting/protocol/webrtc_data_stream_adapter.h View 1 4 chunks +8 lines, -7 lines 0 comments Download
M remoting/protocol/webrtc_data_stream_adapter.cc View 1 10 chunks +75 lines, -60 lines 0 comments Download
M remoting/protocol/webrtc_transport.h View 1 4 chunks +13 lines, -8 lines 0 comments Download
M remoting/protocol/webrtc_transport.cc View 1 4 chunks +10 lines, -9 lines 0 comments Download
M remoting/protocol/webrtc_transport_unittest.cc View 1 2 3 14 chunks +70 lines, -12 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
Sergey Ulanov
4 years, 5 months ago (2016-07-18 23:14:58 UTC) #4
Jamie
https://codereview.chromium.org/2146213002/diff/20001/remoting/protocol/channel_dispatcher_base.h File remoting/protocol/channel_dispatcher_base.h (right): https://codereview.chromium.org/2146213002/diff/20001/remoting/protocol/channel_dispatcher_base.h#newcode53 remoting/protocol/channel_dispatcher_base.h:53: // Initialized the channel using |message_pipe| that's already connected. ...
4 years, 5 months ago (2016-07-19 18:24:48 UTC) #6
Sergey Ulanov
https://codereview.chromium.org/2146213002/diff/20001/remoting/protocol/channel_dispatcher_base.h File remoting/protocol/channel_dispatcher_base.h (right): https://codereview.chromium.org/2146213002/diff/20001/remoting/protocol/channel_dispatcher_base.h#newcode53 remoting/protocol/channel_dispatcher_base.h:53: // Initialized the channel using |message_pipe| that's already connected. ...
4 years, 5 months ago (2016-07-19 23:38:44 UTC) #7
Jamie
LGTM once the stray DCHECK is removed. https://codereview.chromium.org/2146213002/diff/20001/remoting/protocol/webrtc_connection_to_client.cc File remoting/protocol/webrtc_connection_to_client.cc (right): https://codereview.chromium.org/2146213002/diff/20001/remoting/protocol/webrtc_connection_to_client.cc#newcode158 remoting/protocol/webrtc_connection_to_client.cc:158: control_dispatcher_->Init(transport_->outgoing_channel_factory(), this); ...
4 years, 5 months ago (2016-07-20 00:31:39 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/2146213002/diff/20001/remoting/protocol/webrtc_connection_to_client.cc File remoting/protocol/webrtc_connection_to_client.cc (right): https://codereview.chromium.org/2146213002/diff/20001/remoting/protocol/webrtc_connection_to_client.cc#newcode158 remoting/protocol/webrtc_connection_to_client.cc:158: control_dispatcher_->Init(transport_->outgoing_channel_factory(), this); On 2016/07/20 00:31:39, Jamie wrote: > On ...
4 years, 5 months ago (2016-07-20 01:18:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2146213002/60001
4 years, 5 months ago (2016-07-20 01:19:12 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/223941)
4 years, 5 months ago (2016-07-20 01:47:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2146213002/80001
4 years, 5 months ago (2016-07-20 17:49:50 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/224357)
4 years, 5 months ago (2016-07-20 18:22:41 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2146213002/100001
4 years, 5 months ago (2016-07-20 18:40:06 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 5 months ago (2016-07-20 19:34:26 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 19:34:30 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 19:35:37 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d059c46f227d0a491f0ce2d4b8a302beda5533b3
Cr-Commit-Position: refs/heads/master@{#406639}

Powered by Google App Engine
This is Rietveld 408576698