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
3 // found in the LICENSE file.
5 #include "content/public/browser/media_devices_monitor.h"
7 #include "content/browser/browser_main_loop.h"
8 #include "content/browser/renderer_host/media/media_stream_manager.h"
9 #include "content/public/browser/browser_thread.h"
13 void EnsureMonitorCaptureDevices() {
14 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO
));
15 // Post a EnumerateDevices() API to MSM to start the monitoring.
16 BrowserMainLoop::GetMediaStreamManager()->EnumerateDevices(
17 NULL
, -1, -1, MEDIA_DEVICE_AUDIO_CAPTURE
, GURL());
20 } // namespace content