| 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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 } | 635 } |
| 636 | 636 |
| 637 webrtc::IceCandidateInterface* | 637 webrtc::IceCandidateInterface* |
| 638 PeerConnectionDependencyFactory::CreateIceCandidate( | 638 PeerConnectionDependencyFactory::CreateIceCandidate( |
| 639 const std::string& sdp_mid, | 639 const std::string& sdp_mid, |
| 640 int sdp_mline_index, | 640 int sdp_mline_index, |
| 641 const std::string& sdp) { | 641 const std::string& sdp) { |
| 642 return webrtc::CreateIceCandidate(sdp_mid, sdp_mline_index, sdp, nullptr); | 642 return webrtc::CreateIceCandidate(sdp_mid, sdp_mline_index, sdp, nullptr); |
| 643 } | 643 } |
| 644 | 644 |
| 645 bool PeerConnectionDependencyFactory::StartRtcEventLog( | |
| 646 base::PlatformFile file) { | |
| 647 return GetPcFactory()->StartRtcEventLog(file); | |
| 648 } | |
| 649 | |
| 650 void PeerConnectionDependencyFactory::StopRtcEventLog() { | |
| 651 GetPcFactory()->StopRtcEventLog(); | |
| 652 } | |
| 653 | |
| 654 WebRtcAudioDeviceImpl* | 645 WebRtcAudioDeviceImpl* |
| 655 PeerConnectionDependencyFactory::GetWebRtcAudioDevice() { | 646 PeerConnectionDependencyFactory::GetWebRtcAudioDevice() { |
| 656 return audio_device_.get(); | 647 return audio_device_.get(); |
| 657 } | 648 } |
| 658 | 649 |
| 659 void PeerConnectionDependencyFactory::InitializeWorkerThread( | 650 void PeerConnectionDependencyFactory::InitializeWorkerThread( |
| 660 rtc::Thread** thread, | 651 rtc::Thread** thread, |
| 661 base::WaitableEvent* event) { | 652 base::WaitableEvent* event) { |
| 662 jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); | 653 jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); |
| 663 jingle_glue::JingleThreadWrapper::current()->set_send_allowed(true); | 654 jingle_glue::JingleThreadWrapper::current()->set_send_allowed(true); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 } | 770 } |
| 780 | 771 |
| 781 void PeerConnectionDependencyFactory::EnsureWebRtcAudioDeviceImpl() { | 772 void PeerConnectionDependencyFactory::EnsureWebRtcAudioDeviceImpl() { |
| 782 if (audio_device_.get()) | 773 if (audio_device_.get()) |
| 783 return; | 774 return; |
| 784 | 775 |
| 785 audio_device_ = new WebRtcAudioDeviceImpl(); | 776 audio_device_ = new WebRtcAudioDeviceImpl(); |
| 786 } | 777 } |
| 787 | 778 |
| 788 } // namespace content | 779 } // namespace content |
| OLD | NEW |