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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 | 53 |
54 // Called from Java when the user manually disables sync | 54 // Called from Java when the user manually disables sync |
55 void DisableSync(JNIEnv* env, jobject obj); | 55 void DisableSync(JNIEnv* env, jobject obj); |
56 | 56 |
57 // Called from Java when the user signs in to Chrome. Starts up sync. | 57 // Called from Java when the user signs in to Chrome. Starts up sync. |
58 void SignInSync(JNIEnv* env, jobject obj); | 58 void SignInSync(JNIEnv* env, jobject obj); |
59 | 59 |
60 // Called from Java when the user signs out of Chrome | 60 // Called from Java when the user signs out of Chrome |
61 void SignOutSync(JNIEnv* env, jobject obj); | 61 void SignOutSync(JNIEnv* env, jobject obj); |
62 | 62 |
63 void FlushDirectory(JNIEnv* env, jobject obj); | |
nyquist
2014/09/10 17:43:09
Add a short comment.
maxbogue
2014/09/10 20:11:02
Done.
| |
64 | |
63 // Returns a string version of browser_sync::SyncBackendHost::StatusSummary | 65 // Returns a string version of browser_sync::SyncBackendHost::StatusSummary |
64 base::android::ScopedJavaLocalRef<jstring> QuerySyncStatusSummary( | 66 base::android::ScopedJavaLocalRef<jstring> QuerySyncStatusSummary( |
65 JNIEnv* env, jobject obj); | 67 JNIEnv* env, jobject obj); |
66 | 68 |
67 // Called from Java early during startup to ensure we use the correct | 69 // Called from Java early during startup to ensure we use the correct |
68 // unique machine tag in session sync. Returns true if the machine tag was | 70 // unique machine tag in session sync. Returns true if the machine tag was |
69 // succesfully set. | 71 // succesfully set. |
70 // This must be called before the |SessionModelAssociator| is initialized. | 72 // This must be called before the |SessionModelAssociator| is initialized. |
71 jboolean SetSyncSessionsId(JNIEnv* env, jobject obj, jstring tag); | 73 jboolean SetSyncSessionsId(JNIEnv* env, jobject obj, jstring tag); |
72 | 74 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
244 | 246 |
245 // The invalidation API spec allows for the possibility of redundant | 247 // The invalidation API spec allows for the possibility of redundant |
246 // invalidations, so keep track of the max versions and drop | 248 // invalidations, so keep track of the max versions and drop |
247 // invalidations with old versions. | 249 // invalidations with old versions. |
248 ObjectIdVersionMap max_invalidation_versions_; | 250 ObjectIdVersionMap max_invalidation_versions_; |
249 | 251 |
250 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); | 252 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); |
251 }; | 253 }; |
252 | 254 |
253 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ | 255 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ |
OLD | NEW |