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

Unified Diff: components/sync/api/entity_change.h

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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
« no previous file with comments | « components/sync/api/data_type_error_handler_mock.cc ('k') | components/sync/api/entity_change.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/entity_change.h
diff --git a/components/sync/api/entity_change.h b/components/sync/api/entity_change.h
deleted file mode 100644
index 7365dfbcc0310caad814f02a7172675f22678b44..0000000000000000000000000000000000000000
--- a/components/sync/api/entity_change.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 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_API_ENTITY_CHANGE_H_
-#define COMPONENTS_SYNC_API_ENTITY_CHANGE_H_
-
-#include <string>
-#include <vector>
-
-#include "components/sync/api/entity_data.h"
-
-namespace syncer {
-
-class EntityChange {
- public:
- enum ChangeType { ACTION_ADD, ACTION_UPDATE, ACTION_DELETE };
-
- static EntityChange CreateAdd(const std::string& storage_key,
- EntityDataPtr data);
- static EntityChange CreateUpdate(const std::string& storage_key,
- EntityDataPtr data);
- static EntityChange CreateDelete(const std::string& storage_key);
-
- EntityChange(const EntityChange& other);
- virtual ~EntityChange();
-
- std::string storage_key() const { return storage_key_; }
- ChangeType type() const { return type_; }
- const EntityData& data() const { return data_.value(); }
-
- private:
- EntityChange(const std::string& storage_key,
- ChangeType type,
- EntityDataPtr data);
-
- std::string storage_key_;
- ChangeType type_;
- EntityDataPtr data_;
-};
-
-typedef std::vector<EntityChange> EntityChangeList;
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_API_ENTITY_CHANGE_H_
« no previous file with comments | « components/sync/api/data_type_error_handler_mock.cc ('k') | components/sync/api/entity_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698