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

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: Created 7 years, 12 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/syncable/entry_kernel.h
diff --git a/sync/syncable/entry_kernel.h b/sync/syncable/entry_kernel.h
index 6dc88a78198664e3a5e9ad186e43fe6e73c173ef..e9cf828a59454384e922b3d9762759418754a732 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/base/sync_export.h"
@@ -323,6 +325,17 @@ struct SYNC_EXPORT_PRIVATE 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;
+
struct EntryKernelMutation {
EntryKernel original, mutated;
};
« no previous file with comments | « sync/syncable/directory_backing_store_unittest.cc ('k') | sync/syncable/in_memory_directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698