OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "components/sync_driver/invalidation_adapter.h" | |
6 | |
7 #include <string> | |
8 | |
9 namespace browser_sync { | |
10 | |
11 InvalidationAdapter::InvalidationAdapter( | |
12 const syncer::Invalidation& invalidation) | |
13 : invalidation_(invalidation) { | |
14 } | |
15 | |
16 InvalidationAdapter::~InvalidationAdapter() { | |
17 } | |
18 | |
19 bool InvalidationAdapter::IsUnknownVersion() const { | |
20 return invalidation_.is_unknown_version(); | |
21 } | |
22 | |
23 const std::string& InvalidationAdapter::GetPayload() const { | |
24 return invalidation_.payload(); | |
25 } | |
26 | |
27 int64_t InvalidationAdapter::GetVersion() const { | |
28 return invalidation_.version(); | |
29 } | |
30 | |
31 void InvalidationAdapter::Acknowledge() { | |
32 invalidation_.Acknowledge(); | |
33 } | |
34 | |
35 void InvalidationAdapter::Drop() { | |
36 invalidation_.Drop(); | |
37 } | |
38 | |
39 } // namespace browser_sync | |
OLD | NEW |