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

Side by Side Diff: chrome/browser/sync/glue/invalidation_wrapper.cc

Issue 322333004: sync: Inject sync/'s dependency on invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing files Created 6 years, 6 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 | Annotate | Revision Log
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 "chrome/browser/sync/glue/invalidation_wrapper.h"
6
7 #include <string>
8
9 namespace browser_sync {
10
11 InvalidationWrapper::InvalidationWrapper(
12 const syncer::Invalidation& invalidation)
13 : invalidation_(invalidation) {
14 }
15
16 InvalidationWrapper::~InvalidationWrapper() {
17 }
18
19 bool InvalidationWrapper::IsUnknownVersion() const {
20 return invalidation_.is_unknown_version();
21 }
22
23 const std::string& InvalidationWrapper::GetPayload() const {
24 return invalidation_.payload();
25 }
26
27 int64 InvalidationWrapper::GetVersion() const {
28 return invalidation_.version();
29 }
30
31 void InvalidationWrapper::Acknowledge() {
32 invalidation_.Acknowledge();
33 }
34
35 void InvalidationWrapper::Drop() {
36 invalidation_.Drop();
37 }
38
39 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698