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

Unified Diff: components/invalidation/invalidation.h

Issue 400073003: Finish decoupling sync and invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix GN Created 6 years, 5 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 | « components/invalidation/fake_invalidator.h ('k') | components/invalidation/invalidation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/invalidation/invalidation.h
diff --git a/sync/internal_api/public/base/invalidation.h b/components/invalidation/invalidation.h
similarity index 90%
rename from sync/internal_api/public/base/invalidation.h
rename to components/invalidation/invalidation.h
index 6d78612f348ac2ec6a40b0319c22563ee7991943..8cdce3d9a84a3ae90abaf7f60249c024a17173a8 100644
--- a/sync/internal_api/public/base/invalidation.h
+++ b/components/invalidation/invalidation.h
@@ -2,17 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_H_
-#define SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_H_
+#ifndef COMPONENTS_INVALIDATION_INVALIDATION_H_
+#define COMPONENTS_INVALIDATION_INVALIDATION_H_
#include <string>
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
+#include "components/invalidation/ack_handle.h"
+#include "components/invalidation/invalidation_export.h"
#include "google/cacheinvalidation/include/types.h"
-#include "sync/base/sync_export.h"
-#include "sync/internal_api/public/base/ack_handle.h"
#include "sync/internal_api/public/util/weak_handle.h"
namespace syncer {
@@ -23,13 +23,12 @@ class AckHandler;
// Represents a local invalidation, and is roughly analogous to
// invalidation::Invalidation. Unlike invalidation::Invalidation, this class
// supports "local" ack-tracking and simple serialization to pref values.
-class SYNC_EXPORT Invalidation {
+class INVALIDATION_EXPORT Invalidation {
public:
// Factory functions.
- static Invalidation Init(
- const invalidation::ObjectId& id,
- int64 version,
- const std::string& payload);
+ static Invalidation Init(const invalidation::ObjectId& id,
+ int64 version,
+ const std::string& payload);
static Invalidation InitUnknownVersion(const invalidation::ObjectId& id);
static Invalidation InitFromDroppedInvalidation(const Invalidation& dropped);
static scoped_ptr<Invalidation> InitFromValue(
@@ -119,4 +118,4 @@ class SYNC_EXPORT Invalidation {
} // namespace syncer
-#endif // SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_H_
+#endif // COMPONENTS_INVALIDATION_INVALIDATION_H_
« no previous file with comments | « components/invalidation/fake_invalidator.h ('k') | components/invalidation/invalidation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698