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

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

Issue 2109643003: Add billing address to masked server credit cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete AutofillServerCardPreferences.java 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const base::android::JavaParamRef<jstring>& jguid); 90 const base::android::JavaParamRef<jstring>& jguid);
91 91
92 // Adds or modifies a local credit card. If |jguid| is an empty string, we 92 // Adds or modifies a local credit card. If |jguid| is an empty string, we
93 // are creating a new card. Else we are updating an existing profile. Always 93 // are creating a new card. Else we are updating an existing profile. Always
94 // returns the GUID for this profile; the GUID it may have just been created. 94 // returns the GUID for this profile; the GUID it may have just been created.
95 base::android::ScopedJavaLocalRef<jstring> SetCreditCard( 95 base::android::ScopedJavaLocalRef<jstring> SetCreditCard(
96 JNIEnv* env, 96 JNIEnv* env,
97 const base::android::JavaParamRef<jobject>& unused_obj, 97 const base::android::JavaParamRef<jobject>& unused_obj,
98 const base::android::JavaParamRef<jobject>& jcard); 98 const base::android::JavaParamRef<jobject>& jcard);
99 99
100 // Updates the billing address of a server credit card with GUID |jguid|.
101 void UpdateServerCardBillingAddress(JNIEnv* env,
102 const base::android::JavaParamRef<jobject>& unused_obj,
103 const base::android::JavaParamRef<jstring>& jguid,
104 const base::android::JavaParamRef<jstring>& jbilling_address_id);
105
100 // Adds a server credit card. Used only in tests. 106 // Adds a server credit card. Used only in tests.
101 void AddServerCreditCardForTest( 107 void AddServerCreditCardForTest(
102 JNIEnv* env, 108 JNIEnv* env,
103 const base::android::JavaParamRef<jobject>& unused_obj, 109 const base::android::JavaParamRef<jobject>& unused_obj,
104 const base::android::JavaParamRef<jobject>& jcard); 110 const base::android::JavaParamRef<jobject>& jcard);
105 111
106 // Removes the profile or credit card represented by |jguid|. 112 // Removes the profile or credit card represented by |jguid|.
107 void RemoveByGUID(JNIEnv* env, 113 void RemoveByGUID(JNIEnv* env,
108 const base::android::JavaParamRef<jobject>& unused_obj, 114 const base::android::JavaParamRef<jobject>& unused_obj,
109 const base::android::JavaParamRef<jstring>& jguid); 115 const base::android::JavaParamRef<jstring>& jguid);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 188
183 // Pointer to the PersonalDataManager for the main profile. 189 // Pointer to the PersonalDataManager for the main profile.
184 PersonalDataManager* personal_data_manager_; 190 PersonalDataManager* personal_data_manager_;
185 191
186 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 192 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
187 }; 193 };
188 194
189 } // namespace autofill 195 } // namespace autofill
190 196
191 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 197 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698