Index: webrtc/p2p/base/transport.h |
diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h |
index dfd512fe5de611db7bde7f063ada387259a92295..955eb4209883e1c1def8f7b1b752bfc5ee7a73ff 100644 |
--- a/webrtc/p2p/base/transport.h |
+++ b/webrtc/p2p/base/transport.h |
@@ -56,6 +56,19 @@ enum IceConnectionState { |
kIceConnectionCompleted, |
}; |
+enum DtlsTransportState { |
+ // Haven't started negotiating. |
+ DTLS_TRANSPORT_NEW = 0, |
+ // Have started negotiating. |
+ DTLS_TRANSPORT_CONNECTING, |
+ // Negotiated, and has a secure connection. |
+ DTLS_TRANSPORT_CONNECTED, |
+ // Transport is closed. |
+ DTLS_TRANSPORT_CLOSED, |
+ // Failed due to some error in the handshake process. |
+ DTLS_TRANSPORT_FAILED, |
+}; |
+ |
// TODO(deadbeef): Unify with PeerConnectionInterface::IceConnectionState |
// once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming |
// style. |