|
Add P2PDatagramSocket and P2PStreamSocket interfaces.
Previously remoting code was using net::Socket and net::StreamSocket
for datagram and stream socket. Problem is that net::StreamSocket
interface contains a lot of methods that are not relevant for
peer-to-peer connections in remoting. Added P2PDatagramSocket and
P2PStreamSocket interfaces independent of net::Socket. This allowed to
remove a lot of the redundant code needed for net::StreamSocket
implementations. There are two new adapters required in
SslHmacChannelAuthenticator for the SSL layer, but these won't be
necessary after we migrate to QUIC.
Committed: https://crrev.com/aa22c0858c81fe75f72c1706cf052af85a82b364
Cr-Commit-Position: refs/heads/master@{#339489}
Total comments: 16
Total comments: 8
Total comments: 16
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+600 lines, -881 lines) |
Patch |
|
M |
remoting/base/buffered_socket_writer.h
|
View
|
1
2
3
4
5
6
8
|
2 chunks |
+32 lines, -79 lines |
0 comments
|
Download
|
|
M |
remoting/base/buffered_socket_writer.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+78 lines, -166 lines |
0 comments
|
Download
|
|
M |
remoting/base/buffered_socket_writer_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
remoting/client/key_event_mapper_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/authenticator_test_base.h
|
View
|
|
4 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/authenticator_test_base.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/channel_authenticator.h
|
View
|
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/channel_dispatcher_base.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/channel_dispatcher_base.cc
|
View
|
1
2
3
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/channel_multiplexer.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/channel_multiplexer.cc
|
View
|
1
2
3
|
13 chunks |
+17 lines, -72 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/channel_multiplexer_unittest.cc
|
View
|
|
7 chunks |
+28 lines, -28 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/channel_socket_adapter.h
|
View
|
1
2
3
|
3 chunks |
+9 lines, -14 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/channel_socket_adapter.cc
|
View
|
1
2
3
|
3 chunks |
+4 lines, -18 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/channel_socket_adapter_unittest.cc
|
View
|
1
|
3 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/client_video_dispatcher_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
remoting/protocol/connection_tester.h
|
View
|
|
4 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/connection_tester.cc
|
View
|
1
2
|
4 chunks |
+14 lines, -14 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/datagram_channel_factory.h
|
View
|
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/fake_authenticator.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/fake_authenticator.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/fake_datagram_socket.h
|
View
|
1
2
3
|
5 chunks |
+9 lines, -13 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/fake_datagram_socket.cc
|
View
|
1
2
3
|
3 chunks |
+8 lines, -16 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/fake_stream_socket.h
|
View
|
1
2
3
|
5 chunks |
+8 lines, -34 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/fake_stream_socket.cc
|
View
|
1
2
3
|
6 chunks |
+14 lines, -109 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/jingle_session.h
|
View
|
1
2
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/jingle_session_unittest.cc
|
View
|
1
2
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/libjingle_transport_factory.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
remoting/protocol/message_reader.h
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/message_reader.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
remoting/protocol/p2p_datagram_socket.h
|
View
|
1
2
3
4
5
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
|
A |
remoting/protocol/p2p_stream_socket.h
|
View
|
1
2
3
4
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/pseudotcp_adapter.h
|
View
|
1
2
3
|
1 chunk |
+19 lines, -35 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/pseudotcp_adapter.cc
|
View
|
1
2
3
|
12 chunks |
+28 lines, -128 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/pseudotcp_adapter_unittest.cc
|
View
|
1
2
3
|
7 chunks |
+11 lines, -20 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/pseudotcp_channel_factory.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/pseudotcp_channel_factory.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/secure_channel_factory.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/secure_channel_factory.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/ssl_hmac_channel_authenticator.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
remoting/protocol/ssl_hmac_channel_authenticator.cc
|
View
|
1
2
3
|
6 chunks |
+112 lines, -9 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc
|
View
|
1
2
|
5 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/stream_channel_factory.h
|
View
|
|
1 chunk |
+3 lines, -6 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/transport.h
|
View
|
|
3 chunks |
+10 lines, -15 lines |
0 comments
|
Download
|
|
M |
remoting/remoting_srcs.gypi
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/remoting_test.gypi
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/signaling/xmpp_signal_strategy.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
Total messages: 35 (7 generated)
|