Chromium Code Reviews| Index: sync/internal_api/public/base/invalidation_interface.cc |
| diff --git a/sync/internal_api/public/base/invalidation_interface.cc b/sync/internal_api/public/base/invalidation_interface.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..204cf092b5e146a22a71b20e440cc715f6f5a91d |
| --- /dev/null |
| +++ b/sync/internal_api/public/base/invalidation_interface.cc |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2014 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. |
| + |
| +#include "sync/internal_api/public/base/invalidation_interface.h" |
| + |
| +namespace syncer { |
| + |
| +bool InvalidationInterface::LessThan(const InvalidationInterface& a, |
|
tim (not reviewing)
2014/06/18 22:41:11
nit - It's a bit weird to define a non-overrideabl
rlarocque
2014/06/19 00:50:19
Will rename.
I didn't like this either. The prob
rlarocque
2014/06/20 20:00:13
Done.
|
| + const InvalidationInterface& b) { |
| + if (a.IsUnknownVersion() && !b.IsUnknownVersion()) |
| + return true; |
| + |
| + if (!a.IsUnknownVersion() && b.IsUnknownVersion()) |
| + return false; |
| + |
| + if (a.IsUnknownVersion() && b.IsUnknownVersion()) |
| + return false; |
| + |
| + return a.GetVersion() < b.GetVersion(); |
| +} |
| + |
| +InvalidationInterface::InvalidationInterface() { |
| +} |
| + |
| +InvalidationInterface::~InvalidationInterface() { |
| +} |
| + |
| +} // namespace syncer |