| 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/network_library.h" | 5 #include "net/android/network_library.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
| 9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "jni/android_network_library_jni.h" | 12 #include "jni/AndroidNetworkLibrary_jni.h" |
| 13 | 13 |
| 14 using base::android::AttachCurrentThread; | 14 using base::android::AttachCurrentThread; |
| 15 using base::android::ClearException; | 15 using base::android::ClearException; |
| 16 using base::android::ConvertJavaStringToUTF8; | 16 using base::android::ConvertJavaStringToUTF8; |
| 17 using base::android::ConvertUTF8ToJavaString; | 17 using base::android::ConvertUTF8ToJavaString; |
| 18 using base::android::GetApplicationContext; | 18 using base::android::GetApplicationContext; |
| 19 using base::android::ScopedJavaLocalRef; | 19 using base::android::ScopedJavaLocalRef; |
| 20 using base::android::ToJavaArrayOfByteArray; | 20 using base::android::ToJavaArrayOfByteArray; |
| 21 using base::android::ToJavaByteArray; | 21 using base::android::ToJavaByteArray; |
| 22 | 22 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 *result = ConvertJavaStringToUTF8(ret); | 86 *result = ConvertJavaStringToUTF8(ret); |
| 87 return true; | 87 return true; |
| 88 } | 88 } |
| 89 | 89 |
| 90 bool RegisterNetworkLibrary(JNIEnv* env) { | 90 bool RegisterNetworkLibrary(JNIEnv* env) { |
| 91 return RegisterNativesImpl(env); | 91 return RegisterNativesImpl(env); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace android | 94 } // namespace android |
| 95 } // namespace net | 95 } // namespace net |
| OLD | NEW |