Chromium Code Reviews| Index: chrome/browser/autofill/android/personal_data_manager_android.h |
| diff --git a/chrome/browser/autofill/android/personal_data_manager_android.h b/chrome/browser/autofill/android/personal_data_manager_android.h |
| index c2ae27a0b8b8ba1688b29791c0d097b3931ba0df..56c723c7506c834565f781a031bbb31c14b1dfb9 100644 |
| --- a/chrome/browser/autofill/android/personal_data_manager_android.h |
| +++ b/chrome/browser/autofill/android/personal_data_manager_android.h |
| @@ -141,6 +141,14 @@ class PersonalDataManagerAndroid : public PersonalDataManagerObserver { |
| // Registers the JNI bindings for this class. |
| static bool Register(JNIEnv* env); |
| + // Record the use and log usage metrics for the profile associated with the |
|
please use gerrit instead
2016/07/12 15:41:58
Records
sebsg
2016/07/13 18:49:20
Done.
|
| + // |jguid|. Increments the use count of the profile and sets its use date to |
| + // the current time. |
| + void RecordAndLogProfileUse( |
|
please use gerrit instead
2016/07/12 15:41:59
Line 78 above says "These functions act on local c
sebsg
2016/07/13 18:49:20
Done.
|
| + JNIEnv* env, |
| + const base::android::JavaParamRef<jobject>& unused_obj, |
| + const base::android::JavaParamRef<jstring>& jguid); |
| + |
| // Sets the use count and use date of the profile associated to the |jguid|. |
| // Both |count| and |date| should be non-negative. |date| represents an |
| // absolute point in coordinated universal time (UTC) represented as |
| @@ -153,6 +161,29 @@ class PersonalDataManagerAndroid : public PersonalDataManagerObserver { |
| jint count, |
| jint date); |
| + // Returns the use count of the profile associated to the |jguid|. |
| + jint GetProfileUseCountForTesting( |
| + JNIEnv* env, |
| + const base::android::JavaParamRef<jobject>& unused_obj, |
| + const base::android::JavaParamRef<jstring>& jguid); |
| + |
| + // Returns the use date of the profile associated to the |jguid|. It |
| + // represents an absolute point in coordinated universal time (UTC) |
| + // represented as microseconds since the Windows epoch. For more details see |
| + // the comment header in time.h. |
| + jlong GetProfileUseDateForTesting( |
| + JNIEnv* env, |
| + const base::android::JavaParamRef<jobject>& unused_obj, |
| + const base::android::JavaParamRef<jstring>& jguid); |
| + |
| + // Record the use and log usage metrics for the credit card associated with |
|
please use gerrit instead
2016/07/12 15:41:59
Records
sebsg
2016/07/13 18:49:20
Done.
|
| + // the |jguid|. Increments the use count of the credit card and sets its use |
| + // date to the current time. |
| + void RecordAndLogCreditCardUse( |
| + JNIEnv* env, |
| + const base::android::JavaParamRef<jobject>& unused_obj, |
| + const base::android::JavaParamRef<jstring>& jguid); |
| + |
| // Sets the use count and use date of the credit card associated to the |
| // |jguid|. Both |count| and |date| should be non-negative. |date| represents |
| // an absolute point in coordinated universal time (UTC) represented as |
| @@ -165,6 +196,28 @@ class PersonalDataManagerAndroid : public PersonalDataManagerObserver { |
| jint count, |
| jint date); |
| + // Returns the use count of the credit card associated to the |jguid|. |
| + jint GetCreditCardUseCountForTesting( |
| + JNIEnv* env, |
| + const base::android::JavaParamRef<jobject>& unused_obj, |
| + const base::android::JavaParamRef<jstring>& jguid); |
| + |
| + // Returns the use date of the credit card associated to the |jguid|. It |
| + // represents an absolute point in coordinated universal time (UTC) |
| + // represented as microseconds since the Windows epoch. For more details see |
| + // the comment header in time.h. |
| + jlong GetCreditCardUseDateForTesting( |
| + JNIEnv* env, |
| + const base::android::JavaParamRef<jobject>& unused_obj, |
| + const base::android::JavaParamRef<jstring>& jguid); |
| + |
| + // Returns the current date represented as an absolute point in coordinated |
| + // universal time (UTC) represented as microseconds since the Windows epoch. |
| + // For more details see the comment header in time.h |
| + jlong GetCurrentDateForTesting( |
| + JNIEnv* env, |
| + const base::android::JavaParamRef<jobject>& unused_obj); |
| + |
| private: |
| ~PersonalDataManagerAndroid() override; |