| 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 #include "media/midi/usb_midi_device_factory_android.h" | 5 #include "media/midi/usb_midi_device_factory_android.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/android/context_utils.h" | 9 #include "base/android/context_utils.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
| 12 #include "base/lazy_instance.h" | |
| 13 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 14 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 15 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
| 16 #include "jni/UsbMidiDeviceFactoryAndroid_jni.h" | 15 #include "jni/UsbMidiDeviceFactoryAndroid_jni.h" |
| 17 #include "media/midi/usb_midi_device_android.h" | 16 #include "media/midi/usb_midi_device_android.h" |
| 18 | 17 |
| 19 using base::android::JavaParamRef; | 18 using base::android::JavaParamRef; |
| 20 | 19 |
| 21 namespace midi { | 20 namespace midi { |
| 22 | 21 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 const JavaParamRef<jobject>& caller, | 87 const JavaParamRef<jobject>& caller, |
| 89 jint index) { | 88 jint index) { |
| 90 delegate_->OnDeviceDetached(index); | 89 delegate_->OnDeviceDetached(index); |
| 91 } | 90 } |
| 92 | 91 |
| 93 bool UsbMidiDeviceFactoryAndroid::RegisterUsbMidiDeviceFactory(JNIEnv* env) { | 92 bool UsbMidiDeviceFactoryAndroid::RegisterUsbMidiDeviceFactory(JNIEnv* env) { |
| 94 return RegisterNativesImpl(env); | 93 return RegisterNativesImpl(env); |
| 95 } | 94 } |
| 96 | 95 |
| 97 } // namespace midi | 96 } // namespace midi |
| OLD | NEW |