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

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: 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/dtlstransportchannel.cc ('k') | webrtc/p2p/base/transportchannel.h » ('j') | 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 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 // Haven't started negotiating.
61 DTLS_TRANSPORT_NEW = 0,
62 // Have started negotiating.
63 DTLS_TRANSPORT_CONNECTING,
64 // Negotiated, and has a secure connection.
65 DTLS_TRANSPORT_CONNECTED,
66 // Transport is closed.
67 DTLS_TRANSPORT_CLOSED,
68 // Failed due to some error in the handshake process.
69 DTLS_TRANSPORT_FAILED,
70 };
71
59 // TODO(deadbeef): Unify with PeerConnectionInterface::IceConnectionState 72 // TODO(deadbeef): Unify with PeerConnectionInterface::IceConnectionState
60 // once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming 73 // once /talk/ and /webrtc/ are combined, and also switch to ENUM_NAME naming
61 // style. 74 // style.
62 enum IceGatheringState { 75 enum IceGatheringState {
63 kIceGatheringNew = 0, 76 kIceGatheringNew = 0,
64 kIceGatheringGathering, 77 kIceGatheringGathering,
65 kIceGatheringComplete, 78 kIceGatheringComplete,
66 }; 79 };
67 80
68 // Stats that we can return about the connections for a transport channel. 81 // 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 313
301 ChannelMap channels_; 314 ChannelMap channels_;
302 315
303 RTC_DISALLOW_COPY_AND_ASSIGN(Transport); 316 RTC_DISALLOW_COPY_AND_ASSIGN(Transport);
304 }; 317 };
305 318
306 319
307 } // namespace cricket 320 } // namespace cricket
308 321
309 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_ 322 #endif // WEBRTC_P2P_BASE_TRANSPORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.cc ('k') | webrtc/p2p/base/transportchannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698