| 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_CREDENTIAL_ANDROID_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CREDENTIAL_ANDROID_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 and |type| which should be either |
| 14 // local or federated. |
| 15 base::android::ScopedJavaLocalRef<jobject> CreateNativeCredential( |
| 16 JNIEnv* env, |
| 17 const autofill::PasswordForm& password_form, |
| 18 int position, |
| 19 int type); |
| 20 |
| 21 // Creates Java Credential[] array of size |size|. |
| 22 base::android::ScopedJavaLocalRef<jobjectArray> CreateNativeCredentialArray( |
| 23 JNIEnv* env, |
| 24 size_t size); |
| 25 |
| 26 // Registers the Credential native method. |
| 27 bool RegisterCredential(JNIEnv* env); |
| 28 |
| 29 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CREDENTIAL_ANDROID_H_ |
| OLD | NEW |