Add ENABLE_MEDIA_ROUTER define to builds other than Android and iOS.
[chromium-blink-merge.git] / chrome / browser / sync / glue / invalidation_adapter.h
bloba57d14cc4462a3fcb311ca6efffc1b9117713cda
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.
5 #ifndef CHROME_BROWSER_SYNC_GLUE_INVALIDATION_ADAPTER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_INVALIDATION_ADAPTER_H_
8 #include "components/invalidation/invalidation.h"
9 #include "sync/internal_api/public/base/invalidation_interface.h"
11 namespace browser_sync {
13 // Wraps a syncer::Invalidation in the syncer::InvalidationInterface.
14 class InvalidationAdapter : public syncer::InvalidationInterface {
15 public:
16 explicit InvalidationAdapter(const syncer::Invalidation& invalidation);
17 ~InvalidationAdapter() override;
19 // Implementation of InvalidationInterface.
20 bool IsUnknownVersion() const override;
21 const std::string& GetPayload() const override;
22 int64 GetVersion() const override;
23 void Acknowledge() override;
24 void Drop() override;
26 private:
27 syncer::Invalidation invalidation_;
30 } // namespace browser_sync
32 #endif // CHROME_BROWSER_SYNC_GLUE_INVALIDATION_ADAPTER_H_