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