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

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

Issue 2636023002: [Autofill and payments] Redesign Autofill settings UIs (Closed)
Patch Set: rebase Created 3 years, 11 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 base::android::ScopedJavaLocalRef<jobject> NormalizeAddress( 323 base::android::ScopedJavaLocalRef<jobject> NormalizeAddress(
324 const std::string& guid, 324 const std::string& guid,
325 const std::string& region_code, 325 const std::string& region_code,
326 JNIEnv* env); 326 JNIEnv* env);
327 327
328 // Cancels the pending address normalization task. 328 // Cancels the pending address normalization task.
329 void CancelPendingAddressNormalizations( 329 void CancelPendingAddressNormalizations(
330 JNIEnv* env, 330 JNIEnv* env,
331 const base::android::JavaParamRef<jobject>& unused_obj); 331 const base::android::JavaParamRef<jobject>& unused_obj);
332 332
333 // Checks whether the Autofill PersonalDataManager has profiles.
334 jboolean HasProfiles(JNIEnv* env,
335 const base::android::JavaParamRef<jobject>& unused_obj);
336
337 // Checks whether the Autofill PersonalDataManager has credit cards.
338 jboolean HasCreditCards(
339 JNIEnv* env,
340 const base::android::JavaParamRef<jobject>& unused_obj);
341
333 private: 342 private:
334 ~PersonalDataManagerAndroid() override; 343 ~PersonalDataManagerAndroid() override;
335 344
336 // Returns the GUIDs of the |profiles| passed as parameter. 345 // Returns the GUIDs of the |profiles| passed as parameter.
337 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileGUIDs( 346 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileGUIDs(
338 JNIEnv* env, 347 JNIEnv* env,
339 const std::vector<AutofillProfile*>& profiles); 348 const std::vector<AutofillProfile*>& profiles);
340 349
341 // Returns the GUIDs of the |credit_cards| passed as parameter. 350 // Returns the GUIDs of the |credit_cards| passed as parameter.
342 base::android::ScopedJavaLocalRef<jobjectArray> GetCreditCardGUIDs( 351 base::android::ScopedJavaLocalRef<jobjectArray> GetCreditCardGUIDs(
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 // Map associating a region code to pending normalizations. 392 // Map associating a region code to pending normalizations.
384 std::map<std::string, std::vector<std::unique_ptr<Delegate>>> 393 std::map<std::string, std::vector<std::unique_ptr<Delegate>>>
385 pending_normalization_; 394 pending_normalization_;
386 395
387 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 396 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
388 }; 397 };
389 398
390 } // namespace autofill 399 } // namespace autofill
391 400
392 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 401 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/android/java_sources.gni ('k') | chrome/browser/autofill/android/personal_data_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698