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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/glue/invalidation_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/invalidation_wrapper.h
diff --git a/chrome/browser/sync/glue/invalidation_wrapper.h b/chrome/browser/sync/glue/invalidation_wrapper.h
new file mode 100644
index 0000000000000000000000000000000000000000..2a4ab8c84ee60600e74a20d912ee5ef5c3a14b03
--- /dev/null
+++ b/chrome/browser/sync/glue/invalidation_wrapper.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_WRAPPER_H_
+#define CHROME_BROWSER_SYNC_GLUE_INVALIDATION_WRAPPER_H_
+
+#include "sync/internal_api/public/base/invalidation.h"
+#include "sync/internal_api/public/base/invalidation_interface.h"
tim (not reviewing) 2014/06/18 21:51:35 What is invalidation_interface? I don't see it in
+
+namespace browser_sync {
+
+// Wraps a syncer::Invalidation in the syncer::InvalidationInterface.
+class InvalidationWrapper : public syncer::InvalidationInterface {
+ public:
+ explicit InvalidationWrapper(const syncer::Invalidation& invalidation);
+ virtual ~InvalidationWrapper();
+
+ // 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_WRAPPER_H_
« no previous file with comments | « no previous file | chrome/browser/sync/glue/invalidation_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698