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

Unified Diff: sync/notifier/invalidation_util.h

Issue 10702074: Refactor sync-specific parts out of SyncNotifier/SyncNotifierObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor cleanup Created 8 years, 5 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/notifier/invalidation_util.h
diff --git a/sync/notifier/invalidation_util.h b/sync/notifier/invalidation_util.h
index bf5388f2431274bbad2ab2d045e7674995891484..c7be5fd7e17affa47a07f39fbe33d79cfba13079 100644
--- a/sync/notifier/invalidation_util.h
+++ b/sync/notifier/invalidation_util.h
@@ -29,12 +29,16 @@ struct ObjectIdLessThan {
typedef std::set<invalidation::ObjectId, ObjectIdLessThan> ObjectIdSet;
+// TODO(dcheng): Should ModelType stuff be factored out of here?
bool RealModelTypeToObjectId(syncer::ModelType model_type,
invalidation::ObjectId* object_id);
bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id,
syncer::ModelType* model_type);
+ObjectIdSet ModelTypeSetToObjectIdSet(const ModelTypeSet& models);
+ModelTypeSet ObjectIdSetToModelTypeSet(const ObjectIdSet& ids);
+
std::string ObjectIdToString(const invalidation::ObjectId& object_id);
std::string InvalidationToString(

Powered by Google App Engine
This is Rietveld 408576698