Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: chrome/browser/sync/profile_sync_service_android.h

Issue 630223003: Add GetExplicitPassphraseTime() JNI call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a comment. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 jboolean IsCryptographerReady(JNIEnv* env, jobject); 105 jboolean IsCryptographerReady(JNIEnv* env, jobject);
106 106
107 // Returns the actual passphrase type being used for encryption. This is a 107 // Returns the actual passphrase type being used for encryption. This is a
108 // value from the enum defined in syncer::PassphraseType and must be matched 108 // value from the enum defined in syncer::PassphraseType and must be matched
109 // in Java. 109 // in Java.
110 jint GetPassphraseType(JNIEnv* env, jobject obj); 110 jint GetPassphraseType(JNIEnv* env, jobject obj);
111 111
112 // Returns true if the current explicit passphrase time is defined. 112 // Returns true if the current explicit passphrase time is defined.
113 jboolean HasExplicitPassphraseTime(JNIEnv* env, jobject); 113 jboolean HasExplicitPassphraseTime(JNIEnv* env, jobject);
114 114
115 // Returns the current explicit passphrase time.
116 jlong GetExplicitPassphraseTime(JNIEnv* env, jobject);
117
115 base::android::ScopedJavaLocalRef<jstring> 118 base::android::ScopedJavaLocalRef<jstring>
116 GetSyncEnterGooglePassphraseBodyWithDateText( 119 GetSyncEnterGooglePassphraseBodyWithDateText(
117 JNIEnv* env, jobject); 120 JNIEnv* env, jobject);
118 121
119 base::android::ScopedJavaLocalRef<jstring> 122 base::android::ScopedJavaLocalRef<jstring>
120 GetSyncEnterCustomPassphraseBodyWithDateText( 123 GetSyncEnterCustomPassphraseBodyWithDateText(
121 JNIEnv* env, jobject); 124 JNIEnv* env, jobject);
122 125
123 base::android::ScopedJavaLocalRef<jstring> 126 base::android::ScopedJavaLocalRef<jstring>
124 GetCurrentSignedInAccountText( 127 GetCurrentSignedInAccountText(
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // preferences. 224 // preferences.
222 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_; 225 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_;
223 226
224 // Java-side ProfileSyncService object. 227 // Java-side ProfileSyncService object.
225 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; 228 JavaObjectWeakGlobalRef weak_java_profile_sync_service_;
226 229
227 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); 230 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid);
228 }; 231 };
229 232
230 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ 233 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698