| 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_impl.h" | 5 #include "content/renderer/media/media_stream_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 344 |
| 345 void MediaStreamImpl::OnAudioDeviceFailed(const std::string& label, | 345 void MediaStreamImpl::OnAudioDeviceFailed(const std::string& label, |
| 346 int index) { | 346 int index) { |
| 347 DCHECK(CalledOnValidThread()); | 347 DCHECK(CalledOnValidThread()); |
| 348 DVLOG(1) << "MediaStreamImpl::OnAudioDeviceFailed(" | 348 DVLOG(1) << "MediaStreamImpl::OnAudioDeviceFailed(" |
| 349 << label << ", " << index << ")"; | 349 << label << ", " << index << ")"; |
| 350 // TODO(grunell): Implement. Currently not supported in WebKit. | 350 // TODO(grunell): Implement. Currently not supported in WebKit. |
| 351 NOTIMPLEMENTED(); | 351 NOTIMPLEMENTED(); |
| 352 } | 352 } |
| 353 | 353 |
| 354 void MediaStreamImpl::OnDevicesEnumerated( |
| 355 int request_id, |
| 356 const media_stream::StreamDeviceInfoArray& device_array) { |
| 357 DVLOG(1) << "MediaStreamImpl::OnDevicesEnumerated(" |
| 358 << request_id << ")"; |
| 359 NOTIMPLEMENTED(); |
| 360 } |
| 361 |
| 362 void MediaStreamImpl::OnDevicesEnumerationFailed(int request_id) { |
| 363 DVLOG(1) << "MediaStreamImpl::OnDevicesEnumerationFailed(" |
| 364 << request_id << ")"; |
| 365 NOTIMPLEMENTED(); |
| 366 } |
| 367 |
| 368 void MediaStreamImpl::OnDeviceOpened( |
| 369 int request_id, |
| 370 const std::string& label, |
| 371 const media_stream::StreamDeviceInfo& video_device) { |
| 372 DVLOG(1) << "MediaStreamImpl::OnDeviceOpened(" |
| 373 << request_id << ", " << label << ")"; |
| 374 NOTIMPLEMENTED(); |
| 375 } |
| 376 |
| 377 void MediaStreamImpl::OnDeviceOpenFailed(int request_id) { |
| 378 DVLOG(1) << "MediaStreamImpl::VideoDeviceOpenFailed(" |
| 379 << request_id << ")"; |
| 380 NOTIMPLEMENTED(); |
| 381 } |
| 382 |
| 354 void MediaStreamImpl::InitializeWorkerThread(talk_base::Thread** thread, | 383 void MediaStreamImpl::InitializeWorkerThread(talk_base::Thread** thread, |
| 355 base::WaitableEvent* event) { | 384 base::WaitableEvent* event) { |
| 356 jingle_glue::JingleThreadWrapper::EnsureForCurrentThread(); | 385 jingle_glue::JingleThreadWrapper::EnsureForCurrentThread(); |
| 357 jingle_glue::JingleThreadWrapper::current()->set_send_allowed(true); | 386 jingle_glue::JingleThreadWrapper::current()->set_send_allowed(true); |
| 358 *thread = jingle_glue::JingleThreadWrapper::current(); | 387 *thread = jingle_glue::JingleThreadWrapper::current(); |
| 359 event->Signal(); | 388 event->Signal(); |
| 360 } | 389 } |
| 361 | 390 |
| 362 void MediaStreamImpl::DeleteIpcNetworkManager() { | 391 void MediaStreamImpl::DeleteIpcNetworkManager() { |
| 363 DCHECK_EQ(MessageLoop::current(), chrome_worker_thread_.message_loop()); | 392 DCHECK_EQ(MessageLoop::current(), chrome_worker_thread_.message_loop()); |
| 364 delete network_manager_; | 393 delete network_manager_; |
| 365 network_manager_ = NULL; | 394 network_manager_ = NULL; |
| 366 } | 395 } |
| OLD | NEW |