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

Issue 2907073003: [Chromoting] Add DataChannelManager to manage optional incoming data channels (Closed)

Created:
3 years, 6 months ago by Hzj_jie
Modified:
3 years, 6 months ago
Reviewers:
Sergey Ulanov, joedow
CC:
chromium-reviews, chromoting-reviews_chromium.org, joedow
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromoting] Add DataChannelManager to manage optional incoming data channels DataChannelManager manages a set of factory functions to create DataChannelHandler instances to handle named data channels. So once the peer creates a new data channel, DataChannelManager can automatically handle it. Lifetime of a DataChannelHandler is consistent with the MessagePipe it received: it deletes itself once the MessagePipe is closed. BUG=650926 Review-Url: https://codereview.chromium.org/2907073003 Cr-Original-Commit-Position: refs/heads/master@{#478442} Committed: https://chromium.googlesource.com/chromium/src/+/4a15f818c5fdbd1e2c44bf102047ecd9b2c166e2 Review-Url: https://codereview.chromium.org/2907073003 Cr-Commit-Position: refs/heads/master@{#478537} Committed: https://chromium.googlesource.com/chromium/src/+/f81a3b57195b0cfde497915d8297b760111420fb

Patch Set 1 #

Total comments: 84

Patch Set 2 : Resolve review comments #

Patch Set 3 : Resolve review comments #

Total comments: 2

Patch Set 4 : Resolve review comments #

Total comments: 8

Patch Set 5 : Resolve review comments #

Total comments: 36

Patch Set 6 : Resolve review comments #

Patch Set 7 : Remove return value of Send() function and asynchronously destruction. #

Total comments: 2

Patch Set 8 : Update several comments #

