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

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

Issue 1017683005: Add PSS.getActiveDataTypes(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indentation. Created 5 years, 9 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 GetCurrentSignedInAccountText( 130 GetCurrentSignedInAccountText(
131 JNIEnv* env, jobject); 131 JNIEnv* env, jobject);
132 132
133 base::android::ScopedJavaLocalRef<jstring> 133 base::android::ScopedJavaLocalRef<jstring>
134 GetSyncEnterCustomPassphraseBodyText( 134 GetSyncEnterCustomPassphraseBodyText(
135 JNIEnv* env, jobject); 135 JNIEnv* env, jobject);
136 136
137 // Returns true if sync has been migrated. 137 // Returns true if sync has been migrated.
138 jboolean IsSyncKeystoreMigrationDone(JNIEnv* env, jobject obj); 138 jboolean IsSyncKeystoreMigrationDone(JNIEnv* env, jobject obj);
139 139
140 // Get the set of enabled data types. These are the types currently both 140 // Get the set of active data types. These are the types currently being
141 // registered and preferred. Note that control types are always included here. 141 // synced. Note that control types are always included here.
142 // Returns a bit map of the values from 142 // Returns a bit map of the values from
143 // profile_sync_service_model_type_selection_android.h. 143 // profile_sync_service_model_type_selection_android.h.
144 jlong GetEnabledDataTypes(JNIEnv* env, jobject obj); 144 jlong GetActiveDataTypes(JNIEnv* env, jobject obj);
145
146 // Get the set of preferred data types. These are the types that the user
147 // has requested be synced.
148 // Returns a bit map of the values from
149 // profile_sync_service_model_type_selection_android.h.
150 jlong GetPreferredDataTypes(JNIEnv* env, jobject obj);
145 151
146 // Enables the passed data types. 152 // Enables the passed data types.
147 // If |sync_everything| is true, then all data types are enabled and the 153 // If |sync_everything| is true, then all data types are enabled and the
148 // contents of |model_type_selection| is 154 // contents of |model_type_selection| is
149 // ignored. 155 // ignored.
150 // Otherwise, the values of |model_type_selection| must contain a bit map of 156 // Otherwise, the values of |model_type_selection| must contain a bit map of
151 // values from profile_sync_service_model_type_selection_android.h. 157 // values from profile_sync_service_model_type_selection_android.h.
152 void SetPreferredDataTypes(JNIEnv* env, 158 void SetPreferredDataTypes(JNIEnv* env,
153 jobject obj, 159 jobject obj,
154 jboolean sync_everything, 160 jboolean sync_everything,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // preferences. 233 // preferences.
228 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_; 234 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_;
229 235
230 // Java-side ProfileSyncService object. 236 // Java-side ProfileSyncService object.
231 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; 237 JavaObjectWeakGlobalRef weak_java_profile_sync_service_;
232 238
233 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); 239 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid);
234 }; 240 };
235 241
236 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ 242 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698