OLD | NEW |
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 87 // Rests all unmasked cards back to the masked state. |
88 void ClearUnmaskedCache(JNIEnv* env, jobject unused_obj); | 88 void ClearUnmaskedCache(JNIEnv* env, jobject unused_obj); |
89 | 89 |
90 // PersonalDataManagerObserver: | 90 // PersonalDataManagerObserver: |
91 virtual void OnPersonalDataChanged() override; | 91 void OnPersonalDataChanged() override; |
92 | 92 |
93 // Registers the JNI bindings for this class. | 93 // Registers the JNI bindings for this class. |
94 static bool Register(JNIEnv* env); | 94 static bool Register(JNIEnv* env); |
95 | 95 |
96 private: | 96 private: |
97 virtual ~PersonalDataManagerAndroid(); | 97 ~PersonalDataManagerAndroid() override; |
98 | 98 |
99 // Pointer to the java counterpart. | 99 // Pointer to the java counterpart. |
100 JavaObjectWeakGlobalRef weak_java_obj_; | 100 JavaObjectWeakGlobalRef weak_java_obj_; |
101 | 101 |
102 // Pointer to the PersonalDataManager for the main profile. | 102 // Pointer to the PersonalDataManager for the main profile. |
103 PersonalDataManager* personal_data_manager_; | 103 PersonalDataManager* personal_data_manager_; |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); | 105 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace autofill | 108 } // namespace autofill |
109 | 109 |
110 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 110 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
OLD | NEW |