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

Issue 2967793002: [Chromoting] Remove DataChannelManagerCallbacks constructor parameter of ClientSession (Closed)

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

Description

[Chromoting] Remove DataChannelManagerCallbacks constructor parameter of ClientSession This change removes the constructor parameter of ClientSession, which is used to initialize DataChannelManager. Instead, a public function ClientSession::RegisterDataChannelManagerCallback() has been added to achieve the goal. The motion of this change is to avoid the base::Bind() to be kept in a secondary place in ChromotingHost other than ClientSession. And I think it's also reasonable to public the Register callback function from ClientSession. So we do not need to write all registering logic in ClientSession. BUG=650926 Review-Url: https://codereview.chromium.org/2967793002 Cr-Commit-Position: refs/heads/master@{#485482} Committed: https://chromium.googlesource.com/chromium/src/+/b7da624213cfea4969a6b9385e9268e13d1d7843

Patch Set 1 #

Total comments: 4

Patch Set 2 : Resolve review comments #

Total comments: 2

Patch Set 3 : Resolve review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -33 lines) Patch
M remoting/host/chromoting_host.cc View 1 chunk +1 line, -2 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M remoting/host/client_session.h View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M remoting/host/client_session.cc View 1 2 3 chunks +8 lines, -8 lines 0 comments Download
M remoting/host/client_session_unittest.cc View 1 2 3 chunks +7 lines, -12 lines 0 comments Download
M remoting/protocol/data_channel_manager.h View 2 chunks +1 line, -3 lines 0 comments Download
M remoting/protocol/data_channel_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/test/it2me_standalone_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
jarhar
https://codereview.chromium.org/2967793002/diff/20001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (left): https://codereview.chromium.org/2967793002/diff/20001/remoting/host/chromoting_host.cc#oldcode267 remoting/host/chromoting_host.cc:267: std::vector<protocol::DataChannelManager::NameCallbackPair>())); In order to register callbacks from this file, ...
3 years, 5 months ago (2017-07-05 17:51:42 UTC) #11
Hzj_jie
https://codereview.chromium.org/2967793002/diff/20001/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (left): https://codereview.chromium.org/2967793002/diff/20001/remoting/host/chromoting_host.cc#oldcode267 remoting/host/chromoting_host.cc:267: std::vector<protocol::DataChannelManager::NameCallbackPair>())); On 2017/07/05 17:51:42, jarhar wrote: > In order ...
3 years, 5 months ago (2017-07-05 18:34:31 UTC) #12
jarhar
lgtm Joe should look at this too, but it looks good to me
3 years, 5 months ago (2017-07-06 19:58:32 UTC) #13
Hzj_jie
Yes, this is not an urgent change. I will wait for Joe's comments.
3 years, 5 months ago (2017-07-06 20:51:44 UTC) #14
Hzj_jie
3 years, 5 months ago (2017-07-10 22:48:10 UTC) #21
joedow
lgtm https://codereview.chromium.org/2967793002/diff/40001/remoting/host/client_session.h File remoting/host/client_session.h (right): https://codereview.chromium.org/2967793002/diff/40001/remoting/host/client_session.h#newcode147 remoting/host/client_session.h:147: void RegisterDataChannelManagerCallbackForTesting( nit: RegisterDataChannelManagerCallbackForTesting is a long name, ...
3 years, 5 months ago (2017-07-10 23:36:45 UTC) #22
Hzj_jie
https://codereview.chromium.org/2967793002/diff/40001/remoting/host/client_session.h File remoting/host/client_session.h (right): https://codereview.chromium.org/2967793002/diff/40001/remoting/host/client_session.h#newcode147 remoting/host/client_session.h:147: void RegisterDataChannelManagerCallbackForTesting( On 2017/07/10 23:36:45, joedow wrote: > nit: ...
3 years, 5 months ago (2017-07-11 01:11:15 UTC) #27
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/2967793002/60001
3 years, 5 months ago (2017-07-11 01:11:41 UTC) #30
commit-bot: I haz the power
3 years, 5 months ago (2017-07-11 01:18:05 UTC) #34
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b7da624213cfea4969a6b9385e92...

Powered by Google App Engine
This is Rietveld 408576698