summaryrefslogtreecommitdiffstats
path: root/components/sync_driver/invalidation_adapter.cc
blob: a7cc8d5671f4bae219de6c240c0f3740b466e78d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// 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 "components/sync_driver/invalidation_adapter.h"

#include <string>

namespace browser_sync {

InvalidationAdapter::InvalidationAdapter(
    const syncer::Invalidation& invalidation)
    : invalidation_(invalidation) {
}

InvalidationAdapter::~InvalidationAdapter() {
}

bool InvalidationAdapter::IsUnknownVersion() const {
  return invalidation_.is_unknown_version();
}

const std::string& InvalidationAdapter::GetPayload() const {
  return invalidation_.payload();
}

int64 InvalidationAdapter::GetVersion() const {
  return invalidation_.version();
}

void InvalidationAdapter::Acknowledge() {
  invalidation_.Acknowledge();
}

void InvalidationAdapter::Drop() {
  invalidation_.Drop();
}

}  // namespace browser_sync