Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_ANDROID_UTILS_H_ | |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_ANDROID_UTILS_H_ | |
| 7 | |
| 8 #include "base/android/jni_array.h" | |
| 9 #include "base/android/scoped_java_ref.h" | |
| 10 #include "components/autofill/core/common/password_form.h" | |
| 11 | |
| 12 // Creates Java counterpart of autofill::PasswordForm, assigning it a |position| | |
| 13 // in case form is part of some array of forms (or zero in case of single | |
| 14 // credential element) and |type| which should be either local or federated. | |
| 15 base::android::ScopedJavaLocalRef<jobject> CreateNativeCredential( | |
|
newt (away)
2015/03/17 06:04:18
I'd avoid overloading this method unless it's real
melandory
2015/03/17 13:05:33
I'm planing to use this method in a future when I'
| |
| 16 JNIEnv* env, | |
| 17 const autofill::PasswordForm& password_form, | |
| 18 int type); | |
| 19 | |
| 20 base::android::ScopedJavaLocalRef<jobject> CreateNativeCredential( | |
| 21 JNIEnv* env, | |
| 22 const autofill::PasswordForm& password_form, | |
| 23 int position, | |
| 24 int type); | |
| 25 | |
| 26 // Creates Java Credential[] array of size |size|. | |
| 27 base::android::ScopedJavaLocalRef<jobjectArray> CreateNativeCredentialArray( | |
| 28 JNIEnv* env, | |
| 29 size_t size); | |
| 30 | |
| 31 // Registers the Credential native method. | |
| 32 bool RegisterCredential(JNIEnv* env); | |
| 33 | |
| 34 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_ANDROID_UTILS_H_ | |
| OLD | NEW |