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

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

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

Powered by Google App Engine
This is Rietveld 408576698