| 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" | 
| 11 #include "base/android/base_jni_registrar.h" | 11 #include "base/android/base_jni_registrar.h" | 
| 12 #include "base/android/jni_android.h" | 12 #include "base/android/jni_android.h" | 
| 13 #include "base/android/jni_registrar.h" | 13 #include "base/android/jni_registrar.h" | 
| 14 #include "base/android/jni_utils.h" | 14 #include "base/android/jni_utils.h" | 
| 15 #include "base/android/library_loader/library_loader_hooks.h" | 15 #include "base/android/library_loader/library_loader_hooks.h" | 
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" | 
| 17 #include "base/feature_list.h" | 17 #include "base/feature_list.h" | 
| 18 #include "base/logging.h" | 18 #include "base/logging.h" | 
| 19 #include "base/macros.h" | 19 #include "base/macros.h" | 
| 20 #include "base/message_loop/message_loop.h" | 20 #include "base/message_loop/message_loop.h" | 
| 21 #include "components/cronet/android/chromium_url_request.h" |  | 
| 22 #include "components/cronet/android/cronet_bidirectional_stream_adapter.h" | 21 #include "components/cronet/android/cronet_bidirectional_stream_adapter.h" | 
| 23 #include "components/cronet/android/cronet_upload_data_stream_adapter.h" | 22 #include "components/cronet/android/cronet_upload_data_stream_adapter.h" | 
| 24 #include "components/cronet/android/cronet_url_request_adapter.h" | 23 #include "components/cronet/android/cronet_url_request_adapter.h" | 
| 25 #include "components/cronet/android/cronet_url_request_context_adapter.h" | 24 #include "components/cronet/android/cronet_url_request_context_adapter.h" | 
| 26 #include "components/cronet/version.h" | 25 #include "components/cronet/version.h" | 
| 27 #include "jni/CronetLibraryLoader_jni.h" | 26 #include "jni/CronetLibraryLoader_jni.h" | 
| 28 #include "net/android/net_jni_registrar.h" | 27 #include "net/android/net_jni_registrar.h" | 
| 29 #include "net/android/network_change_notifier_factory_android.h" | 28 #include "net/android/network_change_notifier_factory_android.h" | 
| 30 #include "net/base/network_change_notifier.h" | 29 #include "net/base/network_change_notifier.h" | 
| 31 #include "url/url_features.h" | 30 #include "url/url_features.h" | 
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 107   g_network_change_notifier = net::NetworkChangeNotifier::Create(); | 106   g_network_change_notifier = net::NetworkChangeNotifier::Create(); | 
| 108 } | 107 } | 
| 109 | 108 | 
| 110 ScopedJavaLocalRef<jstring> GetCronetVersion( | 109 ScopedJavaLocalRef<jstring> GetCronetVersion( | 
| 111     JNIEnv* env, | 110     JNIEnv* env, | 
| 112     const JavaParamRef<jclass>& jcaller) { | 111     const JavaParamRef<jclass>& jcaller) { | 
| 113   return base::android::ConvertUTF8ToJavaString(env, CRONET_VERSION); | 112   return base::android::ConvertUTF8ToJavaString(env, CRONET_VERSION); | 
| 114 } | 113 } | 
| 115 | 114 | 
| 116 }  // namespace cronet | 115 }  // namespace cronet | 
| OLD | NEW | 
|---|