| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 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_API_ORTC_MEDIADESCRIPTION_H_ | 11 #ifndef WEBRTC_API_ORTC_MEDIADESCRIPTION_H_ |
| 12 #define WEBRTC_API_ORTC_MEDIADESCRIPTION_H_ | 12 #define WEBRTC_API_ORTC_MEDIADESCRIPTION_H_ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include <utility> | 15 #include <utility> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/api/optional.h" |
| 18 #include "webrtc/media/base/cryptoparams.h" | 19 #include "webrtc/media/base/cryptoparams.h" |
| 19 #include "webrtc/rtc_base/optional.h" | |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| 23 // A structured representation of a media description within an SDP session | 23 // A structured representation of a media description within an SDP session |
| 24 // description. | 24 // description. |
| 25 class MediaDescription { | 25 class MediaDescription { |
| 26 public: | 26 public: |
| 27 explicit MediaDescription(std::string mid) : mid_(std::move(mid)) {} | 27 explicit MediaDescription(std::string mid) : mid_(std::move(mid)) {} |
| 28 | 28 |
| 29 ~MediaDescription() {} | 29 ~MediaDescription() {} |
| (...skipping 14 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 rtc::Optional<std::string> mid_; | 46 rtc::Optional<std::string> mid_; |
| 47 | 47 |
| 48 std::vector<cricket::CryptoParams> sdes_params_; | 48 std::vector<cricket::CryptoParams> sdes_params_; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace webrtc | 51 } // namespace webrtc |
| 52 | 52 |
| 53 #endif // WEBRTC_API_ORTC_MEDIADESCRIPTION_H_ | 53 #endif // WEBRTC_API_ORTC_MEDIADESCRIPTION_H_ |
| OLD | NEW |