| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 const sync_pb::SessionSpecifics& GetSessionSpecifics() const; | 154 const sync_pb::SessionSpecifics& GetSessionSpecifics() const; |
| 155 | 155 |
| 156 // Getter specific to the DEVICE_INFO datatype. Returns protobuf | 156 // Getter specific to the DEVICE_INFO datatype. Returns protobuf |
| 157 // data. Can only be called if GetModelType() == DEVICE_INFO. | 157 // data. Can only be called if GetModelType() == DEVICE_INFO. |
| 158 const sync_pb::DeviceInfoSpecifics& GetDeviceInfoSpecifics() const; | 158 const sync_pb::DeviceInfoSpecifics& GetDeviceInfoSpecifics() const; |
| 159 | 159 |
| 160 // Getter specific to the EXPERIMENTS datatype. Returns protobuf | 160 // Getter specific to the EXPERIMENTS datatype. Returns protobuf |
| 161 // data. Can only be called if GetModelType() == EXPERIMENTS. | 161 // data. Can only be called if GetModelType() == EXPERIMENTS. |
| 162 const sync_pb::ExperimentsSpecifics& GetExperimentsSpecifics() const; | 162 const sync_pb::ExperimentsSpecifics& GetExperimentsSpecifics() const; |
| 163 | 163 |
| 164 // Getter specific to the PRIORITY_PREFERENCE datatype. Returns protobuf |
| 165 // data. Can only be called if GetModelType() == PRIORITY_PREFERENCE. |
| 166 const sync_pb::PriorityPreferenceSpecifics& |
| 167 GetPriorityPreferenceSpecifics() const; |
| 168 |
| 164 const sync_pb::EntitySpecifics& GetEntitySpecifics() const; | 169 const sync_pb::EntitySpecifics& GetEntitySpecifics() const; |
| 165 | 170 |
| 166 // Returns the local external ID associated with the node. | 171 // Returns the local external ID associated with the node. |
| 167 int64 GetExternalId() const; | 172 int64 GetExternalId() const; |
| 168 | 173 |
| 169 // Returns true iff this node has children. | 174 // Returns true iff this node has children. |
| 170 bool HasChildren() const; | 175 bool HasChildren() const; |
| 171 | 176 |
| 172 // Return the ID of the node immediately before this in the sibling order. | 177 // Return the ID of the node immediately before this in the sibling order. |
| 173 // For the first node in the ordering, return 0. | 178 // For the first node in the ordering, return 0. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 247 |
| 243 // Same as |unencrypted_data_|, but for legacy password encryption. | 248 // Same as |unencrypted_data_|, but for legacy password encryption. |
| 244 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; | 249 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; |
| 245 | 250 |
| 246 DISALLOW_COPY_AND_ASSIGN(BaseNode); | 251 DISALLOW_COPY_AND_ASSIGN(BaseNode); |
| 247 }; | 252 }; |
| 248 | 253 |
| 249 } // namespace syncer | 254 } // namespace syncer |
| 250 | 255 |
| 251 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ | 256 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ |
| OLD | NEW |