| 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 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 return false; | 299 return false; |
| 300 } | 300 } |
| 301 | 301 |
| 302 switch (service_type) { | 302 switch (service_type) { |
| 303 case STUN: | 303 case STUN: |
| 304 case STUNS: | 304 case STUNS: |
| 305 stun_servers->insert(rtc::SocketAddress(address, port)); | 305 stun_servers->insert(rtc::SocketAddress(address, port)); |
| 306 break; | 306 break; |
| 307 case TURN: | 307 case TURN: |
| 308 case TURNS: { | 308 case TURNS: { |
| 309 turn_servers->push_back(cricket::RelayServerConfig( | 309 cricket::RelayServerConfig config = cricket::RelayServerConfig( |
| 310 address, port, username, server.password, turn_transport_type)); | 310 address, port, username, server.password, turn_transport_type); |
| 311 if (server.tls_cert_policy == |
| 312 PeerConnectionInterface::kTlsCertPolicyInsecureNoCheck) { |
| 313 config.tls_cert_policy = |
| 314 cricket::TlsCertPolicy::TLS_CERT_POLICY_INSECURE_NO_CHECK; |
| 315 } |
| 316 turn_servers->push_back(config); |
| 311 break; | 317 break; |
| 312 } | 318 } |
| 313 case INVALID: | 319 case INVALID: |
| 314 default: | 320 default: |
| 315 LOG(WARNING) << "Configuration not supported: " << url; | 321 LOG(WARNING) << "Configuration not supported: " << url; |
| 316 return false; | 322 return false; |
| 317 } | 323 } |
| 318 return true; | 324 return true; |
| 319 } | 325 } |
| 320 | 326 |
| (...skipping 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2404 | 2410 |
| 2405 bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file, | 2411 bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file, |
| 2406 int64_t max_size_bytes) { | 2412 int64_t max_size_bytes) { |
| 2407 return event_log_->StartLogging(file, max_size_bytes); | 2413 return event_log_->StartLogging(file, max_size_bytes); |
| 2408 } | 2414 } |
| 2409 | 2415 |
| 2410 void PeerConnection::StopRtcEventLog_w() { | 2416 void PeerConnection::StopRtcEventLog_w() { |
| 2411 event_log_->StopLogging(); | 2417 event_log_->StopLogging(); |
| 2412 } | 2418 } |
| 2413 } // namespace webrtc | 2419 } // namespace webrtc |
| OLD | NEW |