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

Issue 1649063003: Add MessagePipe interface. Use it in ChannelDispatcherBase. (Closed)

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

Description

Add MessagePipe interface. Use it in ChannelDispatcherBase. In WebRTC data streams are message-based, so the message framing mechanism use for the old protocol doesn't make sense for the WebRTC-based protocol. The new MessagePipe represents an abstract messaging channel. StreamMessagePipeAdapter implements framing for the old protocol. A different MessagePipe is going to be used for WebRTC-based protocol. BUG=547158 Committed: https://crrev.com/f1005f6e964841763ae3792ff6aea399f9514a67 Cr-Commit-Position: refs/heads/master@{#373340}

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -53 lines) Patch
M remoting/protocol/audio_reader.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/audio_writer.cc View 1 2 3 4 1 chunk +5 lines, -8 lines 0 comments Download
M remoting/protocol/channel_dispatcher_base.h View 1 2 3 2 chunks +9 lines, -7 lines 0 comments Download
M remoting/protocol/channel_dispatcher_base.cc View 1 3 chunks +8 lines, -13 lines 0 comments Download
M remoting/protocol/client_control_dispatcher.cc View 1 2 3 4 2 chunks +9 lines, -7 lines 0 comments Download
M remoting/protocol/client_event_dispatcher.cc View 1 2 3 4 3 chunks +8 lines, -10 lines 0 comments Download
M remoting/protocol/client_video_dispatcher.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M remoting/protocol/client_video_dispatcher_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/host_control_dispatcher.cc View 1 2 3 4 2 chunks +7 lines, -5 lines 0 comments Download
M remoting/protocol/host_event_dispatcher.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/host_video_dispatcher.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
A remoting/protocol/message_pipe.h View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A remoting/protocol/stream_message_pipe_adapter.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A remoting/protocol/stream_message_pipe_adapter.cc View 1 1 chunk +58 lines, -0 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_client.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M remoting/remoting_srcs.gypi View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
Sergey Ulanov
4 years, 10 months ago (2016-01-30 01:24:49 UTC) #2
Jamie
https://codereview.chromium.org/1649063003/diff/1/remoting/protocol/channel_dispatcher_base.h File remoting/protocol/channel_dispatcher_base.h (right): https://codereview.chromium.org/1649063003/diff/1/remoting/protocol/channel_dispatcher_base.h#newcode52 remoting/protocol/channel_dispatcher_base.h:52: bool is_connected() { return message_pipe() != nullptr; } message_pipe() ...
4 years, 10 months ago (2016-02-01 22:48:20 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/1649063003/diff/1/remoting/protocol/channel_dispatcher_base.h File remoting/protocol/channel_dispatcher_base.h (right): https://codereview.chromium.org/1649063003/diff/1/remoting/protocol/channel_dispatcher_base.h#newcode52 remoting/protocol/channel_dispatcher_base.h:52: bool is_connected() { return message_pipe() != nullptr; } On ...
4 years, 10 months ago (2016-02-02 21:16:42 UTC) #7
Sergey Ulanov
https://codereview.chromium.org/1649063003/diff/100001/remoting/protocol/webrtc_connection_to_client.cc File remoting/protocol/webrtc_connection_to_client.cc (right): https://codereview.chromium.org/1649063003/diff/100001/remoting/protocol/webrtc_connection_to_client.cc#newcode171 remoting/protocol/webrtc_connection_to_client.cc:171: if (control_dispatcher_ && control_dispatcher_->is_connected() && This change needs to ...
4 years, 10 months ago (2016-02-02 21:22:48 UTC) #8
Jamie
lgtm https://codereview.chromium.org/1649063003/diff/1/remoting/protocol/stream_message_pipe_adapter.cc File remoting/protocol/stream_message_pipe_adapter.cc (right): https://codereview.chromium.org/1649063003/diff/1/remoting/protocol/stream_message_pipe_adapter.cc#newcode44 remoting/protocol/stream_message_pipe_adapter.cc:44: return; On 2016/02/02 21:16:42, Sergey Ulanov wrote: > ...
4 years, 10 months ago (2016-02-02 22:43:10 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/1649063003/diff/1/remoting/protocol/stream_message_pipe_adapter.cc File remoting/protocol/stream_message_pipe_adapter.cc (right): https://codereview.chromium.org/1649063003/diff/1/remoting/protocol/stream_message_pipe_adapter.cc#newcode44 remoting/protocol/stream_message_pipe_adapter.cc:44: return; On 2016/02/02 22:43:10, Jamie wrote: > On 2016/02/02 ...
4 years, 10 months ago (2016-02-03 18:45:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1649063003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1649063003/120001
4 years, 10 months ago (2016-02-03 18:47:40 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/98514)
4 years, 10 months ago (2016-02-03 19:22:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1649063003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1649063003/140001
4 years, 10 months ago (2016-02-03 20:11:46 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 10 months ago (2016-02-03 21:11:38 UTC) #19
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 21:13:42 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f1005f6e964841763ae3792ff6aea399f9514a67
Cr-Commit-Position: refs/heads/master@{#373340}

Powered by Google App Engine
This is Rietveld 408576698