OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 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 |
11 #ifndef WEBRTC_P2P_BASE_TRANSPORTINFO_H_ | 11 #ifndef WEBRTC_P2P_BASE_TRANSPORTINFO_H_ |
12 #define WEBRTC_P2P_BASE_TRANSPORTINFO_H_ | 12 #define WEBRTC_P2P_BASE_TRANSPORTINFO_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/p2p/base/candidate.h" | 17 #include "webrtc/p2p/base/candidate.h" |
18 #include "webrtc/p2p/base/constants.h" | 18 #include "webrtc/p2p/base/p2pconstants.h" |
19 #include "webrtc/p2p/base/transportdescription.h" | 19 #include "webrtc/p2p/base/transportdescription.h" |
20 #include "webrtc/base/helpers.h" | 20 #include "webrtc/base/helpers.h" |
21 | 21 |
22 namespace cricket { | 22 namespace cricket { |
23 | 23 |
24 // A TransportInfo is NOT a transport-info message. It is comparable | 24 // A TransportInfo is NOT a transport-info message. It is comparable |
25 // to a "ContentInfo". A transport-infos message is basically just a | 25 // to a "ContentInfo". A transport-infos message is basically just a |
26 // collection of TransportInfos. | 26 // collection of TransportInfos. |
27 struct TransportInfo { | 27 struct TransportInfo { |
28 TransportInfo() {} | 28 TransportInfo() {} |
29 | 29 |
30 TransportInfo(const std::string& content_name, | 30 TransportInfo(const std::string& content_name, |
31 const TransportDescription& description) | 31 const TransportDescription& description) |
32 : content_name(content_name), | 32 : content_name(content_name), |
33 description(description) {} | 33 description(description) {} |
34 | 34 |
35 std::string content_name; | 35 std::string content_name; |
36 TransportDescription description; | 36 TransportDescription description; |
37 }; | 37 }; |
38 | 38 |
39 typedef std::vector<TransportInfo> TransportInfos; | 39 typedef std::vector<TransportInfo> TransportInfos; |
40 | 40 |
41 } // namespace cricket | 41 } // namespace cricket |
42 | 42 |
43 #endif // WEBRTC_P2P_BASE_TRANSPORTINFO_H_ | 43 #endif // WEBRTC_P2P_BASE_TRANSPORTINFO_H_ |
OLD | NEW |