| 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 <string> |
| 9 #include <vector> |
| 10 |
| 8 #include "base/android/jni_weak_ref.h" | 11 #include "base/android/jni_weak_ref.h" |
| 9 #include "base/android/scoped_java_ref.h" | 12 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/macros.h" | 13 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 12 #include "components/autofill/core/browser/personal_data_manager.h" | 15 #include "components/autofill/core/browser/personal_data_manager.h" |
| 13 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 16 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
| 14 #include "components/payments/core/address_normalizer_impl.h" | 17 #include "components/payments/core/address_normalizer_impl.h" |
| 15 | 18 |
| 16 namespace autofill { | 19 namespace autofill { |
| 17 | 20 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 JNIEnv* env, | 155 JNIEnv* env, |
| 153 const base::android::JavaParamRef<jobject>& unused_obj, | 156 const base::android::JavaParamRef<jobject>& unused_obj, |
| 154 const base::android::JavaParamRef<jobject>& jcard); | 157 const base::android::JavaParamRef<jobject>& jcard); |
| 155 | 158 |
| 156 // Updates the billing address of a server credit card |jcard|. | 159 // Updates the billing address of a server credit card |jcard|. |
| 157 void UpdateServerCardBillingAddress( | 160 void UpdateServerCardBillingAddress( |
| 158 JNIEnv* env, | 161 JNIEnv* env, |
| 159 const base::android::JavaParamRef<jobject>& unused_obj, | 162 const base::android::JavaParamRef<jobject>& unused_obj, |
| 160 const base::android::JavaParamRef<jobject>& jcard); | 163 const base::android::JavaParamRef<jobject>& jcard); |
| 161 | 164 |
| 162 // Returns the card type according to PaymentRequest spec, or an empty string | 165 // Returns the issuer network string according to PaymentRequest spec, or an |
| 163 // if the given card number is not valid and |jempty_if_invalid| is true. | 166 // empty string if the given card number is not valid and |jempty_if_invalid| |
| 164 base::android::ScopedJavaLocalRef<jstring> GetBasicCardPaymentType( | 167 // is true. |
| 168 base::android::ScopedJavaLocalRef<jstring> GetBasicCardIssuerNetwork( |
| 165 JNIEnv* env, | 169 JNIEnv* env, |
| 166 const base::android::JavaParamRef<jobject>& unused_obj, | 170 const base::android::JavaParamRef<jobject>& unused_obj, |
| 167 const base::android::JavaParamRef<jstring>& jcard_number, | 171 const base::android::JavaParamRef<jstring>& jcard_number, |
| 168 const jboolean jempty_if_invalid); | 172 const jboolean jempty_if_invalid); |
| 169 | 173 |
| 170 // Adds a server credit card. Used only in tests. | 174 // Adds a server credit card. Used only in tests. |
| 171 void AddServerCreditCardForTest( | 175 void AddServerCreditCardForTest( |
| 172 JNIEnv* env, | 176 JNIEnv* env, |
| 173 const base::android::JavaParamRef<jobject>& unused_obj, | 177 const base::android::JavaParamRef<jobject>& unused_obj, |
| 174 const base::android::JavaParamRef<jobject>& jcard); | 178 const base::android::JavaParamRef<jobject>& jcard); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 365 |
| 362 // The address validator used to normalize addresses. | 366 // The address validator used to normalize addresses. |
| 363 payments::AddressNormalizerImpl address_normalizer_; | 367 payments::AddressNormalizerImpl address_normalizer_; |
| 364 | 368 |
| 365 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); | 369 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); |
| 366 }; | 370 }; |
| 367 | 371 |
| 368 } // namespace autofill | 372 } // namespace autofill |
| 369 | 373 |
| 370 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 374 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
| OLD | NEW |