Chromium Code Reviews| Index: sync/syncable/entry_kernel.h |
| diff --git a/sync/syncable/entry_kernel.h b/sync/syncable/entry_kernel.h |
| index 77ad87ddbc5f238981d694f354da0d3884392a55..577b0a62525dfbdff258216acdea5fc077d1666e 100644 |
| --- a/sync/syncable/entry_kernel.h |
| +++ b/sync/syncable/entry_kernel.h |
| @@ -5,6 +5,8 @@ |
| #ifndef SYNC_SYNCABLE_ENTRY_KERNEL_H_ |
| #define SYNC_SYNCABLE_ENTRY_KERNEL_H_ |
| +#include <set> |
| + |
| #include "base/time.h" |
| #include "base/values.h" |
| #include "sync/internal_api/public/base/model_type.h" |
| @@ -322,6 +324,17 @@ struct EntryKernel { |
| bool dirty_; |
| }; |
| +class EntryKernelLessByMetaHandle { |
| + public: |
| + inline bool operator()(const EntryKernel* a, |
| + const EntryKernel* b) const { |
| + return a->ref(META_HANDLE) < b->ref(META_HANDLE); |
| + } |
| +}; |
| + |
| +typedef std::set<const EntryKernel*, EntryKernelLessByMetaHandle> |
| + EntryKernelSet; |
|
tim (not reviewing)
2012/12/21 03:30:40
Hm, did this move from somewhere? EntryKernelSet
haitaol1
2013/01/03 19:40:49
Yes, moved here from directory.h.
On 2012/12/21 0
|
| + |
| struct EntryKernelMutation { |
| EntryKernel original, mutated; |
| }; |