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

Unified Diff: content/browser/device_monitor_mac.h

Issue 252893003: Mac AVFoundation: Enumerate devices in device/audio thread. Take 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | content/browser/device_monitor_mac.mm » ('j') | content/browser/device_monitor_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_monitor_mac.h
diff --git a/content/browser/device_monitor_mac.h b/content/browser/device_monitor_mac.h
index 696b96127b3860f885b3a497a3aef87a815ad046..b3d3f9f6dc31b908a52604d862d3e14c716c55d4 100644
--- a/content/browser/device_monitor_mac.h
+++ b/content/browser/device_monitor_mac.h
@@ -25,8 +25,10 @@ class DeviceMonitorMac {
// Registers the observers for the audio/video device removal, connection and
// suspension. The AVFoundation library is also loaded and initialised if the
- // OS supports it.
- void StartMonitoring();
+ // OS supports it. The |device_task_runner| argument represents the thread on
+ // which device enumeration will occur.
+ void StartMonitoring(
+ const scoped_refptr<base::SingleThreadTaskRunner>& device_task_runner);
// Method called by the internal DeviceMonitorMacImpl object
// |device_monitor_impl_| when a device of type |type| has been added to or
@@ -38,7 +40,7 @@ class DeviceMonitorMac {
scoped_ptr<DeviceMonitorMacImpl> device_monitor_impl_;
// |thread_checker_| is used to check that constructor and StartMonitoring()
- // are called in the correct thread, that also owns the object.
+ // are called in the correct thread, the UI thread, that also owns the object.
base::ThreadChecker thread_checker_;
DISALLOW_COPY_AND_ASSIGN(DeviceMonitorMac);
« no previous file with comments | « no previous file | content/browser/device_monitor_mac.mm » ('j') | content/browser/device_monitor_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698