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

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

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 #ifndef CHROME_BROWSER_SYNC_GLUE_INVALIDATION_WRAPPER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_INVALIDATION_WRAPPER_H_
7
8 #include "sync/internal_api/public/base/invalidation.h"
9 #include "sync/internal_api/public/base/invalidation_interface.h"
10
11 namespace browser_sync {
12
13 // Wraps a syncer::Invalidation in the syncer::InvalidationInterface.
14 class InvalidationWrapper : public syncer::InvalidationInterface {
tim (not reviewing) 2014/06/18 22:41:11 s/Wrapper/Adapter. But, could components/invalida
rlarocque 2014/06/19 00:50:19 Will do.
rlarocque 2014/06/20 20:00:12 Done.
15 public:
16 explicit InvalidationWrapper(const syncer::Invalidation& invalidation);
17 virtual ~InvalidationWrapper();
18
19 // Implementation of InvalidationInterface.
20 virtual bool IsUnknownVersion() const OVERRIDE;
21 virtual const std::string& GetPayload() const OVERRIDE;
22 virtual int64 GetVersion() const OVERRIDE;
23 virtual void Acknowledge() OVERRIDE;
24 virtual void Drop() OVERRIDE;
25
26 private:
27 syncer::Invalidation invalidation_;
28 };
29
30 } // namespace browser_sync
31
32 #endif // CHROME_BROWSER_SYNC_GLUE_INVALIDATION_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698