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_FACTORY_ANDROID_H_ | 5 #ifndef MEDIA_MIDI_USB_MIDI_DEVICE_FACTORY_ANDROID_H_ |
6 #define MEDIA_MIDI_USB_MIDI_DEVICE_FACTORY_ANDROID_H_ | 6 #define MEDIA_MIDI_USB_MIDI_DEVICE_FACTORY_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/memory/scoped_vector.h" | |
15 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
16 #include "media/midi/usb_midi_device.h" | 15 #include "media/midi/usb_midi_device.h" |
17 #include "media/midi/usb_midi_export.h" | 16 #include "media/midi/usb_midi_export.h" |
18 | 17 |
19 namespace media { | 18 namespace media { |
20 namespace midi { | 19 namespace midi { |
21 | 20 |
22 // This class enumerates UsbMidiDevices. | 21 // This class enumerates UsbMidiDevices. |
23 class USB_MIDI_EXPORT UsbMidiDeviceFactoryAndroid | 22 class USB_MIDI_EXPORT UsbMidiDeviceFactoryAndroid |
24 : public UsbMidiDevice::Factory { | 23 : public UsbMidiDevice::Factory { |
(...skipping 19 matching lines...) Expand all Loading... |
44 UsbMidiDeviceDelegate* delegate_; | 43 UsbMidiDeviceDelegate* delegate_; |
45 Callback callback_; | 44 Callback callback_; |
46 | 45 |
47 DISALLOW_COPY_AND_ASSIGN(UsbMidiDeviceFactoryAndroid); | 46 DISALLOW_COPY_AND_ASSIGN(UsbMidiDeviceFactoryAndroid); |
48 }; | 47 }; |
49 | 48 |
50 } // namespace midi | 49 } // namespace midi |
51 } // namespace media | 50 } // namespace media |
52 | 51 |
53 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_FACTORY_ANDROID_H_ | 52 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_FACTORY_ANDROID_H_ |
OLD | NEW |