Drive: Add BatchableRequest subclass.
[chromium-blink-merge.git] / media / midi / midi_port_info.h
blob32b94b48964f4c3a7a7046460d624465eafff95e
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/base/media_export.h"
14 namespace media {
16 enum MidiPortState {
17 MIDI_PORT_DISCONNECTED,
18 MIDI_PORT_CONNECTED,
19 MIDI_PORT_OPENED,
20 MIDI_PORT_STATE_LAST = MIDI_PORT_OPENED,
23 struct MEDIA_EXPORT MidiPortInfo {
24 MidiPortInfo();
25 MidiPortInfo(const std::string& in_id,
26 const std::string& in_manufacturer,
27 const std::string& in_name,
28 const std::string& in_version,
29 MidiPortState in_state);
31 MidiPortInfo(const MidiPortInfo& info);
32 ~MidiPortInfo();
34 std::string id;
35 std::string manufacturer;
36 std::string name;
37 std::string version;
38 MidiPortState state;
41 typedef std::vector<MidiPortInfo> MidiPortInfoList;
43 } // namespace media
45 #endif // MEDIA_MIDI_MIDI_PORT_INFO_H_