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

Side by Side Diff: webrtc/p2p/base/p2ptransportchannel.cc

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/p2ptransportchannel.h ('k') | webrtc/p2p/base/port.h » ('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 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 SignalReadPacket(this, data, len, packet_time, 0); 1417 SignalReadPacket(this, data, len, packet_time, 0);
1418 1418
1419 // May need to switch the sending connection based on the receiving media path 1419 // May need to switch the sending connection based on the receiving media path
1420 // if this is the controlled side. 1420 // if this is the controlled side.
1421 if (ice_role_ == ICEROLE_CONTROLLED && !best_nominated_connection() && 1421 if (ice_role_ == ICEROLE_CONTROLLED && !best_nominated_connection() &&
1422 connection->writable() && best_connection_ != connection) { 1422 connection->writable() && best_connection_ != connection) {
1423 SwitchBestConnectionTo(connection); 1423 SwitchBestConnectionTo(connection);
1424 } 1424 }
1425 } 1425 }
1426 1426
1427 void P2PTransportChannel::OnSentPacket(PortInterface* port, 1427 void P2PTransportChannel::OnSentPacket(const rtc::SentPacket& sent_packet) {
1428 const rtc::SentPacket& sent_packet) {
1429 ASSERT(worker_thread_ == rtc::Thread::Current()); 1428 ASSERT(worker_thread_ == rtc::Thread::Current());
1430 1429
1431 SignalSentPacket(this, sent_packet); 1430 SignalSentPacket(this, sent_packet);
1432 } 1431 }
1433 1432
1434 void P2PTransportChannel::OnReadyToSend(Connection* connection) { 1433 void P2PTransportChannel::OnReadyToSend(Connection* connection) {
1435 if (connection == best_connection_ && writable()) { 1434 if (connection == best_connection_ && writable()) {
1436 SignalReadyToSend(this); 1435 SignalReadyToSend(this);
1437 } 1436 }
1438 } 1437 }
1439 1438
1440 } // namespace cricket 1439 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.h ('k') | webrtc/p2p/base/port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698