| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 const base::android::JavaParamRef<jstring>& jcard_number); | 154 const base::android::JavaParamRef<jstring>& jcard_number); |
| 155 | 155 |
| 156 // Adds or modifies a local credit card. If |jguid| is an empty string, we | 156 // Adds or modifies a local credit card. If |jguid| is an empty string, we |
| 157 // are creating a new card. Else we are updating an existing profile. Always | 157 // are creating a new card. Else we are updating an existing profile. Always |
| 158 // returns the GUID for this profile; the GUID it may have just been created. | 158 // returns the GUID for this profile; the GUID it may have just been created. |
| 159 base::android::ScopedJavaLocalRef<jstring> SetCreditCard( | 159 base::android::ScopedJavaLocalRef<jstring> SetCreditCard( |
| 160 JNIEnv* env, | 160 JNIEnv* env, |
| 161 const base::android::JavaParamRef<jobject>& unused_obj, | 161 const base::android::JavaParamRef<jobject>& unused_obj, |
| 162 const base::android::JavaParamRef<jobject>& jcard); | 162 const base::android::JavaParamRef<jobject>& jcard); |
| 163 | 163 |
| 164 // Updates the billing address of a server credit card with server ID | 164 // Updates the billing address of a server credit card |jcard|. |
| 165 // |jcard_server_id|. | |
| 166 void UpdateServerCardBillingAddress( | 165 void UpdateServerCardBillingAddress( |
| 167 JNIEnv* env, | 166 JNIEnv* env, |
| 168 const base::android::JavaParamRef<jobject>& unused_obj, | 167 const base::android::JavaParamRef<jobject>& unused_obj, |
| 169 const base::android::JavaParamRef<jstring>& jcard_server_id, | 168 const base::android::JavaParamRef<jobject>& jcard); |
| 170 const base::android::JavaParamRef<jstring>& jbilling_address_id); | |
| 171 | 169 |
| 172 // Returns the card type according to PaymentRequest spec, or an empty string | 170 // Returns the card type according to PaymentRequest spec, or an empty string |
| 173 // if the given card number is not valid and |jempty_if_invalid| is true. | 171 // if the given card number is not valid and |jempty_if_invalid| is true. |
| 174 base::android::ScopedJavaLocalRef<jstring> GetBasicCardPaymentType( | 172 base::android::ScopedJavaLocalRef<jstring> GetBasicCardPaymentType( |
| 175 JNIEnv* env, | 173 JNIEnv* env, |
| 176 const base::android::JavaParamRef<jobject>& unused_obj, | 174 const base::android::JavaParamRef<jobject>& unused_obj, |
| 177 const base::android::JavaParamRef<jstring>& jcard_number, | 175 const base::android::JavaParamRef<jstring>& jcard_number, |
| 178 const jboolean jempty_if_invalid); | 176 const jboolean jempty_if_invalid); |
| 179 | 177 |
| 180 // Adds a server credit card. Used only in tests. | 178 // Adds a server credit card. Used only in tests. |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 // Map associating a region code to pending normalizations. | 383 // Map associating a region code to pending normalizations. |
| 386 std::map<std::string, std::vector<std::unique_ptr<Delegate>>> | 384 std::map<std::string, std::vector<std::unique_ptr<Delegate>>> |
| 387 pending_normalization_; | 385 pending_normalization_; |
| 388 | 386 |
| 389 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); | 387 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); |
| 390 }; | 388 }; |
| 391 | 389 |
| 392 } // namespace autofill | 390 } // namespace autofill |
| 393 | 391 |
| 394 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 392 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
| OLD | NEW |