| 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 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/android/base_jni_onload.h" | 10 #include "base/android/base_jni_onload.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "jni/CronetLibraryLoader_jni.h" | 27 #include "jni/CronetLibraryLoader_jni.h" |
| 28 #include "net/android/net_jni_registrar.h" | 28 #include "net/android/net_jni_registrar.h" |
| 29 #include "net/android/network_change_notifier_factory_android.h" | 29 #include "net/android/network_change_notifier_factory_android.h" |
| 30 #include "net/base/network_change_notifier.h" | 30 #include "net/base/network_change_notifier.h" |
| 31 #include "url/url_features.h" | 31 #include "url/url_features.h" |
| 32 #include "url/url_util.h" | 32 #include "url/url_util.h" |
| 33 | 33 |
| 34 #if BUILDFLAG(USE_PLATFORM_ICU_ALTERNATIVES) | 34 #if BUILDFLAG(USE_PLATFORM_ICU_ALTERNATIVES) |
| 35 #include "url/android/url_jni_registrar.h" // nogncheck | 35 #include "url/android/url_jni_registrar.h" // nogncheck |
| 36 #else | 36 #else |
| 37 #include "base/i18n/icu_util.h" | 37 #include "base/i18n/icu_util.h" // nogncheck |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 namespace cronet { | 40 namespace cronet { |
| 41 namespace { | 41 namespace { |
| 42 | 42 |
| 43 const base::android::RegistrationMethod kCronetRegisteredMethods[] = { | 43 const base::android::RegistrationMethod kCronetRegisteredMethods[] = { |
| 44 {"BaseAndroid", base::android::RegisterJni}, | 44 {"BaseAndroid", base::android::RegisterJni}, |
| 45 {"ChromiumUrlRequest", ChromiumUrlRequestRegisterJni}, | 45 {"ChromiumUrlRequest", ChromiumUrlRequestRegisterJni}, |
| 46 {"ChromiumUrlRequestContext", ChromiumUrlRequestContextRegisterJni}, | 46 {"ChromiumUrlRequestContext", ChromiumUrlRequestContextRegisterJni}, |
| 47 {"CronetBidirectionalStreamAdapter", | 47 {"CronetBidirectionalStreamAdapter", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 g_network_change_notifier = net::NetworkChangeNotifier::Create(); | 110 g_network_change_notifier = net::NetworkChangeNotifier::Create(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 ScopedJavaLocalRef<jstring> GetCronetVersion( | 113 ScopedJavaLocalRef<jstring> GetCronetVersion( |
| 114 JNIEnv* env, | 114 JNIEnv* env, |
| 115 const JavaParamRef<jclass>& jcaller) { | 115 const JavaParamRef<jclass>& jcaller) { |
| 116 return base::android::ConvertUTF8ToJavaString(env, CRONET_VERSION); | 116 return base::android::ConvertUTF8ToJavaString(env, CRONET_VERSION); |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace cronet | 119 } // namespace cronet |
| OLD | NEW |