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_weak_ref.h" | 8 #include "base/android/jni_weak_ref.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 // Updates the billing address of a server credit card with server ID | 136 // Updates the billing address of a server credit card with server ID |
137 // |jcard_server_id|. | 137 // |jcard_server_id|. |
138 void UpdateServerCardBillingAddress( | 138 void UpdateServerCardBillingAddress( |
139 JNIEnv* env, | 139 JNIEnv* env, |
140 const base::android::JavaParamRef<jobject>& unused_obj, | 140 const base::android::JavaParamRef<jobject>& unused_obj, |
141 const base::android::JavaParamRef<jstring>& jcard_server_id, | 141 const base::android::JavaParamRef<jstring>& jcard_server_id, |
142 const base::android::JavaParamRef<jstring>& jbilling_address_id); | 142 const base::android::JavaParamRef<jstring>& jbilling_address_id); |
143 | 143 |
144 // Returns the card type according to PaymentRequest spec, or an empty string | 144 // Returns the card type according to PaymentRequest spec, or an empty string |
145 // if the given card number is not valid. | 145 // if the given card number is not valid and |jempty_if_invalid| is true. |
146 base::android::ScopedJavaLocalRef<jstring> GetBasicCardPaymentTypeIfValid( | 146 base::android::ScopedJavaLocalRef<jstring> GetBasicCardPaymentType( |
147 JNIEnv* env, | 147 JNIEnv* env, |
148 const base::android::JavaParamRef<jobject>& unused_obj, | 148 const base::android::JavaParamRef<jobject>& unused_obj, |
149 const base::android::JavaParamRef<jstring>& jcard_number); | 149 const base::android::JavaParamRef<jstring>& jcard_number, |
| 150 const jboolean jempty_if_invalid); |
150 | 151 |
151 // Adds a server credit card. Used only in tests. | 152 // Adds a server credit card. Used only in tests. |
152 void AddServerCreditCardForTest( | 153 void AddServerCreditCardForTest( |
153 JNIEnv* env, | 154 JNIEnv* env, |
154 const base::android::JavaParamRef<jobject>& unused_obj, | 155 const base::android::JavaParamRef<jobject>& unused_obj, |
155 const base::android::JavaParamRef<jobject>& jcard); | 156 const base::android::JavaParamRef<jobject>& jcard); |
156 | 157 |
157 // Removes the profile or credit card represented by |jguid|. | 158 // Removes the profile or credit card represented by |jguid|. |
158 void RemoveByGUID(JNIEnv* env, | 159 void RemoveByGUID(JNIEnv* env, |
159 const base::android::JavaParamRef<jobject>& unused_obj, | 160 const base::android::JavaParamRef<jobject>& unused_obj, |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 // Map associating a region code to pending normalizations. | 345 // Map associating a region code to pending normalizations. |
345 std::map<std::string, std::vector<std::unique_ptr<Delegate>>> | 346 std::map<std::string, std::vector<std::unique_ptr<Delegate>>> |
346 pending_normalization_; | 347 pending_normalization_; |
347 | 348 |
348 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); | 349 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); |
349 }; | 350 }; |
350 | 351 |
351 } // namespace autofill | 352 } // namespace autofill |
352 | 353 |
353 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 354 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
OLD | NEW |