| 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" | |
| 9 #include "blimp/client/core/contents/android/blimp_contents_jni_registrar.h" | 8 #include "blimp/client/core/contents/android/blimp_contents_jni_registrar.h" |
| 9 #include "blimp/client/core/context/android/blimp_client_context_impl_android.h" |
| 10 #include "blimp/client/core/settings/android/blimp_settings_android.h" | 10 #include "blimp/client/core/settings/android/blimp_settings_android.h" |
| 11 | 11 |
| 12 namespace blimp { | 12 namespace blimp { |
| 13 namespace client { | 13 namespace client { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 base::android::RegistrationMethod kBlimpRegistrationMethods[] = { | 16 base::android::RegistrationMethod kBlimpRegistrationMethods[] = { |
| 17 {"BlimpClientContextImplAndroid", | 17 {"BlimpClientContextImplAndroid", |
| 18 BlimpClientContextImplAndroid::RegisterJni}, | 18 BlimpClientContextImplAndroid::RegisterJni}, |
| 19 {"BlimpContentsJni", RegisterBlimpContentsJni}, | 19 {"BlimpContentsJni", RegisterBlimpContentsJni}, |
| 20 {"BlimpSettingsAndroid", BlimpSettingsAndroid::RegisterJni}, | 20 {"BlimpSettingsAndroid", BlimpSettingsAndroid::RegisterJni}, |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 } // namespace | 23 } // namespace |
| 24 | 24 |
| 25 // This method is declared in | 25 // This method is declared in |
| 26 // //blimp/client/public/android/blimp_jni_registrar.h, and either this function | 26 // //blimp/client/public/android/blimp_jni_registrar.h, and either this function |
| 27 // or the one in //blimp/client/core/android/dummy_blimp_jni_registrar.cc | 27 // or the one in //blimp/client/core/android/dummy_blimp_jni_registrar.cc |
| 28 // should be linked in to any binary blimp::client::RegisterBlimpJni. | 28 // should be linked in to any binary blimp::client::RegisterBlimpJni. |
| 29 bool RegisterBlimpJni(JNIEnv* env) { | 29 bool RegisterBlimpJni(JNIEnv* env) { |
| 30 return base::android::RegisterNativeMethods( | 30 return base::android::RegisterNativeMethods( |
| 31 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); | 31 env, kBlimpRegistrationMethods, arraysize(kBlimpRegistrationMethods)); |
| 32 } | 32 } |
| 33 | 33 |
| 34 } // namespace client | 34 } // namespace client |
| 35 } // namespace blimp | 35 } // namespace blimp |
| OLD | NEW |