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

Side by Side Diff: components/sync/api/entity_change.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « components/sync/api/entity_change.h ('k') | components/sync/api/entity_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/api/entity_change.h" 5 #include "components/sync/api/entity_change.h"
6 6
7 namespace syncer { 7 namespace syncer_v2 {
8 8
9 // static 9 // static
10 EntityChange EntityChange::CreateAdd(const std::string& storage_key, 10 EntityChange EntityChange::CreateAdd(const std::string& storage_key,
11 EntityDataPtr data) { 11 EntityDataPtr data) {
12 return EntityChange(storage_key, ACTION_ADD, data); 12 return EntityChange(storage_key, ACTION_ADD, data);
13 } 13 }
14 14
15 // static 15 // static
16 EntityChange EntityChange::CreateUpdate(const std::string& storage_key, 16 EntityChange EntityChange::CreateUpdate(const std::string& storage_key,
17 EntityDataPtr data) { 17 EntityDataPtr data) {
18 return EntityChange(storage_key, ACTION_UPDATE, data); 18 return EntityChange(storage_key, ACTION_UPDATE, data);
19 } 19 }
20 20
21 // static 21 // static
22 EntityChange EntityChange::CreateDelete(const std::string& storage_key) { 22 EntityChange EntityChange::CreateDelete(const std::string& storage_key) {
23 return EntityChange(storage_key, ACTION_DELETE, EntityDataPtr()); 23 return EntityChange(storage_key, ACTION_DELETE, EntityDataPtr());
24 } 24 }
25 25
26 EntityChange::EntityChange(const std::string& storage_key, 26 EntityChange::EntityChange(const std::string& storage_key,
27 ChangeType type, 27 ChangeType type,
28 EntityDataPtr data) 28 EntityDataPtr data)
29 : storage_key_(storage_key), type_(type), data_(data) {} 29 : storage_key_(storage_key), type_(type), data_(data) {}
30 30
31 EntityChange::EntityChange(const EntityChange& other) = default; 31 EntityChange::EntityChange(const EntityChange& other) = default;
32 32
33 EntityChange::~EntityChange() {} 33 EntityChange::~EntityChange() {}
34 34
35 } // namespace syncer 35 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « components/sync/api/entity_change.h ('k') | components/sync/api/entity_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698