| 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 package org.chromium.chrome.browser.autofill; | 5 package org.chromium.chrome.browser.autofill; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 | 8 |
| 9 import org.chromium.base.ThreadUtils; | 9 import org.chromium.base.ThreadUtils; |
| 10 import org.chromium.base.VisibleForTesting; | 10 import org.chromium.base.VisibleForTesting; |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 | 526 |
| 527 public void deleteCreditCard(String guid) { | 527 public void deleteCreditCard(String guid) { |
| 528 ThreadUtils.assertOnUiThread(); | 528 ThreadUtils.assertOnUiThread(); |
| 529 nativeRemoveByGUID(mPersonalDataManagerAndroid, guid); | 529 nativeRemoveByGUID(mPersonalDataManagerAndroid, guid); |
| 530 } | 530 } |
| 531 | 531 |
| 532 public void clearUnmaskedCache(String guid) { | 532 public void clearUnmaskedCache(String guid) { |
| 533 nativeClearUnmaskedCache(mPersonalDataManagerAndroid, guid); | 533 nativeClearUnmaskedCache(mPersonalDataManagerAndroid, guid); |
| 534 } | 534 } |
| 535 | 535 |
| 536 public void unmaskCard(WebContents webContents, String guid, FullCardRequest
Delegate delegate) { | 536 public void getFullCard(WebContents webContents, String guid, |
| 537 FullCardRequestDelegate delegate) { |
| 537 nativeGetFullCardForPaymentRequest( | 538 nativeGetFullCardForPaymentRequest( |
| 538 mPersonalDataManagerAndroid, webContents, guid, delegate); | 539 mPersonalDataManagerAndroid, webContents, guid, delegate); |
| 539 } | 540 } |
| 540 | 541 |
| 541 /** | 542 /** |
| 542 * @return Whether the Autofill feature is enabled. | 543 * @return Whether the Autofill feature is enabled. |
| 543 */ | 544 */ |
| 544 public static boolean isAutofillEnabled() { | 545 public static boolean isAutofillEnabled() { |
| 545 return nativeIsAutofillEnabled(); | 546 return nativeIsAutofillEnabled(); |
| 546 } | 547 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 long nativePersonalDataManagerAndroid, String guid); | 597 long nativePersonalDataManagerAndroid, String guid); |
| 597 private native void nativeGetFullCardForPaymentRequest(long nativePersonalDa
taManagerAndroid, | 598 private native void nativeGetFullCardForPaymentRequest(long nativePersonalDa
taManagerAndroid, |
| 598 WebContents webContents, String guid, FullCardRequestDelegate delega
te); | 599 WebContents webContents, String guid, FullCardRequestDelegate delega
te); |
| 599 private static native boolean nativeIsAutofillEnabled(); | 600 private static native boolean nativeIsAutofillEnabled(); |
| 600 private static native void nativeSetAutofillEnabled(boolean enable); | 601 private static native void nativeSetAutofillEnabled(boolean enable); |
| 601 private static native boolean nativeIsAutofillManaged(); | 602 private static native boolean nativeIsAutofillManaged(); |
| 602 private static native boolean nativeIsPaymentsIntegrationEnabled(); | 603 private static native boolean nativeIsPaymentsIntegrationEnabled(); |
| 603 private static native void nativeSetPaymentsIntegrationEnabled(boolean enabl
e); | 604 private static native void nativeSetPaymentsIntegrationEnabled(boolean enabl
e); |
| 604 private static native String nativeToCountryCode(String countryName); | 605 private static native String nativeToCountryCode(String countryName); |
| 605 } | 606 } |
| OLD | NEW |