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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/driver/invalidation_adapter.h
diff --git a/components/sync/driver/invalidation_adapter.h b/components/sync/driver/invalidation_adapter.h
deleted file mode 100644
index cf7212c2e894e120cc909a9d8c2f24da2bf1d0ea..0000000000000000000000000000000000000000
--- a/components/sync/driver/invalidation_adapter.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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 COMPONENTS_SYNC_DRIVER_INVALIDATION_ADAPTER_H_
-#define COMPONENTS_SYNC_DRIVER_INVALIDATION_ADAPTER_H_
-
-#include <stdint.h>
-
-#include <string>
-
-#include "components/invalidation/public/invalidation.h"
-#include "components/sync/base/invalidation_interface.h"
-
-namespace syncer {
-
-// Wraps a Invalidation in the InvalidationInterface.
-class InvalidationAdapter : public InvalidationInterface {
- public:
- explicit InvalidationAdapter(const Invalidation& invalidation);
- ~InvalidationAdapter() override;
-
- // Implementation of InvalidationInterface.
- bool IsUnknownVersion() const override;
- const std::string& GetPayload() const override;
- int64_t GetVersion() const override;
- void Acknowledge() override;
- void Drop() override;
-
- private:
- Invalidation invalidation_;
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_DRIVER_INVALIDATION_ADAPTER_H_
« 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