OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_PROTOCOL_PSEUDOTCP_ADAPTER_H_ | 5 #ifndef REMOTING_PROTOCOL_PSEUDOTCP_ADAPTER_H_ |
6 #define REMOTING_PROTOCOL_PSEUDOTCP_ADAPTER_H_ | 6 #define REMOTING_PROTOCOL_PSEUDOTCP_ADAPTER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" |
16 #include "net/log/net_log.h" | 16 #include "net/log/net_log_with_source.h" |
17 #include "remoting/protocol/p2p_stream_socket.h" | 17 #include "remoting/protocol/p2p_stream_socket.h" |
18 #include "third_party/webrtc/p2p/base/pseudotcp.h" | 18 #include "third_party/webrtc/p2p/base/pseudotcp.h" |
19 | 19 |
20 namespace remoting { | 20 namespace remoting { |
21 namespace protocol { | 21 namespace protocol { |
22 | 22 |
23 class P2PDatagramSocket; | 23 class P2PDatagramSocket; |
24 | 24 |
25 // PseudoTcpAdapter adapts a P2PDatagramSocket to P2PStreamSocket using | 25 // PseudoTcpAdapter adapts a P2PDatagramSocket to P2PStreamSocket using |
26 // PseudoTcp. Because P2PStreamSockets can be deleted during callbacks, | 26 // PseudoTcp. Because P2PStreamSockets can be deleted during callbacks, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 net::NetLogWithSource net_log_; | 76 net::NetLogWithSource net_log_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); | 78 DISALLOW_COPY_AND_ASSIGN(PseudoTcpAdapter); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace protocol | 81 } // namespace protocol |
82 } // namespace remoting | 82 } // namespace remoting |
83 | 83 |
84 #endif // REMOTING_PROTOCOL_PSEUDOTCP_ADAPTER_H_ | 84 #endif // REMOTING_PROTOCOL_PSEUDOTCP_ADAPTER_H_ |
OLD | NEW |