| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 return true; | 286 return true; |
| 287 } | 287 } |
| 288 | 288 |
| 289 void set_ssl_max_protocol_version(rtc::SSLProtocolVersion version) { | 289 void set_ssl_max_protocol_version(rtc::SSLProtocolVersion version) { |
| 290 ssl_max_version_ = version; | 290 ssl_max_version_ = version; |
| 291 } | 291 } |
| 292 rtc::SSLProtocolVersion ssl_max_protocol_version() const { | 292 rtc::SSLProtocolVersion ssl_max_protocol_version() const { |
| 293 return ssl_max_version_; | 293 return ssl_max_version_; |
| 294 } | 294 } |
| 295 | 295 |
| 296 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override { |
| 297 } |
| 298 |
| 296 private: | 299 private: |
| 297 void NegotiateSrtpCiphers() { | 300 void NegotiateSrtpCiphers() { |
| 298 for (std::vector<int>::const_iterator it1 = srtp_ciphers_.begin(); | 301 for (std::vector<int>::const_iterator it1 = srtp_ciphers_.begin(); |
| 299 it1 != srtp_ciphers_.end(); ++it1) { | 302 it1 != srtp_ciphers_.end(); ++it1) { |
| 300 for (std::vector<int>::const_iterator it2 = dest_->srtp_ciphers_.begin(); | 303 for (std::vector<int>::const_iterator it2 = dest_->srtp_ciphers_.begin(); |
| 301 it2 != dest_->srtp_ciphers_.end(); ++it2) { | 304 it2 != dest_->srtp_ciphers_.end(); ++it2) { |
| 302 if (*it1 == *it2) { | 305 if (*it1 == *it2) { |
| 303 chosen_crypto_suite_ = *it1; | 306 chosen_crypto_suite_ = *it1; |
| 304 return; | 307 return; |
| 305 } | 308 } |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 } | 604 } |
| 602 } | 605 } |
| 603 | 606 |
| 604 private: | 607 private: |
| 605 bool fail_create_channel_; | 608 bool fail_create_channel_; |
| 606 }; | 609 }; |
| 607 | 610 |
| 608 } // namespace cricket | 611 } // namespace cricket |
| 609 | 612 |
| 610 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ | 613 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ |
| OLD | NEW |