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

Side by Side Diff: chrome/browser/autofill/android/personal_data_manager_android.h

Issue 1899893002: Card unmasking without form filling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use the credit card number field in metrics tests, because ios single-field form fill will not requ… Created 4 years, 8 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 #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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void RemoveByGUID(JNIEnv* env, 90 void RemoveByGUID(JNIEnv* env,
91 const base::android::JavaParamRef<jobject>& unused_obj, 91 const base::android::JavaParamRef<jobject>& unused_obj,
92 const base::android::JavaParamRef<jstring>& jguid); 92 const base::android::JavaParamRef<jstring>& jguid);
93 93
94 // Resets the given unmasked card back to the masked state. 94 // Resets the given unmasked card back to the masked state.
95 void ClearUnmaskedCache( 95 void ClearUnmaskedCache(
96 JNIEnv* env, 96 JNIEnv* env,
97 const base::android::JavaParamRef<jobject>& unused_obj, 97 const base::android::JavaParamRef<jobject>& unused_obj,
98 const base::android::JavaParamRef<jstring>& jguid); 98 const base::android::JavaParamRef<jstring>& jguid);
99 99
100 // Gets the card CVC and unmasks the card (if it's masked).
101 void GetFullCardForPaymentRequest(
102 JNIEnv* env,
103 const base::android::JavaParamRef<jobject>& unused_obj,
104 const base::android::JavaParamRef<jobject>& jweb_contents,
105 const base::android::JavaParamRef<jstring>& jguid,
106 const base::android::JavaParamRef<jobject>& jdelegate);
107
100 // PersonalDataManagerObserver: 108 // PersonalDataManagerObserver:
101 void OnPersonalDataChanged() override; 109 void OnPersonalDataChanged() override;
102 110
103 // Registers the JNI bindings for this class. 111 // Registers the JNI bindings for this class.
104 static bool Register(JNIEnv* env); 112 static bool Register(JNIEnv* env);
105 113
106 private: 114 private:
107 ~PersonalDataManagerAndroid() override; 115 ~PersonalDataManagerAndroid() override;
108 116
109 // Pointer to the java counterpart. 117 // Pointer to the java counterpart.
110 JavaObjectWeakGlobalRef weak_java_obj_; 118 JavaObjectWeakGlobalRef weak_java_obj_;
111 119
112 // Pointer to the PersonalDataManager for the main profile. 120 // Pointer to the PersonalDataManager for the main profile.
113 PersonalDataManager* personal_data_manager_; 121 PersonalDataManager* personal_data_manager_;
114 122
115 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 123 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
116 }; 124 };
117 125
118 } // namespace autofill 126 } // namespace autofill
119 127
120 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 128 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698