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 11 #ifndef P2P_BASE_TRANSPORT_INFO_H_ 12 #define P2P_BASE_TRANSPORT_INFO_H_ 13 14 #include <string> 15 #include <vector> 16 17 #include "api/candidate.h" 18 #include "p2p/base/p2p_constants.h" 19 #include "p2p/base/transport_description.h" 20 #include "rtc_base/helpers.h" 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 { TransportInfoTransportInfo28 TransportInfo() {} 29 TransportInfoTransportInfo30 TransportInfo(const std::string& content_name, 31 const TransportDescription& description) 32 : content_name(content_name), description(description) {} 33 34 std::string content_name; 35 TransportDescription description; 36 }; 37 38 typedef std::vector<TransportInfo> TransportInfos; 39 40 } // namespace cricket 41 42 #endif // P2P_BASE_TRANSPORT_INFO_H_ 43