| 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 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 RTC_DCHECK(channels_destroyed_); | 70 RTC_DCHECK(channels_destroyed_); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void Transport::SetIceRole(IceRole role) { | 73 void Transport::SetIceRole(IceRole role) { |
| 74 ice_role_ = role; | 74 ice_role_ = role; |
| 75 for (const auto& kv : channels_) { | 75 for (const auto& kv : channels_) { |
| 76 kv.second->SetIceRole(ice_role_); | 76 kv.second->SetIceRole(ice_role_); |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 | 79 |
| 80 bool Transport::GetRemoteSSLCertificate(rtc::SSLCertificate** cert) { | 80 rtc::scoped_ptr<rtc::SSLCertificate> Transport::GetRemoteSSLCertificate() { |
| 81 if (channels_.empty()) { | 81 if (channels_.empty()) { |
| 82 return false; | 82 return nullptr; |
| 83 } | 83 } |
| 84 | 84 |
| 85 auto iter = channels_.begin(); | 85 auto iter = channels_.begin(); |
| 86 return iter->second->GetRemoteSSLCertificate(cert); | 86 return iter->second->GetRemoteSSLCertificate(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 void Transport::SetIceConfig(const IceConfig& config) { | 89 void Transport::SetIceConfig(const IceConfig& config) { |
| 90 ice_config_ = config; | 90 ice_config_ = config; |
| 91 for (const auto& kv : channels_) { | 91 for (const auto& kv : channels_) { |
| 92 kv.second->SetIceConfig(ice_config_); | 92 kv.second->SetIceConfig(ice_config_); |
| 93 } | 93 } |
| 94 } | 94 } |
| 95 | 95 |
| 96 bool Transport::SetLocalTransportDescription( | 96 bool Transport::SetLocalTransportDescription( |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 // negotiation happens. | 408 // negotiation happens. |
| 409 for (const auto& kv : channels_) { | 409 for (const auto& kv : channels_) { |
| 410 if (!ApplyNegotiatedTransportDescription(kv.second, error_desc)) { | 410 if (!ApplyNegotiatedTransportDescription(kv.second, error_desc)) { |
| 411 return false; | 411 return false; |
| 412 } | 412 } |
| 413 } | 413 } |
| 414 return true; | 414 return true; |
| 415 } | 415 } |
| 416 | 416 |
| 417 } // namespace cricket | 417 } // namespace cricket |
| OLD | NEW |