Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalDataManager.java

Issue 1904553003: Java implementation of PaymentRequest mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698