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

Side by Side Diff: components/sync/base/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
« no previous file with comments | « components/sync/base/invalidation_adapter.h ('k') | components/sync/base/invalidation_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/base/invalidation_adapter.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 8
9 InvalidationAdapter::InvalidationAdapter(const Invalidation& invalidation) 9 InvalidationAdapter::InvalidationAdapter(const Invalidation& invalidation)
10 : invalidation_(invalidation) {} 10 : invalidation_(invalidation) {}
11 11
12 InvalidationAdapter::~InvalidationAdapter() {} 12 InvalidationAdapter::~InvalidationAdapter() {}
13 13
14 bool InvalidationAdapter::IsUnknownVersion() const { 14 bool InvalidationAdapter::IsUnknownVersion() const {
15 return invalidation_.is_unknown_version(); 15 return invalidation_.is_unknown_version();
16 } 16 }
17 17
18 const std::string& InvalidationAdapter::GetPayload() const { 18 const std::string& InvalidationAdapter::GetPayload() const {
19 return invalidation_.payload(); 19 return invalidation_.payload();
20 } 20 }
21 21
22 int64_t InvalidationAdapter::GetVersion() const { 22 int64_t InvalidationAdapter::GetVersion() const {
23 return invalidation_.version(); 23 return invalidation_.version();
24 } 24 }
25 25
26 void InvalidationAdapter::Acknowledge() { 26 void InvalidationAdapter::Acknowledge() {
27 invalidation_.Acknowledge(); 27 invalidation_.Acknowledge();
28 } 28 }
29 29
30 void InvalidationAdapter::Drop() { 30 void InvalidationAdapter::Drop() {
31 invalidation_.Drop(); 31 invalidation_.Drop();
32 } 32 }
33 33
34 } // namespace syncer 34 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/base/invalidation_adapter.h ('k') | components/sync/base/invalidation_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698