| Index: chrome/browser/sync/glue/invalidation_adapter.h
|
| diff --git a/chrome/browser/sync/glue/invalidation_adapter.h b/chrome/browser/sync/glue/invalidation_adapter.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..509a87203475807a29f53b2c7dd9ed65e3d2c0aa
|
| --- /dev/null
|
| +++ b/chrome/browser/sync/glue/invalidation_adapter.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_SYNC_GLUE_INVALIDATION_ADAPTER_H_
|
| +#define CHROME_BROWSER_SYNC_GLUE_INVALIDATION_ADAPTER_H_
|
| +
|
| +#include "sync/internal_api/public/base/invalidation.h"
|
| +#include "sync/internal_api/public/base/invalidation_interface.h"
|
| +
|
| +namespace browser_sync {
|
| +
|
| +// Wraps a syncer::Invalidation in the syncer::InvalidationInterface.
|
| +class InvalidationAdapter : public syncer::InvalidationInterface {
|
| + public:
|
| + explicit InvalidationAdapter(const syncer::Invalidation& invalidation);
|
| + virtual ~InvalidationAdapter();
|
| +
|
| + // Implementation of InvalidationInterface.
|
| + virtual bool IsUnknownVersion() const OVERRIDE;
|
| + virtual const std::string& GetPayload() const OVERRIDE;
|
| + virtual int64 GetVersion() const OVERRIDE;
|
| + virtual void Acknowledge() OVERRIDE;
|
| + virtual void Drop() OVERRIDE;
|
| +
|
| + private:
|
| + syncer::Invalidation invalidation_;
|
| +};
|
| +
|
| +} // namespace browser_sync
|
| +
|
| +#endif // CHROME_BROWSER_SYNC_GLUE_INVALIDATION_ADAPTER_H_
|
|
|