Chromium Code Reviews| 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 "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 const base::android::JavaParamRef<jobject>& jweb_contents, | 110 const base::android::JavaParamRef<jobject>& jweb_contents, |
| 111 const base::android::JavaParamRef<jstring>& jguid, | 111 const base::android::JavaParamRef<jstring>& jguid, |
| 112 const base::android::JavaParamRef<jobject>& jdelegate); | 112 const base::android::JavaParamRef<jobject>& jdelegate); |
| 113 | 113 |
| 114 // PersonalDataManagerObserver: | 114 // PersonalDataManagerObserver: |
| 115 void OnPersonalDataChanged() override; | 115 void OnPersonalDataChanged() override; |
| 116 | 116 |
| 117 // Registers the JNI bindings for this class. | 117 // Registers the JNI bindings for this class. |
| 118 static bool Register(JNIEnv* env); | 118 static bool Register(JNIEnv* env); |
| 119 | 119 |
| 120 // Sets the use count and use date of the profile associated to the |jguid|. | |
| 121 void SetProfileUseStats( | |
|
please use gerrit instead
2016/05/16 15:57:46
s/SetProfileUseStats/SetProfileUseStatsForTest
sebsg
2016/05/19 17:52:04
Done.
| |
| 122 JNIEnv* env, | |
| 123 const base::android::JavaParamRef<jobject>& unused_obj, | |
| 124 const base::android::JavaParamRef<jstring>& jguid, | |
| 125 jint count, | |
| 126 jint date); | |
| 127 | |
| 128 // Sets the use count and use date of the credit card associated to the | |
| 129 // |jguid|. | |
| 130 void SetCreditCardUseStats( | |
|
please use gerrit instead
2016/05/16 15:57:46
s/SetCreditCardUseStats/SetCreditCardUseStatsForTe
sebsg
2016/05/19 17:52:03
Done.
| |
| 131 JNIEnv* env, | |
| 132 const base::android::JavaParamRef<jobject>& unused_obj, | |
| 133 const base::android::JavaParamRef<jstring>& jguid, | |
| 134 jint count, | |
| 135 jint date); | |
| 136 | |
| 120 private: | 137 private: |
| 121 ~PersonalDataManagerAndroid() override; | 138 ~PersonalDataManagerAndroid() override; |
| 122 | 139 |
| 123 // Pointer to the java counterpart. | 140 // Pointer to the java counterpart. |
| 124 JavaObjectWeakGlobalRef weak_java_obj_; | 141 JavaObjectWeakGlobalRef weak_java_obj_; |
| 125 | 142 |
| 126 // Pointer to the PersonalDataManager for the main profile. | 143 // Pointer to the PersonalDataManager for the main profile. |
| 127 PersonalDataManager* personal_data_manager_; | 144 PersonalDataManager* personal_data_manager_; |
| 128 | 145 |
| 129 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); | 146 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); |
| 130 }; | 147 }; |
| 131 | 148 |
| 132 } // namespace autofill | 149 } // namespace autofill |
| 133 | 150 |
| 134 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 151 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
| OLD | NEW |