| OLD | NEW |
| 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 <iosfwd> | 10 #include <iosfwd> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Caller owns the returned DictionaryValue. | 46 // Caller owns the returned DictionaryValue. |
| 47 scoped_ptr<base::DictionaryValue> ObjectIdToValue( | 47 scoped_ptr<base::DictionaryValue> ObjectIdToValue( |
| 48 const invalidation::ObjectId& object_id); | 48 const invalidation::ObjectId& object_id); |
| 49 | 49 |
| 50 bool ObjectIdFromValue(const base::DictionaryValue& value, | 50 bool ObjectIdFromValue(const base::DictionaryValue& value, |
| 51 invalidation::ObjectId* out); | 51 invalidation::ObjectId* out); |
| 52 | 52 |
| 53 std::string ObjectIdToString(const invalidation::ObjectId& object_id); | 53 std::string ObjectIdToString(const invalidation::ObjectId& object_id); |
| 54 | 54 |
| 55 ObjectIdSet ModelTypeSetToObjectIdSet(const ModelTypeSet& models); | 55 ObjectIdSet ModelTypeSetToObjectIdSet(ModelTypeSet models); |
| 56 ModelTypeSet ObjectIdSetToModelTypeSet(const ObjectIdSet& ids); | 56 ModelTypeSet ObjectIdSetToModelTypeSet(const ObjectIdSet& ids); |
| 57 | 57 |
| 58 std::string InvalidationToString( | 58 std::string InvalidationToString( |
| 59 const invalidation::Invalidation& invalidation); | 59 const invalidation::Invalidation& invalidation); |
| 60 | 60 |
| 61 } // namespace syncer | 61 } // namespace syncer |
| 62 | 62 |
| 63 #endif // SYNC_NOTIFIER_INVALIDATION_UTIL_H_ | 63 #endif // SYNC_NOTIFIER_INVALIDATION_UTIL_H_ |
| OLD | NEW |