henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 The WebRTC Project Authors. All rights reserved. |
| 3 | * |
| 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 |
| 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 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 11 | #ifndef P2P_BASE_TRANSPORT_INFO_H_ |
| 12 | #define P2P_BASE_TRANSPORT_INFO_H_ |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 13 | |
| 14 | #include <string> |
| 15 | #include <vector> |
| 16 | |
Patrik Höglund | e2d6a06 | 2017-10-05 14:53:33 +0200 | [diff] [blame] | 17 | #include "api/candidate.h" |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 18 | #include "p2p/base/p2p_constants.h" |
| 19 | #include "p2p/base/transport_description.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 20 | #include "rtc_base/helpers.h" |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 21 | |
| 22 | namespace cricket { |
| 23 | |
| 24 | // A TransportInfo is NOT a transport-info message. It is comparable |
| 25 | // to a "ContentInfo". A transport-infos message is basically just a |
| 26 | // collection of TransportInfos. |
| 27 | struct TransportInfo { |
| 28 | TransportInfo() {} |
| 29 | |
| 30 | TransportInfo(const std::string& content_name, |
| 31 | const TransportDescription& description) |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 32 | : content_name(content_name), description(description) {} |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 33 | |
| 34 | std::string content_name; |
| 35 | TransportDescription description; |
| 36 | }; |
| 37 | |
| 38 | typedef std::vector<TransportInfo> TransportInfos; |
| 39 | |
| 40 | } // namespace cricket |
| 41 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 42 | #endif // P2P_BASE_TRANSPORT_INFO_H_ |