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

Issue 2164163002: Simplify data channel creation logic in WebRTC-based protocol (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

Simplify data channel creation logic in WebRTC-based protocol Previously WebrtcDataStreamAdapter was implementing MessageChannelFactory, which means that it was always creating channels asynchronously and in OPEN state. Refactored it to create channels in CONNECTING state. Significantly simplifies channel setup code as it's always synchronous. It's also possible to reject incoming channels before they are connected and handle channels rejected by the peer before being fully connected. Committed: https://crrev.com/cc40af91b15bd24efc02f82169ef1b76a5e35dbb Cr-Commit-Position: refs/heads/master@{#407046}

Patch Set 1 #

Total comments: 4

Patch Set 2 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -209 lines) Patch
M remoting/protocol/channel_dispatcher_base.h View 2 chunks +3 lines, -1 line 0 comments Download
M remoting/protocol/channel_dispatcher_base.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M remoting/protocol/connection_tester.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/connection_tester.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/protocol/message_pipe.h View 2 chunks +6 lines, -2 lines 0 comments Download
M remoting/protocol/stream_message_pipe_adapter.cc View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_client.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_host.cc View 1 chunk +3 lines, -1 line 0 comments Download
M remoting/protocol/webrtc_data_stream_adapter.h View 1 2 chunks +10 lines, -34 lines 0 comments Download
M remoting/protocol/webrtc_data_stream_adapter.cc View 5 chunks +38 lines, -137 lines 0 comments Download
M remoting/protocol/webrtc_transport.h View 2 chunks +4 lines, -6 lines 0 comments Download
M remoting/protocol/webrtc_transport.cc View 3 chunks +9 lines, -7 lines 0 comments Download
M remoting/protocol/webrtc_transport_unittest.cc View 7 chunks +50 lines, -17 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Sergey Ulanov
4 years, 5 months ago (2016-07-20 22:53:54 UTC) #2
Jamie
lgtm https://codereview.chromium.org/2164163002/diff/1/remoting/protocol/webrtc_data_stream_adapter.h File remoting/protocol/webrtc_data_stream_adapter.h (right): https://codereview.chromium.org/2164163002/diff/1/remoting/protocol/webrtc_data_stream_adapter.h#newcode25 remoting/protocol/webrtc_data_stream_adapter.h:25: // WebrtcDataStreamAdapter is a MessageChannelFactory that creates channels ...
4 years, 5 months ago (2016-07-22 01:10:16 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/2164163002/diff/1/remoting/protocol/webrtc_data_stream_adapter.h File remoting/protocol/webrtc_data_stream_adapter.h (right): https://codereview.chromium.org/2164163002/diff/1/remoting/protocol/webrtc_data_stream_adapter.h#newcode25 remoting/protocol/webrtc_data_stream_adapter.h:25: // WebrtcDataStreamAdapter is a MessageChannelFactory that creates channels that ...
4 years, 5 months ago (2016-07-22 01:20:37 UTC) #4
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/2164163002/20001
4 years, 5 months ago (2016-07-22 01:21:30 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-22 03:49:33 UTC) #8
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 03:54:45 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cc40af91b15bd24efc02f82169ef1b76a5e35dbb
Cr-Commit-Position: refs/heads/master@{#407046}

Powered by Google App Engine
This is Rietveld 408576698