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

Unified Diff: chrome/browser/sync/glue/sync_backend_host.h

Issue 217183003: Add non-blocking sync code to ProfileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/sync_backend_host.h
diff --git a/chrome/browser/sync/glue/sync_backend_host.h b/chrome/browser/sync/glue/sync_backend_host.h
index a2861ef7f57ffe91a674f579d302189026d4af5f..bbdd8d4f05d92a9af20943e376579300c234da78 100644
--- a/chrome/browser/sync/glue/sync_backend_host.h
+++ b/chrome/browser/sync/glue/sync_backend_host.h
@@ -16,6 +16,7 @@
#include "sync/internal_api/public/base/model_type.h"
#include "sync/internal_api/public/configure_reason.h"
#include "sync/internal_api/public/sessions/sync_session_snapshot.h"
+#include "sync/internal_api/public/sync_core_proxy.h"
#include "sync/internal_api/public/sync_manager.h"
#include "sync/internal_api/public/sync_manager_factory.h"
#include "sync/internal_api/public/util/report_unrecoverable_error_function.h"
@@ -128,6 +129,9 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
// InvalidationService.
virtual void UnregisterInvalidationIds() = 0;
+ // Specifies the set of user-preferred non-blocking data types.
+ virtual void SetPreferredNonBlockingTypes(syncer::ModelTypeSet types) = 0;
+
// Changes the set of data types that are currently being synced.
// The ready_task will be run when configuration is done with the
// set of all types that failed configuration (i.e., if its argument
@@ -158,6 +162,10 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
// initialization is complete with OnBackendInitialized().
virtual syncer::UserShare* GetUserShare() const = 0;
+ // Called on |frontend_loop_| to obtain a handle to the SyncCore needed by
+ // the non-blocking sync types to communicate with the server.
+ virtual syncer::SyncCoreProxy GetSyncCoreProxy() = 0;
+
// Called from any thread to obtain current status information in detailed or
// summarized form.
virtual Status GetDetailedStatus() = 0;
« no previous file with comments | « no previous file | chrome/browser/sync/glue/sync_backend_host_core.h » ('j') | chrome/browser/sync/glue/sync_backend_host_core.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698