| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #ifndef PC_TRANSPORT_STATS_H_ |
| 12 | #define PC_TRANSPORT_STATS_H_ |
| 13 |
| 14 | #include <string> |
| 15 | #include <vector> |
| 16 |
| 17 | #include "api/dtls_transport_interface.h" |
| 18 | #include "p2p/base/dtls_transport_internal.h" |
| 19 | #include "p2p/base/ice_transport_internal.h" |
| 20 | #include "p2p/base/port.h" |
| 21 | #include "rtc_base/ssl_stream_adapter.h" |
| 22 |
| 23 | namespace cricket { |
| 24 |
| 25 | struct TransportChannelStats { |
| 26 | TransportChannelStats(); |
| 27 | TransportChannelStats(const TransportChannelStats&); |
| 28 | ~TransportChannelStats(); |
| 29 |
| 30 | int component = 0; |
| 31 | int ssl_version_bytes = 0; |
| 32 | int srtp_crypto_suite = rtc::kSrtpInvalidCryptoSuite; |
| 33 | int ssl_cipher_suite = rtc::kTlsNullWithNullNull; |
| 34 | absl::optional<rtc::SSLRole> dtls_role; |
| 35 | webrtc::DtlsTransportState dtls_state = webrtc::DtlsTransportState::kNew; |
| 36 | IceTransportStats ice_transport_stats; |
| 37 | uint16_t ssl_peer_signature_algorithm = rtc::kSslSignatureAlgorithmUnknown; |
| 38 | }; |
| 39 |
| 40 | // Information about all the channels of a transport. |
| 41 | // TODO(hta): Consider if a simple vector is as good as a map. |
| 42 | typedef std::vector<TransportChannelStats> TransportChannelStatsList; |
| 43 |
| 44 | // Information about the stats of a transport. |
| 45 | struct TransportStats { |
| 46 | std::string transport_name; |
| 47 | TransportChannelStatsList channel_stats; |
| 48 | }; |
| 49 |
| 50 | } // namespace cricket |
| 51 |
| 52 | #endif // PC_TRANSPORT_STATS_H_ |
| 53 |