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

Unified Diff: sync/syncable/entry_kernel.h

Issue 11441026: [Sync] Add support for loading, updating and querying delete journals in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make IsDeleteJournalEnabled() public Created 8 years 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/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;
};

Powered by Google App Engine
This is Rietveld 408576698