Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 25 matching lines...) Expand all Loading... | |
| 36 LOG_J(LS_VERBOSE, this) << "set_writable from:" << writable_ << " to " | 36 LOG_J(LS_VERBOSE, this) << "set_writable from:" << writable_ << " to " |
| 37 << writable; | 37 << writable; |
| 38 writable_ = writable; | 38 writable_ = writable; |
| 39 if (writable_) { | 39 if (writable_) { |
| 40 SignalReadyToSend(this); | 40 SignalReadyToSend(this); |
| 41 } | 41 } |
| 42 SignalWritableState(this); | 42 SignalWritableState(this); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 void TransportChannel::set_dtls_transport_state(DtlsTransportState state) { | |
| 47 if (dtls_transport_state_ != state) { | |
|
pthatcher1
2015/10/20 20:28:06
Nit: I'd prefer an early return
if (dtls_transpor
Taylor Brandstetter
2015/10/21 16:28:16
Done.
| |
| 48 LOG_J(LS_VERBOSE, this) | |
| 49 << "set_dtls_transport_state from:" << dtls_transport_state_ << " to " | |
| 50 << state; | |
| 51 dtls_transport_state_ = state; | |
| 52 SignalDtlsTransportState(this); | |
| 53 } | |
| 54 } | |
| 55 | |
| 46 } // namespace cricket | 56 } // namespace cricket |
| OLD | NEW |