| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/client/public/android/blimp_jni_registrar.h" | 5 #include "blimp/client/public/android/blimp_jni_registrar.h" |
| 6 | 6 |
| 7 #include "base/android/jni_registrar.h" | 7 #include "base/android/jni_registrar.h" |
| 8 #include "blimp/client/core/android/blimp_client_context_impl_android.h" | 8 #include "blimp/client/core/android/blimp_client_context_impl_android.h" |
| 9 #include "blimp/client/core/android/blimp_contents_factory.h" | 9 #include "blimp/client/core/contents/android/blimp_contents_jni_registrar.h" |
| 10 #include "blimp/client/core/android/blimp_contents_impl_android.h" | |
| 11 #include "blimp/client/core/android/blimp_contents_observer_proxy.h" | |
| 12 #include "blimp/client/core/android/blimp_navigation_controller_impl_android.h" | |
| 13 | 10 |
| 14 namespace blimp { | 11 namespace blimp { |
| 15 namespace client { | 12 namespace client { |
| 16 namespace { | 13 namespace { |
| 17 | 14 |
| 18 base::android::RegistrationMethod kBlimpRegistrationMethods[] = { | 15 base::android::RegistrationMethod kBlimpRegistrationMethods[] = { |
| 19 {"BlimpClientContextImplAndroid", | 16 {"BlimpClientContextImplAndroid", |
| 20 BlimpClientContextImplAndroid::RegisterJni}, | 17 BlimpClientContextImplAndroid::RegisterJni}, |
| 21 {"BlimpContentsFactory", RegisterBlimpContentsFactoryJni}, | 18 {"BlimpContentsJni", RegisterBlimpContentsJni}, |
| 22 {"BlimpContentsImplAndroid", BlimpContentsImplAndroid::RegisterJni}, | |
| 23 {"BlimpContentsObserverProxy", BlimpContentsObserverProxy::RegisterJni}, | |
| 24 {"BlimpNavigationControllerImplAndroid", | |
| 25 BlimpNavigationControllerImplAndroid::RegisterJni}, | |
| 26 }; | 19 }; |
| 27 | 20 |
| 28 } // namespace | 21 } // namespace |
| 29 | 22 |
| 30 // This method is declared in | 23 // This method is declared in |
| 31 // //blimp/client/public/android/blimp_jni_registrar.h, and either this function | 24 // //blimp/client/public/android/blimp_jni_registrar.h, and either this function |
| 32 // or the one in //blimp/client/core/android/dummy_blimp_jni_registrar.cc | 25 // or the one in //blimp/client/core/android/dummy_blimp_jni_registrar.cc |
| 33 // should be linked in to any binary blimp::client::RegisterBlimpJni. | 26 // should be linked in to any binary blimp::client::RegisterBlimpJni. |
| 34 bool RegisterBlimpJni(JNIEnv* env) { | 27 bool RegisterBlimpJni(JNIEnv* env) { |
| 35 return base::android::RegisterNativeMethods( | 28 return base::android::RegisterNativeMethods( |
| 36 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); | 29 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); |
| 37 } | 30 } |
| 38 | 31 |
| 39 } // namespace client | 32 } // namespace client |
| 40 } // namespace blimp | 33 } // namespace blimp |
| OLD | NEW |