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

Unified Diff: content/browser/renderer_host/media/audio_output_device_enumerator.h

Issue 1602083003: Correctly handle enumerations for AudioManagers that report only the default audio output device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: variable name change Created 4 years, 11 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_output_device_enumerator.h
diff --git a/content/browser/renderer_host/media/audio_output_device_enumerator.h b/content/browser/renderer_host/media/audio_output_device_enumerator.h
index 740e9c64f1e068a2e88c3996346a179f8ea40434..2a6e38f5fb671c481dec5ca7110a057bbab4bfaa 100644
--- a/content/browser/renderer_host/media/audio_output_device_enumerator.h
+++ b/content/browser/renderer_host/media/audio_output_device_enumerator.h
@@ -43,7 +43,18 @@ struct AudioOutputDeviceInfo {
media::AudioParameters output_params;
};
-typedef std::vector<AudioOutputDeviceInfo> AudioOutputDeviceEnumeration;
+struct AudioOutputDeviceEnumeration {
+ public:
+ AudioOutputDeviceEnumeration(
+ const std::vector<AudioOutputDeviceInfo>& devices,
+ bool has_actual_devices);
+ AudioOutputDeviceEnumeration();
+ ~AudioOutputDeviceEnumeration();
+
+ std::vector<AudioOutputDeviceInfo> devices;
+ bool has_actual_devices;
+};
+
typedef base::Callback<void(const AudioOutputDeviceEnumeration&)>
AudioOutputDeviceEnumerationCB;

Powered by Google App Engine
This is Rietveld 408576698