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

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

Issue 2442933003: [Payments] Show the icon for the typed in credit card in editor (Closed)
Patch Set: address comments and enable value icon before layout Created 4 years, 1 month 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 144 // if the given card number is not valid and |jempty_if_invalid| is true.
145 base::android::ScopedJavaLocalRef<jstring> GetBasicCardPaymentTypeIfValid( 145 base::android::ScopedJavaLocalRef<jstring> GetBasicCardPaymentType(
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);
149 150
150 // Adds a server credit card. Used only in tests. 151 // Adds a server credit card. Used only in tests.
151 void AddServerCreditCardForTest( 152 void AddServerCreditCardForTest(
152 JNIEnv* env, 153 JNIEnv* env,
153 const base::android::JavaParamRef<jobject>& unused_obj, 154 const base::android::JavaParamRef<jobject>& unused_obj,
154 const base::android::JavaParamRef<jobject>& jcard); 155 const base::android::JavaParamRef<jobject>& jcard);
155 156
156 // Removes the profile or credit card represented by |jguid|. 157 // Removes the profile or credit card represented by |jguid|.
157 void RemoveByGUID(JNIEnv* env, 158 void RemoveByGUID(JNIEnv* env,
158 const base::android::JavaParamRef<jobject>& unused_obj, 159 const base::android::JavaParamRef<jobject>& unused_obj,
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 343
343 // Map associating a region code to a pending normalization. 344 // Map associating a region code to a pending normalization.
344 std::map<std::string, Delegate*> pending_normalization_; 345 std::map<std::string, Delegate*> pending_normalization_;
345 346
346 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 347 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
347 }; 348 };
348 349
349 } // namespace autofill 350 } // namespace autofill
350 351
351 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 352 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698