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

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

Issue 2417353002: PaymentRequest: Rename includeName parameter to includeNameInLabel. (Closed)
Patch Set: PaymentRequest: Rename includeName parameter to includeNameInLabel. Created 4 years, 2 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // 72 //
73 // The labels never contain the full name and include at least 2 fields. 73 // The labels never contain the full name and include at least 2 fields.
74 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsForSettings( 74 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsForSettings(
75 JNIEnv* env, 75 JNIEnv* env,
76 const base::android::JavaParamRef<jobject>& unused_obj); 76 const base::android::JavaParamRef<jobject>& unused_obj);
77 77
78 // Gets the labels for the profiles to suggest to the user. These labels are 78 // Gets the labels for the profiles to suggest to the user. These labels are
79 // useful for distinguishing the profiles from one another. 79 // useful for distinguishing the profiles from one another.
80 // 80 //
81 // The labels never contain the email address, or phone numbers. The 81 // The labels never contain the email address, or phone numbers. The
82 // |include_name| argument controls whether the name is included. All other 82 // |include_name_in_label| argument controls whether the name is included.
83 // fields are included in the label. 83 // All other fields are included in the label.
84 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsToSuggest( 84 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsToSuggest(
85 JNIEnv* env, 85 JNIEnv* env,
86 const base::android::JavaParamRef<jobject>& unused_obj, 86 const base::android::JavaParamRef<jobject>& unused_obj,
87 jboolean include_name); 87 jboolean include_name_in_label);
88 88
89 // Returns the label of the given profile for PaymentRequest. This label does 89 // Returns the label of the given profile for PaymentRequest. This label does
90 // not contain the full name or the email address. All other fields are 90 // not contain the full name or the email address. All other fields are
91 // included in the label. 91 // included in the label.
92 base::android::ScopedJavaLocalRef<jstring> GetAddressLabelForPaymentRequest( 92 base::android::ScopedJavaLocalRef<jstring> GetAddressLabelForPaymentRequest(
93 JNIEnv* env, 93 JNIEnv* env,
94 const base::android::JavaParamRef<jobject>& unused_obj, 94 const base::android::JavaParamRef<jobject>& unused_obj,
95 const base::android::JavaParamRef<jobject>& jprofile); 95 const base::android::JavaParamRef<jobject>& jprofile);
96 96
97 // These functions act on local credit cards. 97 // These functions act on local credit cards.
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Gets the labels for the |profiles| passed as parameters. These labels are 321 // Gets the labels for the |profiles| passed as parameters. These labels are
322 // useful for distinguishing the profiles from one another. 322 // useful for distinguishing the profiles from one another.
323 // 323 //
324 // The labels never contain the full name and include at least 2 fields. 324 // The labels never contain the full name and include at least 2 fields.
325 // 325 //
326 // If |address_only| is true, then such fields as phone number, and email 326 // If |address_only| is true, then such fields as phone number, and email
327 // address are also omitted, but all other fields are included in the label. 327 // address are also omitted, but all other fields are included in the label.
328 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabels( 328 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabels(
329 JNIEnv* env, 329 JNIEnv* env,
330 bool address_only, 330 bool address_only,
331 bool include_name, 331 bool include_name_in_label,
332 std::vector<AutofillProfile*> profiles); 332 std::vector<AutofillProfile*> profiles);
333 333
334 // Pointer to the java counterpart. 334 // Pointer to the java counterpart.
335 JavaObjectWeakGlobalRef weak_java_obj_; 335 JavaObjectWeakGlobalRef weak_java_obj_;
336 336
337 // Pointer to the PersonalDataManager for the main profile. 337 // Pointer to the PersonalDataManager for the main profile.
338 PersonalDataManager* personal_data_manager_; 338 PersonalDataManager* personal_data_manager_;
339 339
340 // The address validator used to normalize addresses. 340 // The address validator used to normalize addresses.
341 AddressValidator address_validator_; 341 AddressValidator address_validator_;
342 342
343 // Map associating a region code to a pending normalization. 343 // Map associating a region code to a pending normalization.
344 std::map<std::string, Delegate*> pending_normalization_; 344 std::map<std::string, Delegate*> pending_normalization_;
345 345
346 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 346 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
347 }; 347 };
348 348
349 } // namespace autofill 349 } // namespace autofill
350 350
351 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 351 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698