|
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}
Total comments: 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
|
Total messages: 18 (9 generated)
|