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

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

Issue 665223007: Add a flag to ProfileSyncService that says whether encrypting all data is allowed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years, 1 month 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // succesfully set. 58 // succesfully set.
59 // This must be called before the |SessionModelAssociator| is initialized. 59 // This must be called before the |SessionModelAssociator| is initialized.
60 jboolean SetSyncSessionsId(JNIEnv* env, jobject obj, jstring tag); 60 jboolean SetSyncSessionsId(JNIEnv* env, jobject obj, jstring tag);
61 61
62 // Returns true if the sync backend is initialized. 62 // Returns true if the sync backend is initialized.
63 jboolean IsSyncInitialized(JNIEnv* env, jobject obj); 63 jboolean IsSyncInitialized(JNIEnv* env, jobject obj);
64 64
65 // Returns true if the sync is currently being setup for the first time. 65 // Returns true if the sync is currently being setup for the first time.
66 jboolean IsFirstSetupInProgress(JNIEnv* env, jobject obj); 66 jboolean IsFirstSetupInProgress(JNIEnv* env, jobject obj);
67 67
68 // Returns true if encrypting everything is allowed.
69 jboolean IsEncryptEverythingAllowed(JNIEnv* env, jobject obj);
70
68 // Returns true if the user is currently encrypting everything. 71 // Returns true if the user is currently encrypting everything.
69 jboolean IsEncryptEverythingEnabled(JNIEnv* env, jobject obj); 72 jboolean IsEncryptEverythingEnabled(JNIEnv* env, jobject obj);
70 73
71 // Returns true if the sync code needs a passphrase for either encryption or 74 // Returns true if the sync code needs a passphrase for either encryption or
72 // decryption (can need a passphrase for encryption if the user is turning on 75 // decryption (can need a passphrase for encryption if the user is turning on
73 // encryption and no passphrase has been set yet). 76 // encryption and no passphrase has been set yet).
74 jboolean IsPassphraseRequired(JNIEnv* env, jobject obj); 77 jboolean IsPassphraseRequired(JNIEnv* env, jobject obj);
75 78
76 // Returns true if the sync code needs a decryption passphrase for one of the 79 // Returns true if the sync code needs a decryption passphrase for one of the
77 // currently enabled types. 80 // currently enabled types.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // preferences. 227 // preferences.
225 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_; 228 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_;
226 229
227 // Java-side ProfileSyncService object. 230 // Java-side ProfileSyncService object.
228 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; 231 JavaObjectWeakGlobalRef weak_java_profile_sync_service_;
229 232
230 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); 233 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid);
231 }; 234 };
232 235
233 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ 236 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698