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

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

Issue 2093363002: Autofill address editor in PaymentRequest UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@contact-editor
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. Fields such as phone number and 64 // The labels never contain the full name or email address. All other fields
65 // email address are also omitted, but all other fields are included in the 65 // are included in the label.
66 // label.
67 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsToSuggest( 66 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabelsToSuggest(
68 JNIEnv* env, 67 JNIEnv* env,
69 const base::android::JavaParamRef<jobject>& unused_obj); 68 const base::android::JavaParamRef<jobject>& unused_obj);
70 69
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
72 // include in the label.
gone 2016/06/28 17:30:29 included
please use gerrit instead 2016/06/29 00:28:45 Next you're going to tell me "All your base are be
gone 2016/06/29 17:12:45 Launch all zig.
73 base::android::ScopedJavaLocalRef<jstring> GetAddressLabelForPaymentRequest(
74 JNIEnv* env,
75 const base::android::JavaParamRef<jobject>& unused_obj,
76 const base::android::JavaParamRef<jobject>& jprofile);
77
71 // These functions act on local credit cards. 78 // These functions act on local credit cards.
72 // -------------------- 79 // --------------------
73 80
74 // Returns the GUIDs of all the credit cards. 81 // Returns the GUIDs of all the credit cards.
75 base::android::ScopedJavaLocalRef<jobjectArray> GetCreditCardGUIDsForSettings( 82 base::android::ScopedJavaLocalRef<jobjectArray> GetCreditCardGUIDsForSettings(
76 JNIEnv* env, 83 JNIEnv* env,
77 const base::android::JavaParamRef<jobject>& unused_obj); 84 const base::android::JavaParamRef<jobject>& unused_obj);
78 85
79 // Returns the GUIDs of the credit cards to suggest to the user. See 86 // Returns the GUIDs of the credit cards to suggest to the user. See
80 // PersonalDataManager::GetCreditCardsToSuggest for more details. 87 // PersonalDataManager::GetCreditCardsToSuggest for more details.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 189
183 // Pointer to the PersonalDataManager for the main profile. 190 // Pointer to the PersonalDataManager for the main profile.
184 PersonalDataManager* personal_data_manager_; 191 PersonalDataManager* personal_data_manager_;
185 192
186 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 193 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
187 }; 194 };
188 195
189 } // namespace autofill 196 } // namespace autofill
190 197
191 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 198 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698