| 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/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 14 #include "media/midi/usb_midi_device.h" | 15 #include "media/midi/usb_midi_device.h" |
| 15 #include "media/midi/usb_midi_export.h" | 16 #include "media/midi/usb_midi_export.h" |
| 16 | 17 |
| 17 namespace media { | 18 namespace media { |
| 18 namespace midi { | 19 namespace midi { |
| 19 | 20 |
| 20 // This class enumerates UsbMidiDevices. | 21 // This class enumerates UsbMidiDevices. |
| 21 class USB_MIDI_EXPORT UsbMidiDeviceFactoryAndroid | 22 class USB_MIDI_EXPORT UsbMidiDeviceFactoryAndroid |
| 22 : public UsbMidiDevice::Factory { | 23 : public UsbMidiDevice::Factory { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 UsbMidiDeviceDelegate* delegate_; | 50 UsbMidiDeviceDelegate* delegate_; |
| 50 Callback callback_; | 51 Callback callback_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(UsbMidiDeviceFactoryAndroid); | 53 DISALLOW_COPY_AND_ASSIGN(UsbMidiDeviceFactoryAndroid); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace midi | 56 } // namespace midi |
| 56 } // namespace media | 57 } // namespace media |
| 57 | 58 |
| 58 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_FACTORY_ANDROID_H_ | 59 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_FACTORY_ANDROID_H_ |
| OLD | NEW |