OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/android/net_jni_registrar.h" | 5 #include "net/android/net_jni_registrar.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/jni_registrar.h" | 9 #include "base/android/jni_registrar.h" |
10 #include "net/android/gurl_utils.h" | 10 #include "net/android/gurl_utils.h" |
| 11 #include "net/android/keystore.h" |
11 #include "net/android/network_change_notifier_android.h" | 12 #include "net/android/network_change_notifier_android.h" |
12 #include "net/android/network_library.h" | 13 #include "net/android/network_library.h" |
13 #include "net/proxy/proxy_config_service_android.h" | 14 #include "net/proxy/proxy_config_service_android.h" |
14 | 15 |
15 namespace net { | 16 namespace net { |
16 namespace android { | 17 namespace android { |
17 | 18 |
18 static base::android::RegistrationMethod kNetRegisteredMethods[] = { | 19 static base::android::RegistrationMethod kNetRegisteredMethods[] = { |
| 20 { "AndroidKeyStore", net::android::RegisterKeyStore }, |
19 { "AndroidNetworkLibrary", net::android::RegisterNetworkLibrary }, | 21 { "AndroidNetworkLibrary", net::android::RegisterNetworkLibrary }, |
20 { "GURLUtils", net::RegisterGURLUtils }, | 22 { "GURLUtils", net::RegisterGURLUtils }, |
21 { "NetworkChangeNotifierAndroid", | 23 { "NetworkChangeNotifierAndroid", |
22 net::NetworkChangeNotifierAndroid::Register }, | 24 net::NetworkChangeNotifierAndroid::Register }, |
23 { "ProxyConfigService", net::ProxyConfigServiceAndroid::Register }, | 25 { "ProxyConfigService", net::ProxyConfigServiceAndroid::Register }, |
24 }; | 26 }; |
25 | 27 |
26 bool RegisterJni(JNIEnv* env) { | 28 bool RegisterJni(JNIEnv* env) { |
27 return base::android::RegisterNativeMethods( | 29 return base::android::RegisterNativeMethods( |
28 env, kNetRegisteredMethods, arraysize(kNetRegisteredMethods)); | 30 env, kNetRegisteredMethods, arraysize(kNetRegisteredMethods)); |
29 } | 31 } |
30 | 32 |
31 } // namespace android | 33 } // namespace android |
32 } // namespace net | 34 } // namespace net |
OLD | NEW |