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

Side by Side Diff: content/browser/media_devices_monitor.cc

Issue 54863002: Implement a salt for MediaSource IDs that can be cleared by a user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed jois nit. Created 7 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #include "content/public/browser/media_devices_monitor.h"
6
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"
10
11 namespace content {
12 namespace {
13 void EnsureMonitorCaptureDevicesInternal(
14 MediaStreamManager* media_stream_manager) {
15 media_stream_manager->EnumerateDevices(
16 NULL, -1, -1, -1, MEDIA_DEVICE_AUDIO_CAPTURE, GURL());
17 }
18 }
19
20 void EnsureMonitorCaptureDevices() {
21 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
22
23 BrowserThread::PostTask(
24 BrowserThread::IO, FROM_HERE,
25 base::Bind(&EnsureMonitorCaptureDevicesInternal,
26 BrowserMainLoop::GetInstance()->media_stream_manager()));
27 }
28
29 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/media_devices_monitor.cc ('k') | content/browser/renderer_host/media/device_request_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698