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

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

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CREDENTIAL_ANDROID_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CREDENTIAL_ANDROID_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CREDENTIAL_ANDROID_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CREDENTIAL_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "components/autofill/core/common/password_form.h" 12 #include "components/autofill/core/common/password_form.h"
13 13
14 // Creates Java counterpart of autofill::PasswordForm, assigning it a |position| 14 // Creates Java counterpart of autofill::PasswordForm, assigning it a |position|
15 // in case form is part of some array of forms and |type| which should be either 15 // in case form is part of some array of forms and |type| which should be either
16 // local or federated. 16 // local or federated.
17 base::android::ScopedJavaLocalRef<jobject> CreateNativeCredential( 17 base::android::ScopedJavaLocalRef<jobject> CreateNativeCredential(
18 JNIEnv* env, 18 JNIEnv* env,
19 const autofill::PasswordForm& password_form, 19 const autofill::PasswordForm& password_form,
20 int position, 20 int position,
21 int type); 21 int type);
22 22
23 // Creates Java Credential[] array of size |size|. 23 // Creates Java Credential[] array of size |size|.
24 base::android::ScopedJavaLocalRef<jobjectArray> CreateNativeCredentialArray( 24 base::android::ScopedJavaLocalRef<jobjectArray> CreateNativeCredentialArray(
25 JNIEnv* env, 25 JNIEnv* env,
26 size_t size); 26 size_t size);
27 27
28 // Registers the Credential native method.
29 bool RegisterCredential(JNIEnv* env);
30
31 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CREDENTIAL_ANDROID_H_ 28 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CREDENTIAL_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698