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

Side by Side Diff: webrtc/p2p/base/transport.h

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 unified diff | Download patch
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming 49 // once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming
50 // style. 50 // style.
51 enum IceConnectionState { 51 enum IceConnectionState {
52 kIceConnectionConnecting = 0, 52 kIceConnectionConnecting = 0,
53 kIceConnectionFailed, 53 kIceConnectionFailed,
54 kIceConnectionConnected, // Writable, but still checking one or more 54 kIceConnectionConnected, // Writable, but still checking one or more
55 // connections 55 // connections
56 kIceConnectionCompleted, 56 kIceConnectionCompleted,
57 }; 57 };
58 58
59 enum DtlsTransportState {
60 DTLS_TRANSPORT_NEW = 0,
61 DTLS_TRANSPORT_CONNECTING,
62 DTLS_TRANSPORT_CONNECTED,
63 DTLS_TRANSPORT_CLOSED,
64 DTLS_TRANSPORT_FAILED,
65 };
66
59 // TODO(deadbeef): Unify with PeerConnectionInterface::IceConnectionState 67 // TODO(deadbeef): Unify with PeerConnectionInterface::IceConnectionState
60 // once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming 68 // once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming
61 // style. 69 // style.
62 enum IceGatheringState { 70 enum IceGatheringState {
63 kIceGatheringNew = 0, 71 kIceGatheringNew = 0,
64 kIceGatheringGathering, 72 kIceGatheringGathering,
65 kIceGatheringComplete, 73 kIceGatheringComplete,
66 }; 74 };
67 75
68 // Stats that we can return about the connections for a transport channel. 76 // Stats that we can return about the connections for a transport channel.
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 308
301 ChannelMap channels_; 309 ChannelMap channels_;
302 310
303 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); 311 RTC_DISALLOW_COPY_AND_ASSIGN(Transport);
304 }; 312 };
305 313
306 314
307 } // namespace cricket 315 } // namespace cricket
308 316
309 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ 317 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698