OLD | NEW |
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 "sync/api/entity_change.h" | 5 #include "components/sync/api/entity_change.h" |
6 | 6 |
7 namespace syncer_v2 { | 7 namespace syncer_v2 { |
8 | 8 |
9 // static | 9 // static |
10 EntityChange EntityChange::CreateAdd(std::string client_tag, | 10 EntityChange EntityChange::CreateAdd(std::string client_tag, |
11 EntityDataPtr data) { | 11 EntityDataPtr data) { |
12 return EntityChange(client_tag, ACTION_ADD, data); | 12 return EntityChange(client_tag, ACTION_ADD, data); |
13 } | 13 } |
14 | 14 |
15 // static | 15 // static |
(...skipping 10 matching lines...) Expand all Loading... |
26 EntityChange::EntityChange(std::string client_tag, | 26 EntityChange::EntityChange(std::string client_tag, |
27 ChangeType type, | 27 ChangeType type, |
28 EntityDataPtr data) | 28 EntityDataPtr data) |
29 : client_tag_(client_tag), type_(type), data_(data) {} | 29 : client_tag_(client_tag), 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_v2 | 35 } // namespace syncer_v2 |
OLD | NEW |