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

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

Issue 1127233008: Sync: local data verification for Android tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Called from Java when the user signs out of Chrome 46 // Called from Java when the user signs out of Chrome
47 void SignOutSync(JNIEnv* env, jobject obj); 47 void SignOutSync(JNIEnv* env, jobject obj);
48 48
49 // Called from Java when we get a signal that the Directory should be saved. 49 // Called from Java when we get a signal that the Directory should be saved.
50 void FlushDirectory(JNIEnv* env, jobject obj); 50 void FlushDirectory(JNIEnv* env, jobject obj);
51 51
52 // Returns a string version of browser_sync::SyncBackendHost::StatusSummary 52 // Returns a string version of browser_sync::SyncBackendHost::StatusSummary
53 base::android::ScopedJavaLocalRef<jstring> QuerySyncStatusSummary( 53 base::android::ScopedJavaLocalRef<jstring> QuerySyncStatusSummary(
54 JNIEnv* env, jobject obj); 54 JNIEnv* env, jobject obj);
55 55
56 // Retrieves all Sync data as JSON. This method is asynchronous; all data is
57 // passed to |callback| upon completion.
58 void GetAllNodes(JNIEnv* env, jobject obj, jobject callback);
59
56 // Called from Java early during startup to ensure we use the correct 60 // Called from Java early during startup to ensure we use the correct
57 // unique machine tag in session sync. Returns true if the machine tag was 61 // unique machine tag in session sync. Returns true if the machine tag was
58 // succesfully set. 62 // succesfully set.
59 // This must be called before the |SessionModelAssociator| is initialized. 63 // This must be called before the |SessionModelAssociator| is initialized.
60 jboolean SetSyncSessionsId(JNIEnv* env, jobject obj, jstring tag); 64 jboolean SetSyncSessionsId(JNIEnv* env, jobject obj, jstring tag);
61 65
62 // Returns true if the sync backend is initialized. 66 // Returns true if the sync backend is initialized.
63 jboolean IsSyncInitialized(JNIEnv* env, jobject obj); 67 jboolean IsSyncInitialized(JNIEnv* env, jobject obj);
64 68
65 // Returns true if the sync is currently being setup for the first time. 69 // Returns true if the sync is currently being setup for the first time.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // preferences. 241 // preferences.
238 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_; 242 scoped_ptr<sync_driver::SyncPrefs> sync_prefs_;
239 243
240 // Java-side ProfileSyncService object. 244 // Java-side ProfileSyncService object.
241 JavaObjectWeakGlobalRef weak_java_profile_sync_service_; 245 JavaObjectWeakGlobalRef weak_java_profile_sync_service_;
242 246
243 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid); 247 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceAndroid);
244 }; 248 };
245 249
246 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_ 250 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698