Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: components/sync/driver/invalidation_adapter.cc

Issue 2395533003: [Sync] Move some things from driver to base. (Closed)
Patch Set: Rebase. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 namespace syncer {
8
9 InvalidationAdapter::InvalidationAdapter(const Invalidation& invalidation)
10 : invalidation_(invalidation) {}
11
12 InvalidationAdapter::~InvalidationAdapter() {}
13
14 bool InvalidationAdapter::IsUnknownVersion() const {
15 return invalidation_.is_unknown_version();
16 }
17
18 const std::string& InvalidationAdapter::GetPayload() const {
19 return invalidation_.payload();
20 }
21
22 int64_t InvalidationAdapter::GetVersion() const {
23 return invalidation_.version();
24 }
25
26 void InvalidationAdapter::Acknowledge() {
27 invalidation_.Acknowledge();
28 }
29
30 void InvalidationAdapter::Drop() {
31 invalidation_.Drop();
32 }
33
34 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/invalidation_adapter.h ('k') | components/sync/driver/invalidation_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698