| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/media_stream_dependency_factory.h" | 5 #include "content/renderer/media/media_stream_dependency_factory.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 } | 360 } |
| 361 | 361 |
| 362 scoped_refptr<webrtc::LocalAudioTrackInterface> | 362 scoped_refptr<webrtc::LocalAudioTrackInterface> |
| 363 MediaStreamDependencyFactory::CreateLocalAudioTrack( | 363 MediaStreamDependencyFactory::CreateLocalAudioTrack( |
| 364 const std::string& label, | 364 const std::string& label, |
| 365 webrtc::AudioDeviceModule* audio_device) { | 365 webrtc::AudioDeviceModule* audio_device) { |
| 366 return pc_factory_->CreateLocalAudioTrack(label, audio_device).get(); | 366 return pc_factory_->CreateLocalAudioTrack(label, audio_device).get(); |
| 367 } | 367 } |
| 368 | 368 |
| 369 webrtc::SessionDescriptionInterface* | 369 webrtc::SessionDescriptionInterface* |
| 370 MediaStreamDependencyFactory::CreateSessionDescription(const std::string& sdp) { | |
| 371 return webrtc::CreateSessionDescription(sdp); | |
| 372 } | |
| 373 | |
| 374 webrtc::SessionDescriptionInterface* | |
| 375 MediaStreamDependencyFactory::CreateSessionDescription(const std::string& type, | 370 MediaStreamDependencyFactory::CreateSessionDescription(const std::string& type, |
| 376 const std::string& sdp) { | 371 const std::string& sdp) { |
| 377 return webrtc::CreateSessionDescription(type, sdp); | 372 return webrtc::CreateSessionDescription(type, sdp); |
| 378 } | 373 } |
| 379 | 374 |
| 380 webrtc::IceCandidateInterface* MediaStreamDependencyFactory::CreateIceCandidate( | 375 webrtc::IceCandidateInterface* MediaStreamDependencyFactory::CreateIceCandidate( |
| 381 const std::string& sdp_mid, | 376 const std::string& sdp_mid, |
| 382 int sdp_mline_index, | 377 int sdp_mline_index, |
| 383 const std::string& sdp) { | 378 const std::string& sdp) { |
| 384 return webrtc::CreateIceCandidate(sdp_mid, sdp_mline_index, sdp); | 379 return webrtc::CreateIceCandidate(sdp_mid, sdp_mline_index, sdp); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 // processed before returning. We wait for the above task to finish before | 479 // processed before returning. We wait for the above task to finish before |
| 485 // letting the the function continue to avoid any potential race issues. | 480 // letting the the function continue to avoid any potential race issues. |
| 486 chrome_worker_thread_.Stop(); | 481 chrome_worker_thread_.Stop(); |
| 487 } else { | 482 } else { |
| 488 NOTREACHED() << "Worker thread not running."; | 483 NOTREACHED() << "Worker thread not running."; |
| 489 } | 484 } |
| 490 } | 485 } |
| 491 } | 486 } |
| 492 | 487 |
| 493 } // namespace content | 488 } // namespace content |
| OLD | NEW |