OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" | 5 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 } | 446 } |
447 | 447 |
448 webrtc::IceCandidateInterface* | 448 webrtc::IceCandidateInterface* |
449 PeerConnectionDependencyFactory::CreateIceCandidate( | 449 PeerConnectionDependencyFactory::CreateIceCandidate( |
450 const std::string& sdp_mid, | 450 const std::string& sdp_mid, |
451 int sdp_mline_index, | 451 int sdp_mline_index, |
452 const std::string& sdp) { | 452 const std::string& sdp) { |
453 return webrtc::CreateIceCandidate(sdp_mid, sdp_mline_index, sdp, nullptr); | 453 return webrtc::CreateIceCandidate(sdp_mid, sdp_mline_index, sdp, nullptr); |
454 } | 454 } |
455 | 455 |
456 bool PeerConnectionDependencyFactory::StartRtcEventLog( | |
457 base::PlatformFile file) { | |
458 return GetPcFactory()->StartRtcEventLog(file); | |
459 } | |
460 | |
461 void PeerConnectionDependencyFactory::StopRtcEventLog() { | |
462 GetPcFactory()->StopRtcEventLog(); | |
463 } | |
464 | |
465 WebRtcAudioDeviceImpl* | 456 WebRtcAudioDeviceImpl* |
466 PeerConnectionDependencyFactory::GetWebRtcAudioDevice() { | 457 PeerConnectionDependencyFactory::GetWebRtcAudioDevice() { |
467 DCHECK(CalledOnValidThread()); | 458 DCHECK(CalledOnValidThread()); |
468 EnsureWebRtcAudioDeviceImpl(); | 459 EnsureWebRtcAudioDeviceImpl(); |
469 return audio_device_.get(); | 460 return audio_device_.get(); |
470 } | 461 } |
471 | 462 |
472 void PeerConnectionDependencyFactory::InitializeWorkerThread( | 463 void PeerConnectionDependencyFactory::InitializeWorkerThread( |
473 rtc::Thread** thread, | 464 rtc::Thread** thread, |
474 base::WaitableEvent* event) { | 465 base::WaitableEvent* event) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 | 567 |
577 void PeerConnectionDependencyFactory::EnsureWebRtcAudioDeviceImpl() { | 568 void PeerConnectionDependencyFactory::EnsureWebRtcAudioDeviceImpl() { |
578 DCHECK(CalledOnValidThread()); | 569 DCHECK(CalledOnValidThread()); |
579 if (audio_device_.get()) | 570 if (audio_device_.get()) |
580 return; | 571 return; |
581 | 572 |
582 audio_device_ = new WebRtcAudioDeviceImpl(); | 573 audio_device_ = new WebRtcAudioDeviceImpl(); |
583 } | 574 } |
584 | 575 |
585 } // namespace content | 576 } // namespace content |
OLD | NEW |