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

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

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 #ifndef COMPONENTS_SYNC_DRIVER_INVALIDATION_ADAPTER_H_
6 #define COMPONENTS_SYNC_DRIVER_INVALIDATION_ADAPTER_H_
7
8 #include <stdint.h>
9
10 #include <string>
11
12 #include "components/invalidation/public/invalidation.h"
13 #include "components/sync/base/invalidation_interface.h"
14
15 namespace syncer {
16
17 // Wraps a Invalidation in the InvalidationInterface.
18 class InvalidationAdapter : public InvalidationInterface {
19 public:
20 explicit InvalidationAdapter(const Invalidation& invalidation);
21 ~InvalidationAdapter() override;
22
23 // Implementation of InvalidationInterface.
24 bool IsUnknownVersion() const override;
25 const std::string& GetPayload() const override;
26 int64_t GetVersion() const override;
27 void Acknowledge() override;
28 void Drop() override;
29
30 private:
31 Invalidation invalidation_;
32 };
33
34 } // namespace syncer
35
36 #endif // COMPONENTS_SYNC_DRIVER_INVALIDATION_ADAPTER_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl_unittest.cc ('k') | components/sync/driver/invalidation_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698