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

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

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Cleanup Created 5 years, 2 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
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 const rtc::PacketOptions& options, 133 const rtc::PacketOptions& options,
134 bool payload); 134 bool payload);
135 135
136 void OnLocalAddressReady(rtc::AsyncPacketSocket* socket, 136 void OnLocalAddressReady(rtc::AsyncPacketSocket* socket,
137 const rtc::SocketAddress& address); 137 const rtc::SocketAddress& address);
138 void OnReadPacket(rtc::AsyncPacketSocket* socket, 138 void OnReadPacket(rtc::AsyncPacketSocket* socket,
139 const char* data, size_t size, 139 const char* data, size_t size,
140 const rtc::SocketAddress& remote_addr, 140 const rtc::SocketAddress& remote_addr,
141 const rtc::PacketTime& packet_time); 141 const rtc::PacketTime& packet_time);
142 142
143 void OnSentPacket(rtc::AsyncPacketSocket* socket,
144 const rtc::SentPacket& sent_packet);
145
143 void OnReadyToSend(rtc::AsyncPacketSocket* socket); 146 void OnReadyToSend(rtc::AsyncPacketSocket* socket);
144 147
145 // This method will send STUN binding request if STUN server address is set. 148 // This method will send STUN binding request if STUN server address is set.
146 void MaybePrepareStunCandidate(); 149 void MaybePrepareStunCandidate();
147 150
148 void SendStunBindingRequests(); 151 void SendStunBindingRequests();
149 152
150 private: 153 private:
151 // A helper class which can be called repeatedly to resolve multiple 154 // A helper class which can be called repeatedly to resolve multiple
152 // addresses, as opposed to rtc::AsyncResolverInterface, which can only 155 // addresses, as opposed to rtc::AsyncResolverInterface, which can only
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 false) { 269 false) {
267 // UDPPort will set these to local udp, updating these to STUN. 270 // UDPPort will set these to local udp, updating these to STUN.
268 set_type(STUN_PORT_TYPE); 271 set_type(STUN_PORT_TYPE);
269 set_server_addresses(servers); 272 set_server_addresses(servers);
270 } 273 }
271 }; 274 };
272 275
273 } // namespace cricket 276 } // namespace cricket
274 277
275 #endif // WEBRTC_P2P_BASE_STUNPORT_H_ 278 #endif // WEBRTC_P2P_BASE_STUNPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698