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/context_utils.h" |
7 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 9 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
10 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
11 #include "base/logging.h" | 12 #include "base/logging.h" |
12 #include "jni/AndroidNetworkLibrary_jni.h" | 13 #include "jni/AndroidNetworkLibrary_jni.h" |
13 | 14 |
14 using base::android::AttachCurrentThread; | 15 using base::android::AttachCurrentThread; |
15 using base::android::ConvertJavaStringToUTF8; | 16 using base::android::ConvertJavaStringToUTF8; |
16 using base::android::ConvertUTF8ToJavaString; | 17 using base::android::ConvertUTF8ToJavaString; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 base::android::AttachCurrentThread(), | 142 base::android::AttachCurrentThread(), |
142 base::android::GetApplicationContext()); | 143 base::android::GetApplicationContext()); |
143 } | 144 } |
144 | 145 |
145 bool RegisterNetworkLibrary(JNIEnv* env) { | 146 bool RegisterNetworkLibrary(JNIEnv* env) { |
146 return RegisterNativesImpl(env); | 147 return RegisterNativesImpl(env); |
147 } | 148 } |
148 | 149 |
149 } // namespace android | 150 } // namespace android |
150 } // namespace net | 151 } // namespace net |
OLD | NEW |