| 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 "components/cronet/android/cronet_library_loader.h" | 5 #include "components/cronet/android/cronet_library_loader.h" |
| 6 | 6 |
| 7 #include <jni.h> | 7 #include <jni.h> |
| 8 | 8 |
| 9 #include "base/android/base_jni_onload.h" | 9 #include "base/android/base_jni_onload.h" |
| 10 #include "base/android/base_jni_registrar.h" | 10 #include "base/android/base_jni_registrar.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "components/cronet/android/cronet_url_request_adapter.h" | 21 #include "components/cronet/android/cronet_url_request_adapter.h" |
| 22 #include "components/cronet/android/cronet_url_request_context_adapter.h" | 22 #include "components/cronet/android/cronet_url_request_context_adapter.h" |
| 23 #include "components/cronet/version.h" | 23 #include "components/cronet/version.h" |
| 24 #include "jni/CronetLibraryLoader_jni.h" | 24 #include "jni/CronetLibraryLoader_jni.h" |
| 25 #include "net/android/net_jni_registrar.h" | 25 #include "net/android/net_jni_registrar.h" |
| 26 #include "net/android/network_change_notifier_factory_android.h" | 26 #include "net/android/network_change_notifier_factory_android.h" |
| 27 #include "net/base/network_change_notifier.h" | 27 #include "net/base/network_change_notifier.h" |
| 28 #include "url/url_util.h" | 28 #include "url/url_util.h" |
| 29 | 29 |
| 30 #if defined(USE_ICU_ALTERNATIVES_ON_ANDROID) | 30 #if defined(USE_ICU_ALTERNATIVES_ON_ANDROID) |
| 31 #include "url/android/url_jni_registrar.h" | 31 #include "url/android/url_jni_registrar.h" // nogncheck |
| 32 #else | 32 #else |
| 33 #include "base/i18n/icu_util.h" | 33 #include "base/i18n/icu_util.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 namespace cronet { | 36 namespace cronet { |
| 37 namespace { | 37 namespace { |
| 38 | 38 |
| 39 const base::android::RegistrationMethod kCronetRegisteredMethods[] = { | 39 const base::android::RegistrationMethod kCronetRegisteredMethods[] = { |
| 40 {"BaseAndroid", base::android::RegisterJni}, | 40 {"BaseAndroid", base::android::RegisterJni}, |
| 41 {"ChromiumUrlRequest", ChromiumUrlRequestRegisterJni}, | 41 {"ChromiumUrlRequest", ChromiumUrlRequestRegisterJni}, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 g_network_change_notifier = net::NetworkChangeNotifier::Create(); | 104 g_network_change_notifier = net::NetworkChangeNotifier::Create(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 ScopedJavaLocalRef<jstring> GetCronetVersion( | 107 ScopedJavaLocalRef<jstring> GetCronetVersion( |
| 108 JNIEnv* env, | 108 JNIEnv* env, |
| 109 const JavaParamRef<jclass>& jcaller) { | 109 const JavaParamRef<jclass>& jcaller) { |
| 110 return base::android::ConvertUTF8ToJavaString(env, CRONET_VERSION); | 110 return base::android::ConvertUTF8ToJavaString(env, CRONET_VERSION); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace cronet | 113 } // namespace cronet |
| OLD | NEW |