Patch Set 9 : Fix test failure without DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+805 lines, -4 lines) Patch
M remoting/proto/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A remoting/proto/test.proto View 1 1 chunk +17 lines, -0 lines 0 comments Download
M remoting/protocol/BUILD.gn View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -0 lines 0 comments Download
A remoting/protocol/data_channel_manager.h View 1 2 3 4 5 6 7 1 chunk +47 lines, -0 lines 0 comments Download
A remoting/protocol/data_channel_manager.cc View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
A remoting/protocol/data_channel_manager_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +265 lines, -0 lines 0 comments Download
A remoting/protocol/fake_message_pipe.h View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download
A remoting/protocol/fake_message_pipe.cc View 1 1 chunk +124 lines, -0 lines 0 comments Download
A remoting/protocol/fake_message_pipe_wrapper.h View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A remoting/protocol/fake_message_pipe_wrapper.cc View 1 1 chunk +45 lines, -0 lines 0 comments Download
A remoting/protocol/named_message_pipe_handler.h View 1 2 3 4 5 6 1 chunk +77 lines, -0 lines 0 comments Download
A remoting/protocol/named_message_pipe_handler.cc View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download
M remoting/protocol/webrtc_data_stream_adapter.h View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 103 (83 generated)
Hzj_jie
3 years, 6 months ago (2017-05-29 19:00:28 UTC) #19
joedow
https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc File remoting/protocol/data_channel_handler.cc (right): https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc#newcode25 remoting/protocol/data_channel_handler.cc:25: DataChannelHandler::~DataChannelHandler() = default; Don't you want to call Close() ...
3 years, 6 months ago (2017-05-30 16:24:19 UTC) #23
Hzj_jie
https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc File remoting/protocol/data_channel_handler.cc (right): https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc#newcode25 remoting/protocol/data_channel_handler.cc:25: DataChannelHandler::~DataChannelHandler() = default; On 2017/05/30 16:24:17, joedow wrote: > ...
3 years, 6 months ago (2017-05-31 00:11:54 UTC) #31
Sergey Ulanov
Haven't looked through the whole CL yet. Couple high-level comments about DataChannelHandler https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc File remoting/protocol/data_channel_handler.cc ...
3 years, 6 months ago (2017-05-31 19:49:03 UTC) #34
Hzj_jie
https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc File remoting/protocol/data_channel_handler.cc (right): https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc#newcode25 remoting/protocol/data_channel_handler.cc:25: DataChannelHandler::~DataChannelHandler() = default; On 2017/05/31 19:49:02, Sergey Ulanov wrote: ...
3 years, 6 months ago (2017-06-01 15:43:34 UTC) #52
joedow
https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc File remoting/protocol/data_channel_handler.cc (right): https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc#newcode30 remoting/protocol/data_channel_handler.cc:30: OnDisconnected(); On 2017/05/31 00:11:51, Hzj_jie wrote: > On 2017/05/30 ...
3 years, 6 months ago (2017-06-01 17:25:26 UTC) #53
Hzj_jie
https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc File remoting/protocol/data_channel_handler.cc (right): https://codereview.chromium.org/2907073003/diff/80001/remoting/protocol/data_channel_handler.cc#newcode30 remoting/protocol/data_channel_handler.cc:30: OnDisconnected(); On 2017/06/01 17:25:25, joedow wrote: > On 2017/05/31 ...
3 years, 6 months ago (2017-06-01 19:32:09 UTC) #56
Sergey Ulanov
I agree with Joe that regular expression are not necessary for this feature. https://codereview.chromium.org/2907073003/diff/220001/remoting/protocol/data_channel_manager.h File ...
3 years, 6 months ago (2017-06-05 18:48:29 UTC) #59
Hzj_jie
https://codereview.chromium.org/2907073003/diff/220001/remoting/protocol/data_channel_manager.h File remoting/protocol/data_channel_manager.h (right): https://codereview.chromium.org/2907073003/diff/220001/remoting/protocol/data_channel_manager.h#newcode8 remoting/protocol/data_channel_manager.h:8: #include <map> On 2017/06/05 18:48:29, Sergey Ulanov wrote: > ...
3 years, 6 months ago (2017-06-06 03:21:52 UTC) #62
joedow
https://codereview.chromium.org/2907073003/diff/240001/remoting/protocol/data_channel_handler.cc File remoting/protocol/data_channel_handler.cc (right): https://codereview.chromium.org/2907073003/diff/240001/remoting/protocol/data_channel_handler.cc#newcode35 remoting/protocol/data_channel_handler.cc:35: base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); Why not just delete now instead of ...
3 years, 6 months ago (2017-06-06 23:33:26 UTC) #65
Hzj_jie
https://codereview.chromium.org/2907073003/diff/240001/remoting/protocol/data_channel_handler.cc File remoting/protocol/data_channel_handler.cc (right): https://codereview.chromium.org/2907073003/diff/240001/remoting/protocol/data_channel_handler.cc#newcode35 remoting/protocol/data_channel_handler.cc:35: base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); On 2017/06/06 23:33:25, joedow wrote: > Why ...
3 years, 6 months ago (2017-06-07 17:31:25 UTC) #73
Hzj_jie
Talked offline with Joe, the code has been updated.
3 years, 6 months ago (2017-06-09 02:20:31 UTC) #78
joedow
lgtm https://codereview.chromium.org/2907073003/diff/300001/remoting/protocol/data_channel_manager.h File remoting/protocol/data_channel_manager.h (right): https://codereview.chromium.org/2907073003/diff/300001/remoting/protocol/data_channel_manager.h#newcode35 remoting/protocol/data_channel_manager.h:35: // Executes the registerd callback to handle the ...
3 years, 6 months ago (2017-06-09 03:29:47 UTC) #79
Hzj_jie
https://codereview.chromium.org/2907073003/diff/300001/remoting/protocol/data_channel_manager.h File remoting/protocol/data_channel_manager.h (right): https://codereview.chromium.org/2907073003/diff/300001/remoting/protocol/data_channel_manager.h#newcode35 remoting/protocol/data_channel_manager.h:35: // Executes the registerd callback to handle the new ...
3 years, 6 months ago (2017-06-09 17:52:54 UTC) #82
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/2907073003/320001
3 years, 6 months ago (2017-06-09 23:03:21 UTC) #87
commit-bot: I haz the power
Committed patchset #8 (id:320001) as https://chromium.googlesource.com/chromium/src/+/4a15f818c5fdbd1e2c44bf102047ecd9b2c166e2
3 years, 6 months ago (2017-06-09 23:08:51 UTC) #90
findit-for-me
Findit (https://goo.gl/kROfz5) identified this CL at revision 478442 as the culprit for failures in the ...
3 years, 6 months ago (2017-06-09 23:53:51 UTC) #91
Devlin
A revert of this CL (patchset #8 id:320001) has been created in https://codereview.chromium.org/2928133005/ by rdevlin.cronin@chromium.org. ...
3 years, 6 months ago (2017-06-10 01:06:33 UTC) #92
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/2907073003/340001
3 years, 6 months ago (2017-06-11 22:58:56 UTC) #100
commit-bot: I haz the power
3 years, 6 months ago (2017-06-11 23:03:58 UTC) #103
Message was sent while issue was closed.
Committed patchset #9 (id:340001) as
https://chromium.googlesource.com/chromium/src/+/f81a3b57195b0cfde497915d8297...

Powered by Google App Engine
This is Rietveld 408576698