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

Issue 1545743002: Move ownership of Transport out of Session. (Closed)

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

Description

Move ownership of Transport out of Session. Previously Session implementations were responsible for creation and ownership of Transport objects. Now Connection* classes own both Transport and Session instances. This allows to ensure that correct type of transport is created (i.e. WebRTC connection uses WebrtcTransport). It also makes it possible for the host to support two types of connections similtaneously (previously Ice connections were not working when the host was started with --enable-webrtc). Session is no longer responsible for tracking state of the Transport, so it doesn't need CONNECTED state anymore. Session just passes transport-info messages to and from transport and the Connection object is responsible for tracking the state of the transport. BUG=547158 Committed: https://crrev.com/e57676028aa68166bcffa1f234ec8770a4d73e8a Cr-Commit-Position: refs/heads/master@{#367003}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+546 lines, -642 lines) Patch
M remoting/client/chromoting_client.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M remoting/client/chromoting_client.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M remoting/host/chromoting_host.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M remoting/host/chromoting_host.cc View 1 4 chunks +7 lines, -3 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 1 3 chunks +11 lines, -10 lines 0 comments Download
M remoting/host/it2me/it2me_host.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 5 chunks +11 lines, -25 lines 0 comments Download
M remoting/protocol/connection_to_host.h View 3 chunks +3 lines, -0 lines 0 comments Download
M remoting/protocol/connection_unittest.cc View 1 8 chunks +47 lines, -11 lines 0 comments Download
M remoting/protocol/fake_authenticator.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/protocol/fake_connection_to_host.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/fake_connection_to_host.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M remoting/protocol/fake_session.h View 1 2 chunks +7 lines, -19 lines 0 comments Download
M remoting/protocol/fake_session.cc View 3 chunks +29 lines, -33 lines 0 comments Download
M remoting/protocol/ice_connection_to_client.h View 1 5 chunks +10 lines, -5 lines 0 comments Download
M remoting/protocol/ice_connection_to_client.cc View 1 8 chunks +22 lines, -24 lines 0 comments Download
M remoting/protocol/ice_connection_to_host.h View 1 6 chunks +11 lines, -4 lines 0 comments Download
M remoting/protocol/ice_connection_to_host.cc View 1 5 chunks +22 lines, -17 lines 0 comments Download
M remoting/protocol/ice_transport.h View 4 chunks +28 lines, -29 lines 0 comments Download
M remoting/protocol/ice_transport.cc View 4 chunks +25 lines, -30 lines 0 comments Download
M remoting/protocol/ice_transport_channel.h View 1 chunk +7 lines, -7 lines 0 comments Download
M remoting/protocol/ice_transport_channel.cc View 1 5 chunks +8 lines, -8 lines 0 comments Download
M remoting/protocol/ice_transport_unittest.cc View 1 4 chunks +19 lines, -47 lines 0 comments Download
M remoting/protocol/jingle_session.h View 1 7 chunks +10 lines, -15 lines 0 comments Download
M remoting/protocol/jingle_session.cc View 1 14 chunks +52 lines, -65 lines 0 comments Download
M remoting/protocol/jingle_session_manager.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M remoting/protocol/jingle_session_manager.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M remoting/protocol/jingle_session_unittest.cc View 1 10 chunks +20 lines, -13 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.h View 1 1 chunk +1 line, -9 lines 0 comments Download
M remoting/protocol/session.h View 1 4 chunks +13 lines, -15 lines 0 comments Download
M remoting/protocol/transport.h View 1 3 chunks +10 lines, -61 lines 0 comments Download
M remoting/protocol/transport.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M remoting/protocol/transport_context.h View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/protocol/transport_context.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_client.h View 1 4 chunks +11 lines, -3 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_client.cc View 1 10 chunks +28 lines, -28 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_host.h View 1 5 chunks +8 lines, -2 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_host.cc View 1 6 chunks +17 lines, -12 lines 0 comments Download
M remoting/protocol/webrtc_transport.h View 4 chunks +17 lines, -23 lines 0 comments Download
M remoting/protocol/webrtc_transport.cc View 1 7 chunks +15 lines, -34 lines 0 comments Download
M remoting/protocol/webrtc_transport_unittest.cc View 1 6 chunks +26 lines, -52 lines 0 comments Download
M remoting/test/protocol_perftest.cc View 1 2 chunks +5 lines, -9 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Sergey Ulanov
5 years ago (2015-12-22 18:24:23 UTC) #3
Jamie
lgtm https://codereview.chromium.org/1545743002/diff/1/remoting/protocol/session.h File remoting/protocol/session.h (left): https://codereview.chromium.org/1545743002/diff/1/remoting/protocol/session.h#oldcode45 remoting/protocol/session.h:45: CONNECTED, Removing the CONNECTED state seems like a ...
4 years, 12 months ago (2015-12-24 15:03:18 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/1545743002/diff/1/remoting/protocol/session.h File remoting/protocol/session.h (left): https://codereview.chromium.org/1545743002/diff/1/remoting/protocol/session.h#oldcode45 remoting/protocol/session.h:45: CONNECTED, On 2015/12/24 15:03:18, Jamie wrote: > Removing the ...
4 years, 12 months ago (2015-12-28 18:58:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545743002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545743002/1
4 years, 12 months ago (2015-12-28 19:00:04 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/2678) android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, ...
4 years, 12 months ago (2015-12-28 19:03:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545743002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545743002/20001
4 years, 12 months ago (2015-12-28 19:16:34 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 12 months ago (2015-12-28 19:49:10 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/e57676028aa68166bcffa1f234ec8770a4d73e8a Cr-Commit-Position: refs/heads/master@{#367003}
4 years, 12 months ago (2015-12-28 19:50:11 UTC) #17
Nico
4 years, 12 months ago (2015-12-29 03:31:02 UTC) #18
Message was sent while issue was closed.
On 2015/12/28 19:50:11, commit-bot: I haz the power wrote:
> Patchset 2 (id:??) landed as
> https://crrev.com/e57676028aa68166bcffa1f234ec8770a4d73e8a
> Cr-Commit-Position: refs/heads/master@{#367003}

This might have broken tests in official builds:
http://build.chromium.org/p/chromium.fyi

Powered by Google App Engine
This is Rietveld 408576698