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

Unified Diff: sync/internal_api/public/sync_core_proxy.h

Issue 272323002: sync: Implement disabling of non blocking types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 6 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/sync_core_proxy.h
diff --git a/sync/internal_api/public/sync_core_proxy.h b/sync/internal_api/public/sync_core_proxy.h
index 5ec8efeef5fed39b32d3aac30e8e590c8af01fcf..98f481d2665c8a50479aad12ea218a8d3ec81d00 100644
--- a/sync/internal_api/public/sync_core_proxy.h
+++ b/sync/internal_api/public/sync_core_proxy.h
@@ -27,6 +27,13 @@ class SYNC_EXPORT_PRIVATE SyncCoreProxy {
syncer::ModelType type,
base::WeakPtr<NonBlockingTypeProcessor> type_processor) = 0;
+ // Tells the syncer that we're no longer interested in syncing this type.
+ //
+ // Once this takes effect, the syncer can assume that it will no longer
+ // receive commit requests for this type. It should also stop requesting
+ // and applying updates for this type, too.
+ virtual void Disconnect(syncer::ModelType type) = 0;
+
// Creates a clone of this SyncCoreProxy.
virtual scoped_ptr<SyncCoreProxy> Clone() const = 0;
};
« no previous file with comments | « sync/internal_api/public/non_blocking_type_processor.h ('k') | sync/internal_api/public/test/null_sync_core_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698