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

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

Issue 2149433002: [Payments] Add ability to bold parts of addresses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // distinguishing the profiles from one another. 54 // distinguishing the profiles from one another.
55 // 55 //
56 // The labels never contain the full name and include at least 2 fields. 56 // The labels never contain the full name and include at least 2 fields.
57 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsForSettings( 57 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsForSettings(
58 JNIEnv* env, 58 JNIEnv* env,
59 const base::android::JavaParamRef<jobject>& unused_obj); 59 const base::android::JavaParamRef<jobject>& unused_obj);
60 60
61 // Gets the labels for the profiles to suggest to the user. These labels are 61 // Gets the labels for the profiles to suggest to the user. These labels are
62 // useful for distinguishing the profiles from one another. 62 // useful for distinguishing the profiles from one another.
63 // 63 //
64 // The labels never contain the full name or email address. All other fields 64 // The labels never contain the full name, email address, or phone numbers.
65 // are included in the label. 65 // All other fields are included in the label.
66 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsToSuggest( 66 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsToSuggest(
67 JNIEnv* env, 67 JNIEnv* env,
68 const base::android::JavaParamRef<jobject>& unused_obj); 68 const base::android::JavaParamRef<jobject>& unused_obj);
69 69
70 // Returns the label of the given profile for PaymentRequest. This label does 70 // Returns the label of the given profile for PaymentRequest. This label does
71 // not contain the full name or the email address. All other fields are 71 // not contain the full name or the email address. All other fields are
72 // included in the label. 72 // included in the label.
73 base::android::ScopedJavaLocalRef<jstring> GetAddressLabelForPaymentRequest( 73 base::android::ScopedJavaLocalRef<jstring> GetAddressLabelForPaymentRequest(
74 JNIEnv* env, 74 JNIEnv* env,
75 const base::android::JavaParamRef<jobject>& unused_obj, 75 const base::android::JavaParamRef<jobject>& unused_obj,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // Returns the GUIDs of the |credit_cards| passed as parameter. 176 // Returns the GUIDs of the |credit_cards| passed as parameter.
177 base::android::ScopedJavaLocalRef<jobjectArray> GetCreditCardGUIDs( 177 base::android::ScopedJavaLocalRef<jobjectArray> GetCreditCardGUIDs(
178 JNIEnv* env, 178 JNIEnv* env,
179 const std::vector<CreditCard*>& credit_cards); 179 const std::vector<CreditCard*>& credit_cards);
180 180
181 // Gets the labels for the |profiles| passed as parameters. These labels are 181 // Gets the labels for the |profiles| passed as parameters. These labels are
182 // useful for distinguishing the profiles from one another. 182 // useful for distinguishing the profiles from one another.
183 // 183 //
184 // The labels never contain the full name and include at least 2 fields. 184 // The labels never contain the full name and include at least 2 fields.
185 // 185 //
186 // If |address_only| is true, then such fields as phone number and email 186 // If |address_only| is true, then such fields as phone number, and email
187 // address are also omitted, but all fields are included in the label. 187 // address are also omitted, but all other fields are included in the label.
188 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabels( 188 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabels(
189 JNIEnv* env, 189 JNIEnv* env,
190 bool address_only, 190 bool address_only,
191 std::vector<AutofillProfile*> profiles); 191 std::vector<AutofillProfile*> profiles);
192 192
193 // Pointer to the java counterpart. 193 // Pointer to the java counterpart.
194 JavaObjectWeakGlobalRef weak_java_obj_; 194 JavaObjectWeakGlobalRef weak_java_obj_;
195 195
196 // Pointer to the PersonalDataManager for the main profile. 196 // Pointer to the PersonalDataManager for the main profile.
197 PersonalDataManager* personal_data_manager_; 197 PersonalDataManager* personal_data_manager_;
198 198
199 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 199 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
200 }; 200 };
201 201
202 } // namespace autofill 202 } // namespace autofill
203 203
204 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 204 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698