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

Side by Side Diff: webrtc/p2p/base/tcpport.h

Issue 1586063002: Revert of Connect TurnPort and TCPPort to AsyncPacketSocket::SignalSentPacket. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/stunport.cc ('k') | webrtc/p2p/base/tcpport.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 rtc::AsyncPacketSocket* GetIncoming( 90 rtc::AsyncPacketSocket* GetIncoming(
91 const rtc::SocketAddress& addr, bool remove = false); 91 const rtc::SocketAddress& addr, bool remove = false);
92 92
93 // Receives packet signal from the local TCP Socket. 93 // Receives packet signal from the local TCP Socket.
94 void OnReadPacket(rtc::AsyncPacketSocket* socket, 94 void OnReadPacket(rtc::AsyncPacketSocket* socket,
95 const char* data, size_t size, 95 const char* data, size_t size,
96 const rtc::SocketAddress& remote_addr, 96 const rtc::SocketAddress& remote_addr,
97 const rtc::PacketTime& packet_time); 97 const rtc::PacketTime& packet_time);
98 98
99 void OnSentPacket(rtc::AsyncPacketSocket* socket,
100 const rtc::SentPacket& sent_packet) override;
101
102 void OnReadyToSend(rtc::AsyncPacketSocket* socket); 99 void OnReadyToSend(rtc::AsyncPacketSocket* socket);
103 100
104 void OnAddressReady(rtc::AsyncPacketSocket* socket, 101 void OnAddressReady(rtc::AsyncPacketSocket* socket,
105 const rtc::SocketAddress& address); 102 const rtc::SocketAddress& address);
106 103
107 // TODO: Is this still needed? 104 // TODO: Is this still needed?
108 bool incoming_only_; 105 bool incoming_only_;
109 bool allow_listen_; 106 bool allow_listen_;
110 rtc::AsyncPacketSocket* socket_; 107 rtc::AsyncPacketSocket* socket_;
111 int error_; 108 int error_;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 176
180 // Allow test case to overwrite the default timeout period. 177 // Allow test case to overwrite the default timeout period.
181 int reconnection_timeout_; 178 int reconnection_timeout_;
182 179
183 friend class TCPPort; 180 friend class TCPPort;
184 }; 181 };
185 182
186 } // namespace cricket 183 } // namespace cricket
187 184
188 #endif // WEBRTC_P2P_BASE_TCPPORT_H_ 185 #endif // WEBRTC_P2P_BASE_TCPPORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/stunport.cc ('k') | webrtc/p2p/base/tcpport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698