| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 6 #define CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/android/jni_helper.h" | 8 #include "base/android/jni_helper.h" |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "components/autofill/browser/personal_data_manager.h" | 10 #include "components/autofill/browser/personal_data_manager.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 jobject unused_obj, | 47 jobject unused_obj, |
| 48 jobject jprofile); | 48 jobject jprofile); |
| 49 | 49 |
| 50 // Credit Card Profiles | 50 // Credit Card Profiles |
| 51 // -------------------- | 51 // -------------------- |
| 52 | 52 |
| 53 // Returns the number of credit cards. | 53 // Returns the number of credit cards. |
| 54 jint GetCreditCardCount(JNIEnv* unused_env, jobject unused_obj); | 54 jint GetCreditCardCount(JNIEnv* unused_env, jobject unused_obj); |
| 55 | 55 |
| 56 // Returns the credit card as indexed by |index| in the PersonalDataManager's | 56 // Returns the credit card as indexed by |index| in the PersonalDataManager's |
| 57 // |credit_cards()| collection. | 57 // |GetCreditCards()| collection. |
| 58 base::android::ScopedJavaLocalRef<jobject> GetCreditCardByIndex( | 58 base::android::ScopedJavaLocalRef<jobject> GetCreditCardByIndex( |
| 59 JNIEnv* env, | 59 JNIEnv* env, |
| 60 jobject unused_obj, | 60 jobject unused_obj, |
| 61 jint index); | 61 jint index); |
| 62 | 62 |
| 63 // Returns the credit card with the specified |jguid|, or NULL if there is | 63 // Returns the credit card with the specified |jguid|, or NULL if there is |
| 64 // no credit card with the specified |jguid|. | 64 // no credit card with the specified |jguid|. |
| 65 base::android::ScopedJavaLocalRef<jobject> GetCreditCardByGUID( | 65 base::android::ScopedJavaLocalRef<jobject> GetCreditCardByGUID( |
| 66 JNIEnv* env, | 66 JNIEnv* env, |
| 67 jobject unused_obj, | 67 jobject unused_obj, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 92 | 92 |
| 93 // Pointer to the PersonalDataManager for the main profile. | 93 // Pointer to the PersonalDataManager for the main profile. |
| 94 PersonalDataManager* personal_data_manager_; | 94 PersonalDataManager* personal_data_manager_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); | 96 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace autofill | 99 } // namespace autofill |
| 100 | 100 |
| 101 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 101 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
| OLD | NEW |