Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: chrome/browser/password_manager/password_form_android_utils.h

Issue 925593006: Pass all info to account chooser infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java_cpp_enum
Patch Set: Removing avatar URL Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698