| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MIDI_USB_MIDI_DEVICE_H_ | 5 #ifndef MEDIA_MIDI_USB_MIDI_DEVICE_H_ |
| 6 #define MEDIA_MIDI_USB_MIDI_DEVICE_H_ | 6 #define MEDIA_MIDI_USB_MIDI_DEVICE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
| 15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 16 #include "media/midi/usb_midi_export.h" | 17 #include "media/midi/usb_midi_export.h" |
| 17 | 18 |
| 18 namespace media { | 19 namespace media { |
| 19 namespace midi { | 20 namespace midi { |
| 20 | 21 |
| 21 class MidiManagerUsb; | 22 class MidiManagerUsb; |
| 22 class UsbMidiDevice; | 23 class UsbMidiDevice; |
| 23 | 24 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual std::string GetDeviceVersion() = 0; | 83 virtual std::string GetDeviceVersion() = 0; |
| 83 | 84 |
| 84 // Sends |data| to the given USB endpoint of this device. | 85 // Sends |data| to the given USB endpoint of this device. |
| 85 virtual void Send(int endpoint_number, const std::vector<uint8_t>& data) = 0; | 86 virtual void Send(int endpoint_number, const std::vector<uint8_t>& data) = 0; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace midi | 89 } // namespace midi |
| 89 } // namespace media | 90 } // namespace media |
| 90 | 91 |
| 91 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_H_ | 92 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_H_ |
| OLD | NEW |