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/api/optional.h" |
21 #include "webrtc/common_types.h" | 22 #include "webrtc/common_types.h" |
22 #include "webrtc/media/base/cryptoparams.h" | 23 #include "webrtc/media/base/cryptoparams.h" |
23 #include "webrtc/media/base/h264_profile_level_id.h" | 24 #include "webrtc/media/base/h264_profile_level_id.h" |
24 #include "webrtc/media/base/mediaconstants.h" | 25 #include "webrtc/media/base/mediaconstants.h" |
25 #include "webrtc/p2p/base/p2pconstants.h" | 26 #include "webrtc/p2p/base/p2pconstants.h" |
26 #include "webrtc/pc/channelmanager.h" | 27 #include "webrtc/pc/channelmanager.h" |
27 #include "webrtc/pc/srtpfilter.h" | 28 #include "webrtc/pc/srtpfilter.h" |
28 #include "webrtc/rtc_base/base64.h" | 29 #include "webrtc/rtc_base/base64.h" |
29 #include "webrtc/rtc_base/checks.h" | 30 #include "webrtc/rtc_base/checks.h" |
30 #include "webrtc/rtc_base/helpers.h" | 31 #include "webrtc/rtc_base/helpers.h" |
31 #include "webrtc/rtc_base/logging.h" | 32 #include "webrtc/rtc_base/logging.h" |
32 #include "webrtc/rtc_base/optional.h" | |
33 #include "webrtc/rtc_base/stringutils.h" | 33 #include "webrtc/rtc_base/stringutils.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>*), |
40 const rtc::CryptoOptions& crypto_options, | 40 const rtc::CryptoOptions& crypto_options, |
41 std::vector<std::string>* names) { | 41 std::vector<std::string>* names) { |
42 std::vector<int> crypto_suites; | 42 std::vector<int> crypto_suites; |
(...skipping 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2474 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); | 2474 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); |
2475 } | 2475 } |
2476 | 2476 |
2477 DataContentDescription* GetFirstDataContentDescription( | 2477 DataContentDescription* GetFirstDataContentDescription( |
2478 SessionDescription* sdesc) { | 2478 SessionDescription* sdesc) { |
2479 return static_cast<DataContentDescription*>( | 2479 return static_cast<DataContentDescription*>( |
2480 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); | 2480 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); |
2481 } | 2481 } |
2482 | 2482 |
2483 } // namespace cricket | 2483 } // namespace cricket |
OLD | NEW |