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

Unified 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: Renaming, fixing comment. 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 side-by-side diff with in-line comments
Download patch
« webrtc/p2p/base/transportchannel.h ('K') | « webrtc/p2p/base/transportchannel.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/transportchannel.cc
diff --git a/webrtc/p2p/base/transportchannel.cc b/webrtc/p2p/base/transportchannel.cc
index 97a41130c7b2e282e89f26cfbe88e6b538a068d6..c78795a815155e4c656ada2c09140d04e59b618d 100644
--- a/webrtc/p2p/base/transportchannel.cc
+++ b/webrtc/p2p/base/transportchannel.cc
@@ -43,4 +43,14 @@ void TransportChannel::set_writable(bool writable) {
}
}
+void TransportChannel::set_dtls_transport_state(DtlsTransportState state) {
+ 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.
+ LOG_J(LS_VERBOSE, this)
+ << "set_dtls_transport_state from:" << dtls_transport_state_ << " to "
+ << state;
+ dtls_transport_state_ = state;
+ SignalDtlsTransportState(this);
+ }
+}
+
} // namespace cricket
« webrtc/p2p/base/transportchannel.h ('K') | « webrtc/p2p/base/transportchannel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698