Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chromeos / dbus / audio_node.h
blobfd4b231a1251ff18313262d21157c42479bc8d90
1 // Copyright (c) 2013 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 CHROMEOS_DBUS_AUDIO_NODE_H_
6 #define CHROMEOS_DBUS_AUDIO_NODE_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "chromeos/chromeos_export.h"
14 namespace chromeos {
16 // Structure to hold AudioNode data received from cras.
17 struct CHROMEOS_EXPORT AudioNode {
18 bool is_input;
19 uint64 id;
20 std::string device_name;
21 std::string type;
22 std::string name;
23 bool active;
24 // Time that the node was plugged in.
25 uint64 plugged_time;
27 AudioNode();
28 AudioNode(bool is_input,
29 uint64 id,
30 std::string device_name,
31 std::string type,
32 std::string name,
33 bool active,
34 uint64 plugged_time);
35 std::string ToString() const;
38 typedef std::vector<AudioNode> AudioNodeList;
40 } // namespace chromeos
42 #endif // CHROMEOS_DBUS_AUDIO_NODE_H_