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

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

Issue 1414363002: Exposing DTLS transport state from TransportChannel. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing Windows compiler warning. 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
« no previous file with comments | « webrtc/p2p/base/transportchannel.h ('k') | no next file » | 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 14 matching lines...) Expand all
25 25
26 void TransportChannel::set_receiving(bool receiving) { 26 void TransportChannel::set_receiving(bool receiving) {
27 if (receiving_ == receiving) { 27 if (receiving_ == receiving) {
28 return; 28 return;
29 } 29 }
30 receiving_ = receiving; 30 receiving_ = receiving;
31 SignalReceivingState(this); 31 SignalReceivingState(this);
32 } 32 }
33 33
34 void TransportChannel::set_writable(bool writable) { 34 void TransportChannel::set_writable(bool writable) {
35 if (writable_ != writable) { 35 if (writable_ == writable) {
36 LOG_J(LS_VERBOSE, this) << "set_writable from:" << writable_ << " to " 36 return;
37 << writable;
38 writable_ = writable;
39 if (writable_) {
40 SignalReadyToSend(this);
41 }
42 SignalWritableState(this);
43 } 37 }
38 LOG_J(LS_VERBOSE, this) << "set_writable from:" << writable_ << " to "
39 << writable;
40 writable_ = writable;
41 if (writable_) {
42 SignalReadyToSend(this);
43 }
44 SignalWritableState(this);
45 }
46
47 void TransportChannel::set_dtls_state(DtlsTransportState state) {
48 if (dtls_state_ == state) {
49 return;
50 }
51 LOG_J(LS_VERBOSE, this) << "set_dtls_state from:" << dtls_state_ << " to "
52 << state;
53 dtls_state_ = state;
54 SignalDtlsState(this);
44 } 55 }
45 56
46 } // namespace cricket 57 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transportchannel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698