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

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

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (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
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
OLDNEW
« no previous file with comments | « components/sync/driver/invalidation_adapter.h ('k') | components/sync/driver/model_association_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698