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

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

Issue 2515853002: [Payments] Fix new billing address label. (Closed)
Patch Set: Updated test and code added in the Rebase Created 4 years 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // The labels never contain the email address, or phone numbers. The 89 // The labels never contain the email address, or phone numbers. The
90 // |include_name_in_label| argument controls whether the name is included. 90 // |include_name_in_label| argument controls whether the name is included.
91 // All other fields are included in the label. 91 // All other fields are included in the label.
92 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsToSuggest( 92 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsToSuggest(
93 JNIEnv* env, 93 JNIEnv* env,
94 const base::android::JavaParamRef<jobject>& unused_obj, 94 const base::android::JavaParamRef<jobject>& unused_obj,
95 jboolean include_name_in_label, 95 jboolean include_name_in_label,
96 jboolean include_organization_in_label, 96 jboolean include_organization_in_label,
97 jboolean include_country_in_label); 97 jboolean include_country_in_label);
98 98
99 // Returns the label of the given profile for PaymentRequest. This label does 99 // Returns the shipping label of the given profile for PaymentRequest. This
100 // not contain the full name or the email address. All other fields are 100 // label does not contain the full name or the email address. All other fields
101 // included in the label. 101 // are included in the label.
102 base::android::ScopedJavaLocalRef<jstring> GetAddressLabelForPaymentRequest( 102 base::android::ScopedJavaLocalRef<jstring>
103 GetShippingAddressLabelForPaymentRequest(
103 JNIEnv* env, 104 JNIEnv* env,
104 const base::android::JavaParamRef<jobject>& unused_obj, 105 const base::android::JavaParamRef<jobject>& unused_obj,
105 const base::android::JavaParamRef<jobject>& jprofile); 106 const base::android::JavaParamRef<jobject>& jprofile);
107
108 // Returns the billing label of the given profile for PaymentRequest. This
109 // label does not contain the company name, the phone number, the country or
110 // the email address. All other fields are included in the label.
111 base::android::ScopedJavaLocalRef<jstring>
112 GetBillingAddressLabelForPaymentRequest(
113 JNIEnv* env,
114 const base::android::JavaParamRef<jobject>& unused_obj,
115 const base::android::JavaParamRef<jobject>& jprofile);
106 116
107 // These functions act on local credit cards. 117 // These functions act on local credit cards.
108 // -------------------- 118 // --------------------
109 119
110 // Returns the GUIDs of all the credit cards. 120 // Returns the GUIDs of all the credit cards.
111 base::android::ScopedJavaLocalRef<jobjectArray> GetCreditCardGUIDsForSettings( 121 base::android::ScopedJavaLocalRef<jobjectArray> GetCreditCardGUIDsForSettings(
112 JNIEnv* env, 122 JNIEnv* env,
113 const base::android::JavaParamRef<jobject>& unused_obj); 123 const base::android::JavaParamRef<jobject>& unused_obj);
114 124
115 // Returns the GUIDs of the credit cards to suggest to the user. See 125 // Returns the GUIDs of the credit cards to suggest to the user. See
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 // Map associating a region code to pending normalizations. 366 // Map associating a region code to pending normalizations.
357 std::map<std::string, std::vector<std::unique_ptr<Delegate>>> 367 std::map<std::string, std::vector<std::unique_ptr<Delegate>>>
358 pending_normalization_; 368 pending_normalization_;
359 369
360 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 370 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
361 }; 371 };
362 372
363 } // namespace autofill 373 } // namespace autofill
364 374
365 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 375 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698