| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/engine_impl/loopback_server/persistent_unique_client_e
ntity.h" | 5 #include "components/sync/engine_impl/loopback_server/persistent_unique_client_e
ntity.h" |
| 6 | 6 |
| 7 #include <stdint.h> | |
| 8 | |
| 9 #include <memory> | |
| 10 #include <string> | |
| 11 | |
| 12 #include "base/guid.h" | 7 #include "base/guid.h" |
| 13 #include "components/sync/base/model_type.h" | |
| 14 #include "components/sync/engine_impl/loopback_server/loopback_server_entity.h" | |
| 15 #include "components/sync/engine_impl/loopback_server/persistent_permanent_entit
y.h" | 8 #include "components/sync/engine_impl/loopback_server/persistent_permanent_entit
y.h" |
| 16 #include "components/sync/protocol/sync.pb.h" | 9 #include "components/sync/protocol/sync.pb.h" |
| 17 | 10 |
| 18 using std::string; | 11 using std::string; |
| 19 | 12 |
| 20 namespace syncer { | 13 namespace syncer { |
| 21 | 14 |
| 22 PersistentUniqueClientEntity::PersistentUniqueClientEntity( | 15 PersistentUniqueClientEntity::PersistentUniqueClientEntity( |
| 23 const string& id, | 16 const string& id, |
| 24 ModelType model_type, | 17 ModelType model_type, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 void PersistentUniqueClientEntity::SerializeAsProto( | 70 void PersistentUniqueClientEntity::SerializeAsProto( |
| 78 sync_pb::SyncEntity* proto) const { | 71 sync_pb::SyncEntity* proto) const { |
| 79 LoopbackServerEntity::SerializeBaseProtoFields(proto); | 72 LoopbackServerEntity::SerializeBaseProtoFields(proto); |
| 80 | 73 |
| 81 proto->set_client_defined_unique_tag(client_defined_unique_tag_); | 74 proto->set_client_defined_unique_tag(client_defined_unique_tag_); |
| 82 proto->set_ctime(creation_time_); | 75 proto->set_ctime(creation_time_); |
| 83 proto->set_mtime(last_modified_time_); | 76 proto->set_mtime(last_modified_time_); |
| 84 } | 77 } |
| 85 | 78 |
| 86 } // namespace syncer | 79 } // namespace syncer |
| OLD | NEW |