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 "chromecast/android/cast_jni_registrar.h" | 5 #include "chromecast/android/cast_jni_registrar.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
9 #include "chromecast/android/cast_metrics_helper_android.h" | 9 #include "chromecast/android/cast_metrics_helper_android.h" |
10 #include "chromecast/base/cast_sys_info_android.h" | 10 #include "chromecast/base/cast_sys_info_android.h" |
| 11 #include "chromecast/base/chromecast_config_android.h" |
11 #include "chromecast/browser/android/cast_window_android.h" | 12 #include "chromecast/browser/android/cast_window_android.h" |
12 #include "chromecast/browser/android/cast_window_manager.h" | 13 #include "chromecast/browser/android/cast_window_manager.h" |
13 #include "chromecast/crash/android/crash_handler.h" | 14 #include "chromecast/crash/android/crash_handler.h" |
14 #include "components/external_video_surface/component_jni_registrar.h" | 15 #include "components/external_video_surface/component_jni_registrar.h" |
15 | 16 |
16 namespace chromecast { | 17 namespace chromecast { |
17 namespace android { | 18 namespace android { |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
21 static base::android::RegistrationMethod kMethods[] = { | 22 static base::android::RegistrationMethod kMethods[] = { |
22 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni }, | 23 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni }, |
23 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni }, | 24 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni }, |
24 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni }, | 25 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni }, |
25 { "CastWindowManager", shell::RegisterCastWindowManager }, | 26 { "CastWindowManager", shell::RegisterCastWindowManager }, |
| 27 { "ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni }, |
26 { "CrashHandler", CrashHandler::RegisterCastCrashJni }, | 28 { "CrashHandler", CrashHandler::RegisterCastCrashJni }, |
27 { "ExternalVideoSurfaceContainer", | 29 { "ExternalVideoSurfaceContainer", |
28 external_video_surface::RegisterExternalVideoSurfaceJni }, | 30 external_video_surface::RegisterExternalVideoSurfaceJni }, |
29 }; | 31 }; |
30 | 32 |
31 } // namespace | 33 } // namespace |
32 | 34 |
33 bool RegisterJni(JNIEnv* env) { | 35 bool RegisterJni(JNIEnv* env) { |
34 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); | 36 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); |
35 } | 37 } |
36 | 38 |
37 } // namespace android | 39 } // namespace android |
38 } // namespace chromecast | 40 } // namespace chromecast |
OLD | NEW |