| 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_permanent_entit
y.h" | 5 #include "components/sync/engine_impl/loopback_server/persistent_permanent_entit
y.h" |
| 6 | 6 |
| 7 #include <memory> | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/logging.h" | 7 #include "base/logging.h" |
| 11 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 12 #include "components/sync/base/model_type.h" | |
| 13 #include "components/sync/engine_impl/loopback_server/loopback_server_entity.h" | |
| 14 #include "components/sync/protocol/sync.pb.h" | |
| 15 | 9 |
| 16 using std::string; | 10 using std::string; |
| 17 | 11 |
| 18 using syncer::ModelType; | 12 using syncer::ModelType; |
| 19 | 13 |
| 20 namespace { | 14 namespace { |
| 21 // The parent tag for children of the root entity. Entities with this parent are | 15 // The parent tag for children of the root entity. Entities with this parent are |
| 22 // referred to as top level enities. | 16 // referred to as top level enities. |
| 23 static const char kRootParentTag[] = "0"; | 17 static const char kRootParentTag[] = "0"; |
| 24 } // namespace | 18 } // namespace |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 bool PersistentPermanentEntity::IsPermanent() const { | 112 bool PersistentPermanentEntity::IsPermanent() const { |
| 119 return true; | 113 return true; |
| 120 } | 114 } |
| 121 | 115 |
| 122 sync_pb::LoopbackServerEntity_Type | 116 sync_pb::LoopbackServerEntity_Type |
| 123 PersistentPermanentEntity::GetLoopbackServerEntityType() const { | 117 PersistentPermanentEntity::GetLoopbackServerEntityType() const { |
| 124 return sync_pb::LoopbackServerEntity_Type_PERMANENT; | 118 return sync_pb::LoopbackServerEntity_Type_PERMANENT; |
| 125 } | 119 } |
| 126 | 120 |
| 127 } // namespace syncer | 121 } // namespace syncer |
| OLD | NEW |