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

Issue 1521883006: Add TransportContext class. (Closed)

Created:
5 years ago by Sergey Ulanov
Modified:
5 years ago
Reviewers:
Jamie
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, 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

Add TransportContext class. The new TransportContext is now used to store all parameters required to initialize Transport objects and is applicable both to IceTransport and WebrtcTransport. It also allowed to reduce amount of boilerplate code when passing around these parameters. BUG=547158 Committed: https://crrev.com/86030f38b4a7be9418c50da7e83ff55749438dba Cr-Commit-Position: refs/heads/master@{#365649}

Patch Set 1 : #

Total comments: 12

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+577 lines, -661 lines) Patch
M remoting/client/chromoting_client.h View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/client/chromoting_client.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.cc View 1 2 3 4 5 2 chunks +10 lines, -10 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M remoting/client/plugin/pepper_port_allocator.h View 2 chunks +15 lines, -0 lines 0 comments Download
M remoting/client/plugin/pepper_port_allocator.cc View 2 chunks +12 lines, -9 lines 0 comments Download
M remoting/host/cast_extension_session.cc View 1 2 2 chunks +5 lines, -13 lines 0 comments Download
M remoting/host/it2me/it2me_host.cc View 3 chunks +15 lines, -4 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 chunks +16 lines, -20 lines 0 comments Download
D remoting/host/session_manager_factory.h View 1 chunk +0 lines, -32 lines 0 comments Download
M remoting/host/session_manager_factory.cc View 1 chunk +0 lines, -36 lines 0 comments Download
M remoting/protocol/chromium_port_allocator.h View 1 2 2 chunks +23 lines, -6 lines 0 comments Download
M remoting/protocol/chromium_port_allocator.cc View 4 chunks +15 lines, -28 lines 0 comments Download
D remoting/protocol/chromium_port_allocator_factory.h View 1 2 1 chunk +0 lines, -47 lines 0 comments Download
D remoting/protocol/chromium_port_allocator_factory.cc View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
M remoting/protocol/connection_to_host.h View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/protocol/connection_to_host_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/connection_to_host_impl.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M remoting/protocol/fake_connection_to_host.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/fake_connection_to_host.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M remoting/protocol/ice_transport.h View 4 chunks +17 lines, -15 lines 0 comments Download
M remoting/protocol/ice_transport.cc View 4 chunks +16 lines, -25 lines 0 comments Download
M remoting/protocol/ice_transport_channel.h View 4 chunks +10 lines, -12 lines 0 comments Download
M remoting/protocol/ice_transport_channel.cc View 7 chunks +33 lines, -43 lines 0 comments Download
D remoting/protocol/ice_transport_factory.h View 1 chunk +0 lines, -61 lines 0 comments Download
D remoting/protocol/ice_transport_factory.cc View 1 chunk +0 lines, -93 lines 0 comments Download
M remoting/protocol/ice_transport_unittest.cc View 3 chunks +9 lines, -13 lines 0 comments Download
M remoting/protocol/jingle_session_unittest.cc View 1 3 chunks +10 lines, -12 lines 0 comments Download
M remoting/protocol/port_allocator_factory.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
A remoting/protocol/transport_context.h View 1 chunk +92 lines, -0 lines 0 comments Download
A remoting/protocol/transport_context.cc View 1 1 chunk +122 lines, -0 lines 0 comments Download
M remoting/protocol/webrtc_transport.h View 1 2 5 chunks +10 lines, -12 lines 0 comments Download
M remoting/protocol/webrtc_transport.cc View 1 2 9 chunks +26 lines, -25 lines 0 comments Download
M remoting/protocol/webrtc_transport_unittest.cc View 2 chunks +12 lines, -7 lines 0 comments Download
M remoting/remoting_host_srcs.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M remoting/remoting_srcs.gypi View 1 2 3 chunks +2 lines, -4 lines 0 comments Download
M remoting/test/fake_port_allocator.h View 3 chunks +22 lines, -8 lines 0 comments Download
M remoting/test/fake_port_allocator.cc View 3 chunks +20 lines, -29 lines 0 comments Download
M remoting/test/protocol_perftest.cc View 5 chunks +27 lines, -26 lines 0 comments Download
M remoting/test/test_chromoting_client.cc View 3 chunks +8 lines, -9 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (21 generated)
Sergey Ulanov
5 years ago (2015-12-14 20:18:14 UTC) #7
Jamie
I've only looked at the new class so far. I'll hold off on the rest ...
5 years ago (2015-12-14 23:29:05 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/1521883006/diff/60001/remoting/protocol/transport_context.cc File remoting/protocol/transport_context.cc (right): https://codereview.chromium.org/1521883006/diff/60001/remoting/protocol/transport_context.cc#newcode45 remoting/protocol/transport_context.cc:45: callback.Run(CreatePortAllocatorInternal()); On 2015/12/14 23:29:05, Jamie wrote: > In our ...
5 years ago (2015-12-15 18:52:15 UTC) #9
Jamie
lgtm
5 years ago (2015-12-15 21:03:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1521883006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1521883006/80001
5 years ago (2015-12-15 23:25:21 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/108327) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years ago (2015-12-15 23:29:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1521883006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1521883006/100001
5 years ago (2015-12-16 01:51:05 UTC) #17
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/81181)
5 years ago (2015-12-16 02:21:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1521883006/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1521883006/120001
5 years ago (2015-12-16 18:38:12 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/148)
5 years ago (2015-12-16 19:36:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1521883006/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1521883006/140001
5 years ago (2015-12-16 19:44:14 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/188)
5 years ago (2015-12-16 20:23:52 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1521883006/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1521883006/160001
5 years ago (2015-12-16 21:46:24 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:160001)
5 years ago (2015-12-16 22:45:09 UTC) #34
commit-bot: I haz the power
5 years ago (2015-12-16 22:46:27 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/86030f38b4a7be9418c50da7e83ff55749438dba
Cr-Commit-Position: refs/heads/master@{#365649}

Powered by Google App Engine
This is Rietveld 408576698