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

Side by Side 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: FOR_THE_HORDE 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Various utilities for dealing with invalidation data types. 5 // Various utilities for dealing with invalidation data types.
6 6
7 #ifndef SYNC_NOTIFIER_INVALIDATION_UTIL_H_ 7 #ifndef SYNC_NOTIFIER_INVALIDATION_UTIL_H_
8 #define SYNC_NOTIFIER_INVALIDATION_UTIL_H_ 8 #define SYNC_NOTIFIER_INVALIDATION_UTIL_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 16 matching lines...) Expand all
27 }; 27 };
28 28
29 typedef std::set<invalidation::ObjectId, ObjectIdLessThan> ObjectIdSet; 29 typedef std::set<invalidation::ObjectId, ObjectIdLessThan> ObjectIdSet;
30 30
31 bool RealModelTypeToObjectId(ModelType model_type, 31 bool RealModelTypeToObjectId(ModelType model_type,
32 invalidation::ObjectId* object_id); 32 invalidation::ObjectId* object_id);
33 33
34 bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id, 34 bool ObjectIdToRealModelType(const invalidation::ObjectId& object_id,
35 ModelType* model_type); 35 ModelType* model_type);
36 36
37 ObjectIdSet ModelTypeSetToObjectIdSet(const ModelTypeSet& models);
38 ModelTypeSet ObjectIdSetToModelTypeSet(const ObjectIdSet& ids);
39
37 std::string ObjectIdToString(const invalidation::ObjectId& object_id); 40 std::string ObjectIdToString(const invalidation::ObjectId& object_id);
38 41
39 std::string InvalidationToString( 42 std::string InvalidationToString(
40 const invalidation::Invalidation& invalidation); 43 const invalidation::Invalidation& invalidation);
41 44
42 } // namespace syncer 45 } // namespace syncer
43 46
44 #endif // SYNC_NOTIFIER_INVALIDATION_UTIL_H_ 47 #endif // SYNC_NOTIFIER_INVALIDATION_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698