OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 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 #include "webrtc/pc/mediasession.h" | 11 #include "webrtc/pc/mediasession.h" |
12 | 12 |
13 #include <algorithm> // For std::find_if, std::sort. | 13 #include <algorithm> // For std::find_if, std::sort. |
14 #include <functional> | 14 #include <functional> |
15 #include <map> | 15 #include <map> |
16 #include <memory> | 16 #include <memory> |
17 #include <set> | 17 #include <set> |
18 #include <unordered_map> | 18 #include <unordered_map> |
19 #include <utility> | 19 #include <utility> |
20 | 20 |
21 #include "webrtc/base/base64.h" | 21 #include "webrtc/base/base64.h" |
22 #include "webrtc/base/checks.h" | 22 #include "webrtc/base/checks.h" |
23 #include "webrtc/base/helpers.h" | 23 #include "webrtc/base/helpers.h" |
24 #include "webrtc/base/logging.h" | 24 #include "webrtc/base/logging.h" |
25 #include "webrtc/base/optional.h" | 25 #include "webrtc/base/optional.h" |
26 #include "webrtc/base/stringutils.h" | 26 #include "webrtc/base/stringutils.h" |
27 #include "webrtc/common_types.h" | 27 #include "webrtc/common_types.h" |
28 #include "webrtc/common_video/h264/profile_level_id.h" | |
29 #include "webrtc/media/base/cryptoparams.h" | 28 #include "webrtc/media/base/cryptoparams.h" |
| 29 #include "webrtc/media/base/h264_profile_level_id.h" |
30 #include "webrtc/media/base/mediaconstants.h" | 30 #include "webrtc/media/base/mediaconstants.h" |
31 #include "webrtc/p2p/base/p2pconstants.h" | 31 #include "webrtc/p2p/base/p2pconstants.h" |
32 #include "webrtc/pc/channelmanager.h" | 32 #include "webrtc/pc/channelmanager.h" |
33 #include "webrtc/pc/srtpfilter.h" | 33 #include "webrtc/pc/srtpfilter.h" |
34 | 34 |
35 namespace { | 35 namespace { |
36 const char kInline[] = "inline:"; | 36 const char kInline[] = "inline:"; |
37 | 37 |
38 void GetSupportedSdesCryptoSuiteNames(void (*func)(const rtc::CryptoOptions&, | 38 void GetSupportedSdesCryptoSuiteNames(void (*func)(const rtc::CryptoOptions&, |
39 std::vector<int>*), | 39 std::vector<int>*), |
(...skipping 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2191 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); | 2191 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); |
2192 } | 2192 } |
2193 | 2193 |
2194 DataContentDescription* GetFirstDataContentDescription( | 2194 DataContentDescription* GetFirstDataContentDescription( |
2195 SessionDescription* sdesc) { | 2195 SessionDescription* sdesc) { |
2196 return static_cast<DataContentDescription*>( | 2196 return static_cast<DataContentDescription*>( |
2197 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); | 2197 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); |
2198 } | 2198 } |
2199 | 2199 |
2200 } // namespace cricket | 2200 } // namespace cricket |
OLD | NEW |