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

Unified Diff: content/browser/renderer_host/media/audio_input_renderer_host.cc

Issue 10912004: Begin adding support for tab mirroring via the MediaStream audio/video capturing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed MEDIA_USER_*_CAPTURE to MEDIA_*_DEVICE_CAPTURE, as suggested by wjia@. Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/audio_input_renderer_host.cc
diff --git a/content/browser/renderer_host/media/audio_input_renderer_host.cc b/content/browser/renderer_host/media/audio_input_renderer_host.cc
index 5c7380f1c157faf4f3c3e31d7dfd8c87c68a767b..ecfec896c5db97f498a8e4b4f6fae284bdad515f 100644
--- a/content/browser/renderer_host/media/audio_input_renderer_host.cc
+++ b/content/browser/renderer_host/media/audio_input_renderer_host.cc
@@ -12,6 +12,7 @@
#include "content/browser/renderer_host/media/audio_input_sync_writer.h"
#include "content/browser/renderer_host/media/media_stream_manager.h"
#include "content/common/media/audio_messages.h"
+#include "content/public/common/media_stream_request.h"
using content::BrowserMessageFilter;
using content::BrowserThread;
@@ -180,7 +181,11 @@ void AudioInputRendererHost::OnStartDevice(int stream_id, int session_id) {
// Start the device with the session_id. If the device is started
// successfully, OnDeviceStarted() callback will be triggered.
- media_stream_manager_->audio_input_device_manager()->Start(session_id, this);
+ media_stream_manager_->GetAudioInputDeviceManager(
+ content::MEDIA_AUDIO_DEVICE_CAPTURE)->Start(session_id, this);
+ // TODO(miu): Confirm use of AudioInputHostMsg_* only applies to the physical
+ // audio capture devices, and does not have anything to do with
+ // MediaStreamHostMsg_*.
}
void AudioInputRendererHost::OnCreateStream(
@@ -337,7 +342,8 @@ void AudioInputRendererHost::OnDeviceStopped(int session_id) {
void AudioInputRendererHost::StopAndDeleteDevice(int session_id) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- media_stream_manager_->audio_input_device_manager()->Stop(session_id);
+ media_stream_manager_->GetAudioInputDeviceManager(
+ content::MEDIA_AUDIO_DEVICE_CAPTURE)->Stop(session_id);
// Delete the session entry.
session_entries_.erase(session_id);

Powered by Google App Engine
This is Rietveld 408576698