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

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

Issue 1577873003: Connect TurnPort and TCPPort to AsyncPacketSocket::SignalSentPacket. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Improve comments. 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/tcpport.cc ('k') | webrtc/p2p/base/turnport.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 2012 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2012 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 const rtc::SocketAddress& remote_addr, 99 const rtc::SocketAddress& remote_addr,
100 const rtc::PacketTime& packet_time) { 100 const rtc::PacketTime& packet_time) {
101 OnReadPacket(socket, data, size, remote_addr, packet_time); 101 OnReadPacket(socket, data, size, remote_addr, packet_time);
102 return true; 102 return true;
103 } 103 }
104 virtual void OnReadPacket(rtc::AsyncPacketSocket* socket, 104 virtual void OnReadPacket(rtc::AsyncPacketSocket* socket,
105 const char* data, size_t size, 105 const char* data, size_t size,
106 const rtc::SocketAddress& remote_addr, 106 const rtc::SocketAddress& remote_addr,
107 const rtc::PacketTime& packet_time); 107 const rtc::PacketTime& packet_time);
108 108
109 virtual void OnSentPacket(rtc::AsyncPacketSocket* socket,
110 const rtc::SentPacket& sent_packet);
109 virtual void OnReadyToSend(rtc::AsyncPacketSocket* socket); 111 virtual void OnReadyToSend(rtc::AsyncPacketSocket* socket);
110 virtual bool SupportsProtocol(const std::string& protocol) const { 112 virtual bool SupportsProtocol(const std::string& protocol) const {
111 // Turn port only connects to UDP candidates. 113 // Turn port only connects to UDP candidates.
112 return protocol == UDP_PROTOCOL_NAME; 114 return protocol == UDP_PROTOCOL_NAME;
113 } 115 }
114 116
115 void OnSocketConnect(rtc::AsyncPacketSocket* socket); 117 void OnSocketConnect(rtc::AsyncPacketSocket* socket);
116 void OnSocketClose(rtc::AsyncPacketSocket* socket, int error); 118 void OnSocketClose(rtc::AsyncPacketSocket* socket, int error);
117 119
118 120
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 friend class TurnEntry; 280 friend class TurnEntry;
279 friend class TurnAllocateRequest; 281 friend class TurnAllocateRequest;
280 friend class TurnRefreshRequest; 282 friend class TurnRefreshRequest;
281 friend class TurnCreatePermissionRequest; 283 friend class TurnCreatePermissionRequest;
282 friend class TurnChannelBindRequest; 284 friend class TurnChannelBindRequest;
283 }; 285 };
284 286
285 } // namespace cricket 287 } // namespace cricket
286 288
287 #endif // WEBRTC_P2P_BASE_TURNPORT_H_ 289 #endif // WEBRTC_P2P_BASE_TURNPORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/tcpport.cc ('k') | webrtc/p2p/base/turnport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698