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_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 jboolean IsCryptographerReady(JNIEnv* env, jobject); | 116 jboolean IsCryptographerReady(JNIEnv* env, jobject); |
117 | 117 |
118 // Returns the actual passphrase type being used for encryption. This is a | 118 // Returns the actual passphrase type being used for encryption. This is a |
119 // value from the enum defined in syncer::PassphraseType and must be matched | 119 // value from the enum defined in syncer::PassphraseType and must be matched |
120 // in Java. | 120 // in Java. |
121 jint GetPassphraseType(JNIEnv* env, jobject obj); | 121 jint GetPassphraseType(JNIEnv* env, jobject obj); |
122 | 122 |
123 // Returns true if the current explicit passphrase time is defined. | 123 // Returns true if the current explicit passphrase time is defined. |
124 jboolean HasExplicitPassphraseTime(JNIEnv* env, jobject); | 124 jboolean HasExplicitPassphraseTime(JNIEnv* env, jobject); |
125 | 125 |
| 126 // Returns the current explicit passphrase time. |
| 127 jlong GetExplicitPassphraseTime(JNIEnv* env, jobject); |
| 128 |
126 base::android::ScopedJavaLocalRef<jstring> | 129 base::android::ScopedJavaLocalRef<jstring> |
127 GetSyncEnterGooglePassphraseBodyWithDateText( | 130 GetSyncEnterGooglePassphraseBodyWithDateText( |
128 JNIEnv* env, jobject); | 131 JNIEnv* env, jobject); |
129 | 132 |
130 base::android::ScopedJavaLocalRef<jstring> | 133 base::android::ScopedJavaLocalRef<jstring> |
131 GetSyncEnterCustomPassphraseBodyWithDateText( | 134 GetSyncEnterCustomPassphraseBodyWithDateText( |
132 JNIEnv* env, jobject); | 135 JNIEnv* env, jobject); |
133 | 136 |
134 base::android::ScopedJavaLocalRef<jstring> | 137 base::android::ScopedJavaLocalRef<jstring> |
135 GetCurrentSignedInAccountText( | 138 GetCurrentSignedInAccountText( |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 247 |
245 // The invalidation API spec allows for the possibility of redundant | 248 // The invalidation API spec allows for the possibility of redundant |
246 // invalidations, so keep track of the max versions and drop | 249 // invalidations, so keep track of the max versions and drop |
247 // invalidations with old versions. | 250 // invalidations with old versions. |
248 ObjectIdVersionMap max_invalidation_versions_; | 251 ObjectIdVersionMap max_invalidation_versions_; |
249 | 252 |
250 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); | 253 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); |
251 }; | 254 }; |
252 | 255 |
253 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ | 256 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ |
OLD | NEW |