| 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 #include "webrtc/api/jsepsessiondescription.h" | 11 #include "webrtc/api/jsepsessiondescription.h" |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 | 14 |
| 15 #include "webrtc/api/webrtcsdp.h" | |
| 16 #include "webrtc/base/arraysize.h" | 15 #include "webrtc/base/arraysize.h" |
| 17 #include "webrtc/base/stringencode.h" | 16 #include "webrtc/base/stringencode.h" |
| 18 #include "webrtc/pc/mediasession.h" | 17 #include "webrtc/pc/mediasession.h" |
| 18 #include "webrtc/pc/webrtcsdp.h" |
| 19 | 19 |
| 20 using cricket::SessionDescription; | 20 using cricket::SessionDescription; |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 | 23 |
| 24 static const char* kSupportedTypes[] = { | 24 static const char* kSupportedTypes[] = { |
| 25 JsepSessionDescription::kOffer, | 25 JsepSessionDescription::kOffer, |
| 26 JsepSessionDescription::kPrAnswer, | 26 JsepSessionDescription::kPrAnswer, |
| 27 JsepSessionDescription::kAnswer | 27 JsepSessionDescription::kAnswer |
| 28 }; | 28 }; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 const std::string& transport_name = candidate.transport_name(); | 190 const std::string& transport_name = candidate.transport_name(); |
| 191 for (size_t i = 0; i < description_->contents().size(); ++i) { | 191 for (size_t i = 0; i < description_->contents().size(); ++i) { |
| 192 if (transport_name == description_->contents().at(i).name) { | 192 if (transport_name == description_->contents().at(i).name) { |
| 193 return static_cast<int>(i); | 193 return static_cast<int>(i); |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 return -1; | 196 return -1; |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace webrtc | 199 } // namespace webrtc |
| OLD | NEW |