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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 } | 626 } |
627 | 627 |
628 webrtc::IceCandidateInterface* | 628 webrtc::IceCandidateInterface* |
629 PeerConnectionDependencyFactory::CreateIceCandidate( | 629 PeerConnectionDependencyFactory::CreateIceCandidate( |
630 const std::string& sdp_mid, | 630 const std::string& sdp_mid, |
631 int sdp_mline_index, | 631 int sdp_mline_index, |
632 const std::string& sdp) { | 632 const std::string& sdp) { |
633 return webrtc::CreateIceCandidate(sdp_mid, sdp_mline_index, sdp, nullptr); | 633 return webrtc::CreateIceCandidate(sdp_mid, sdp_mline_index, sdp, nullptr); |
634 } | 634 } |
635 | 635 |
636 bool PeerConnectionDependencyFactory::StartRtcEventLog( | |
637 base::PlatformFile file) { | |
638 return GetPcFactory()->StartRtcEventLog(file); | |
639 } | |
640 | |
641 void PeerConnectionDependencyFactory::StopRtcEventLog() { | |
642 GetPcFactory()->StopRtcEventLog(); | |
643 } | |
644 | |
645 WebRtcAudioDeviceImpl* | 636 WebRtcAudioDeviceImpl* |
646 PeerConnectionDependencyFactory::GetWebRtcAudioDevice() { | 637 PeerConnectionDependencyFactory::GetWebRtcAudioDevice() { |
647 return audio_device_.get(); | 638 return audio_device_.get(); |
648 } | 639 } |
649 | 640 |
650 void PeerConnectionDependencyFactory::InitializeWorkerThread( | 641 void PeerConnectionDependencyFactory::InitializeWorkerThread( |
651 rtc::Thread** thread, | 642 rtc::Thread** thread, |
652 base::WaitableEvent* event) { | 643 base::WaitableEvent* event) { |
653 jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); | 644 jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); |
654 jingle_glue::JingleThreadWrapper::current()->set_send_allowed(true); | 645 jingle_glue::JingleThreadWrapper::current()->set_send_allowed(true); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 } | 761 } |
771 | 762 |
772 void PeerConnectionDependencyFactory::EnsureWebRtcAudioDeviceImpl() { | 763 void PeerConnectionDependencyFactory::EnsureWebRtcAudioDeviceImpl() { |
773 if (audio_device_.get()) | 764 if (audio_device_.get()) |
774 return; | 765 return; |
775 | 766 |
776 audio_device_ = new WebRtcAudioDeviceImpl(); | 767 audio_device_ = new WebRtcAudioDeviceImpl(); |
777 } | 768 } |
778 | 769 |
779 } // namespace content | 770 } // namespace content |
OLD | NEW |