| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_ |
| 6 #define MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_ | 6 #define MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
| 11 | 11 |
| 12 namespace media { | 12 namespace media { |
| 13 | 13 |
| 14 struct MEDIA_EXPORT AudioDeviceName { | 14 struct MEDIA_EXPORT AudioDeviceName { |
| 15 AudioDeviceName(); | 15 AudioDeviceName(); |
| 16 AudioDeviceName(const std::string& device_name, | 16 AudioDeviceName(const std::string& device_name, |
| 17 const std::string& unique_id); | 17 const std::string& unique_id); |
| 18 | 18 |
| 19 // Creates default device representation. |
| 20 static AudioDeviceName CreateDefault(); |
| 21 |
| 22 // Creates communications device representation. |
| 23 static AudioDeviceName CreateCommunications(); |
| 24 |
| 19 std::string device_name; // Friendly name of the device. | 25 std::string device_name; // Friendly name of the device. |
| 20 std::string unique_id; // Unique identifier for the device. | 26 std::string unique_id; // Unique identifier for the device. |
| 21 }; | 27 }; |
| 22 | 28 |
| 23 typedef std::list<AudioDeviceName> AudioDeviceNames; | 29 typedef std::list<AudioDeviceName> AudioDeviceNames; |
| 24 | 30 |
| 25 } // namespace media | 31 } // namespace media |
| 26 | 32 |
| 27 #endif // MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_ | 33 #endif // MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_ |
| OLD | NEW |