Plugin Power Saver: Fix a nullptr crash with plugin placeholder resize.
[chromium-blink-merge.git] / media / audio / audio_device_name.h
blobaa3cca0da8b5e41a171cca2e363f23f8c7e8f31a
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_
6 #define MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_
8 #include <list>
9 #include <string>
10 #include "media/base/media_export.h"
12 namespace media {
14 struct MEDIA_EXPORT AudioDeviceName {
15 AudioDeviceName();
16 AudioDeviceName(const std::string& device_name,
17 const std::string& unique_id);
19 std::string device_name; // Friendly name of the device.
20 std::string unique_id; // Unique identifier for the device.
23 typedef std::list<AudioDeviceName> AudioDeviceNames;
25 } // namespace media
27 #endif // MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_