OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/sync/driver/invalidation_adapter.h" | 5 #include "components/sync/driver/invalidation_adapter.h" |
6 | 6 |
7 namespace browser_sync { | 7 namespace syncer { |
8 | 8 |
9 InvalidationAdapter::InvalidationAdapter( | 9 InvalidationAdapter::InvalidationAdapter(const Invalidation& invalidation) |
10 const syncer::Invalidation& invalidation) | |
11 : invalidation_(invalidation) {} | 10 : invalidation_(invalidation) {} |
12 | 11 |
13 InvalidationAdapter::~InvalidationAdapter() {} | 12 InvalidationAdapter::~InvalidationAdapter() {} |
14 | 13 |
15 bool InvalidationAdapter::IsUnknownVersion() const { | 14 bool InvalidationAdapter::IsUnknownVersion() const { |
16 return invalidation_.is_unknown_version(); | 15 return invalidation_.is_unknown_version(); |
17 } | 16 } |
18 | 17 |
19 const std::string& InvalidationAdapter::GetPayload() const { | 18 const std::string& InvalidationAdapter::GetPayload() const { |
20 return invalidation_.payload(); | 19 return invalidation_.payload(); |
21 } | 20 } |
22 | 21 |
23 int64_t InvalidationAdapter::GetVersion() const { | 22 int64_t InvalidationAdapter::GetVersion() const { |
24 return invalidation_.version(); | 23 return invalidation_.version(); |
25 } | 24 } |
26 | 25 |
27 void InvalidationAdapter::Acknowledge() { | 26 void InvalidationAdapter::Acknowledge() { |
28 invalidation_.Acknowledge(); | 27 invalidation_.Acknowledge(); |
29 } | 28 } |
30 | 29 |
31 void InvalidationAdapter::Drop() { | 30 void InvalidationAdapter::Drop() { |
32 invalidation_.Drop(); | 31 invalidation_.Drop(); |
33 } | 32 } |
34 | 33 |
35 } // namespace browser_sync | 34 } // namespace syncer |
OLD | NEW |