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

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

Issue 217183003: Add non-blocking sync code to ProfileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments 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_impl.h
diff --git a/chrome/browser/sync/glue/sync_backend_host_impl.h b/chrome/browser/sync/glue/sync_backend_host_impl.h
index d4568a245cb69658e28da410d80da9014f0cec37..3a35a16b2ce124bb22a876b9e2ed033a3df7adb1 100644
--- a/chrome/browser/sync/glue/sync_backend_host_impl.h
+++ b/chrome/browser/sync/glue/sync_backend_host_impl.h
@@ -112,6 +112,7 @@ class SyncBackendHostImpl
ChangeProcessor* change_processor) OVERRIDE;
virtual void DeactivateDataType(syncer::ModelType type) OVERRIDE;
virtual syncer::UserShare* GetUserShare() const OVERRIDE;
+ virtual syncer::SyncCoreProxy GetSyncCoreProxy() OVERRIDE;
virtual Status GetDetailedStatus() OVERRIDE;
virtual syncer::sessions::SyncSessionSnapshot
GetLastSessionSnapshot() const OVERRIDE;
@@ -162,7 +163,8 @@ class SyncBackendHostImpl
virtual void HandleInitializationSuccessOnFrontendLoop(
const syncer::WeakHandle<syncer::JsBackend> js_backend,
const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>
- debug_info_listener);
+ debug_info_listener,
+ syncer::SyncCoreProxy sync_core_proxy);
// Downloading of control types failed and will be retried. Invokes the
// frontend's sync configure retry method.
@@ -287,6 +289,9 @@ class SyncBackendHostImpl
// sync loop.
scoped_refptr<SyncBackendHostCore> core_;
+ // A handle referencing the main interface for non-blocking sync types.
+ scoped_ptr<syncer::SyncCoreProxy> sync_core_proxy_;
+
bool initialized_;
const base::WeakPtr<sync_driver::SyncPrefs> sync_prefs_;
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_core.cc ('k') | chrome/browser/sync/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698