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

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

Issue 2444793003: Let receiving() and SignalReceivingState be part of rtc::PacketTransportInterface. (Closed)
Patch Set: Fix comment for receiving(). Created 4 years, 1 month 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/dtlstransportchannel.h ('k') | webrtc/p2p/base/packettransportinterface.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 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 case DTLS_TRANSPORT_CONNECTING: 464 case DTLS_TRANSPORT_CONNECTING:
465 // Do nothing. 465 // Do nothing.
466 break; 466 break;
467 case DTLS_TRANSPORT_FAILED: 467 case DTLS_TRANSPORT_FAILED:
468 case DTLS_TRANSPORT_CLOSED: 468 case DTLS_TRANSPORT_CLOSED:
469 // Should not happen. Do nothing. 469 // Should not happen. Do nothing.
470 break; 470 break;
471 } 471 }
472 } 472 }
473 473
474 void DtlsTransportChannelWrapper::OnReceivingState(TransportChannel* channel) { 474 void DtlsTransportChannelWrapper::OnReceivingState(
475 rtc::PacketTransportInterface* transport) {
475 ASSERT(rtc::Thread::Current() == network_thread_); 476 ASSERT(rtc::Thread::Current() == network_thread_);
476 RTC_DCHECK(channel == channel_); 477 RTC_DCHECK(transport == channel_);
477 LOG_J(LS_VERBOSE, this) 478 LOG_J(LS_VERBOSE, this)
478 << "DTLSTransportChannelWrapper: channel receiving state changed to " 479 << "DTLSTransportChannelWrapper: channel receiving state changed to "
479 << channel_->receiving(); 480 << channel_->receiving();
480 if (!dtls_active_ || dtls_state() == DTLS_TRANSPORT_CONNECTED) { 481 if (!dtls_active_ || dtls_state() == DTLS_TRANSPORT_CONNECTED) {
481 // Note: SignalReceivingState fired by set_receiving. 482 // Note: SignalReceivingState fired by set_receiving.
482 set_receiving(channel_->receiving()); 483 set_receiving(channel_->receiving());
483 } 484 }
484 } 485 }
485 486
486 void DtlsTransportChannelWrapper::OnReadPacket( 487 void DtlsTransportChannelWrapper::OnReadPacket(
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 ASSERT(channel == channel_); 730 ASSERT(channel == channel_);
730 SignalStateChanged(this); 731 SignalStateChanged(this);
731 } 732 }
732 733
733 void DtlsTransportChannelWrapper::OnDtlsHandshakeError( 734 void DtlsTransportChannelWrapper::OnDtlsHandshakeError(
734 rtc::SSLHandshakeError error) { 735 rtc::SSLHandshakeError error) {
735 SignalDtlsHandshakeError(error); 736 SignalDtlsHandshakeError(error);
736 } 737 }
737 738
738 } // namespace cricket 739 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.h ('k') | webrtc/p2p/base/packettransportinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698