This sets up API to release OutputSurface from LTHClient.
[chromium-blink-merge.git] / media / midi / midi_port_info.h
blobc53c9060fc2f18a8db7268b888ebc2c624bc95ce
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 MEDIA_MIDI_MIDI_PORT_INFO_H_
6 #define MEDIA_MIDI_MIDI_PORT_INFO_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "media/midi/midi_export.h"
14 namespace media {
15 namespace midi {
17 enum MidiPortState {
18 MIDI_PORT_DISCONNECTED,
19 MIDI_PORT_CONNECTED,
20 MIDI_PORT_OPENED,
21 MIDI_PORT_STATE_LAST = MIDI_PORT_OPENED,
24 struct MIDI_EXPORT MidiPortInfo final {
25 MidiPortInfo();
26 MidiPortInfo(const std::string& in_id,
27 const std::string& in_manufacturer,
28 const std::string& in_name,
29 const std::string& in_version,
30 MidiPortState in_state);
32 MidiPortInfo(const MidiPortInfo& info);
33 ~MidiPortInfo();
35 std::string id;
36 std::string manufacturer;
37 std::string name;
38 std::string version;
39 MidiPortState state;
42 using MidiPortInfoList = std::vector<MidiPortInfo>;
44 } // namespace midi
45 } // namespace media
47 #endif // MEDIA_MIDI_MIDI_PORT_INFO_H_