Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: content/renderer/media/webrtc/peer_connection_dependency_factory.cc

Issue 1855193002: Move the call to enable the WebRTC event log from PeerConnectionFactory to PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added CONTENT_EXPORT to WebRTCEventLogHost. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/peer_connection_dependency_factory.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698