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 WEBRTC_P2P_BASE_TRANSPORTINFO_H_
12#define WEBRTC_P2P_BASE_TRANSPORTINFO_H_
13
14#include <string>
15#include <vector>
16
17#include "webrtc/p2p/base/candidate.h"
18#include "webrtc/p2p/base/constants.h"
19#include "webrtc/p2p/base/transportdescription.h"
20#include "webrtc/base/helpers.h"
21
22namespace 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.
27struct TransportInfo {
28  TransportInfo() {}
29
30  TransportInfo(const std::string& content_name,
31                const TransportDescription& description)
32      : content_name(content_name),
33        description(description) {}
34
35  std::string content_name;
36  TransportDescription description;
37};
38
39typedef std::vector<TransportInfo> TransportInfos;
40
41}  // namespace cricket
42
43#endif  // WEBRTC_P2P_BASE_TRANSPORTINFO_H_
44