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