| 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 "net/android/android_private_key.h" | 5 #include "net/android/android_private_key.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 #include "jni/AndroidPrivateKey_jni.h" | 8 #include "jni/AndroidPrivateKey_jni.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 namespace android { | 11 namespace android { |
| 12 | 12 |
| 13 base::android::ScopedJavaLocalRef<jobject> GetKeyStore( | 13 base::android::ScopedJavaLocalRef<jobject> GetKeyStore( |
| 14 jobject private_key_ref) { | 14 jobject private_key_ref) { |
| 15 JNIEnv* env = base::android::AttachCurrentThread(); | 15 JNIEnv* env = base::android::AttachCurrentThread(); |
| 16 return Java_AndroidPrivateKey_getKeyStore( | 16 return Java_AndroidPrivateKey_getKeyStore(env, private_key_ref); |
| 17 env, private_key_ref); | |
| 18 } | 17 } |
| 19 | 18 |
| 20 bool RegisterAndroidPrivateKey(JNIEnv* env) { | 19 bool RegisterAndroidPrivateKey(JNIEnv* env) { |
| 21 return RegisterNativesImpl(env); | 20 return RegisterNativesImpl(env); |
| 22 } | 21 } |
| 23 | 22 |
| 24 } // namespace android | 23 } // namespace android |
| 25 } // namespace net | 24 } // namespace net |
| OLD | NEW |