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

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

Issue 847023002: Changes to android autofill preferences for wallet integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: newt review Created 5 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 "components/autofill/core/browser/personal_data_manager.h" 10 #include "components/autofill/core/browser/personal_data_manager.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Gets the labels for all known profiles. These labels are useful for 78 // Gets the labels for all known profiles. These labels are useful for
79 // distinguishing the profiles from one another. 79 // distinguishing the profiles from one another.
80 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabels( 80 base::android::ScopedJavaLocalRef<jobjectArray> GetProfileLabels(
81 JNIEnv* env, 81 JNIEnv* env,
82 jobject unused_obj); 82 jobject unused_obj);
83 83
84 // Removes the profile or credit card represented by |jguid|. 84 // Removes the profile or credit card represented by |jguid|.
85 void RemoveByGUID(JNIEnv* env, jobject unused_obj, jstring jguid); 85 void RemoveByGUID(JNIEnv* env, jobject unused_obj, jstring jguid);
86 86
87 // Rests all unmasked cards back to the masked state.
88 void ClearUnmaskedCache(JNIEnv* env, jobject unused_obj);
89
87 // PersonalDataManagerObserver: 90 // PersonalDataManagerObserver:
88 virtual void OnPersonalDataChanged() override; 91 virtual void OnPersonalDataChanged() override;
89 92
90 // Registers the JNI bindings for this class. 93 // Registers the JNI bindings for this class.
91 static bool Register(JNIEnv* env); 94 static bool Register(JNIEnv* env);
92 95
93 private: 96 private:
94 virtual ~PersonalDataManagerAndroid(); 97 virtual ~PersonalDataManagerAndroid();
95 98
96 // Pointer to the java counterpart. 99 // Pointer to the java counterpart.
97 JavaObjectWeakGlobalRef weak_java_obj_; 100 JavaObjectWeakGlobalRef weak_java_obj_;
98 101
99 // Pointer to the PersonalDataManager for the main profile. 102 // Pointer to the PersonalDataManager for the main profile.
100 PersonalDataManager* personal_data_manager_; 103 PersonalDataManager* personal_data_manager_;
101 104
102 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); 105 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
103 }; 106 };
104 107
105 } // namespace autofill 108 } // namespace autofill
106 109
107 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ 110 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698