Index: chrome/browser/sync/syncable/syncable-inl.h |
=================================================================== |
--- chrome/browser/sync/syncable/syncable-inl.h (revision 0) |
+++ chrome/browser/sync/syncable/syncable-inl.h (revision 0) |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_INL_H_ |
+#define CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_INL_H_ |
+ |
+#include "chrome/browser/sync/util/query_helpers.h" |
+#include "chrome/browser/sync/util/row_iterator.h" |
+ |
+namespace syncable { |
+ |
+template <typename FieldType, FieldType field_index> |
+class LessField { |
+ public: |
+ inline bool operator() (const syncable::EntryKernel* a, |
+ const syncable::EntryKernel* b) const { |
+ return a->ref(field_index) < b->ref(field_index); |
+ } |
+}; |
+ |
+struct IdRowTraits { |
+ typedef syncable::Id RowType; |
+ void Extract(sqlite3_stmt* statement, syncable::Id* id) const { |
+ GetColumn(statement, 0, id); |
+ } |
+}; |
+} // namespace syncable |
+ |
+#endif // CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_INL_H_ |
Property changes on: chrome\browser\sync\syncable\syncable-inl.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |