| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 // Getter specific to the SESSIONS datatype. Returns protobuf | 152 // Getter specific to the SESSIONS datatype. Returns protobuf |
| 153 // data. Can only be called if GetModelType() == SESSIONS. | 153 // data. Can only be called if GetModelType() == SESSIONS. |
| 154 const sync_pb::SessionSpecifics& GetSessionSpecifics() const; | 154 const sync_pb::SessionSpecifics& GetSessionSpecifics() const; |
| 155 | 155 |
| 156 // Getter specific to the MANAGED_USER_SETTINGS datatype. Returns protobuf | 156 // Getter specific to the MANAGED_USER_SETTINGS datatype. Returns protobuf |
| 157 // data. Can only be called if GetModelType() == MANAGED_USER_SETTINGS. | 157 // data. Can only be called if GetModelType() == MANAGED_USER_SETTINGS. |
| 158 const sync_pb::ManagedUserSettingSpecifics& | 158 const sync_pb::ManagedUserSettingSpecifics& |
| 159 GetManagedUserSettingSpecifics() const; | 159 GetManagedUserSettingSpecifics() const; |
| 160 | 160 |
| 161 // Getter specific to the MANAGED_USERS datatype. Returns protobuf data. |
| 162 // Can only be called if GetModelType() == MANAGED_USERS. |
| 163 const sync_pb::ManagedUserSpecifics& GetManagedUserSpecifics() const; |
| 164 |
| 161 // Getter specific to the DEVICE_INFO datatype. Returns protobuf | 165 // Getter specific to the DEVICE_INFO datatype. Returns protobuf |
| 162 // data. Can only be called if GetModelType() == DEVICE_INFO. | 166 // data. Can only be called if GetModelType() == DEVICE_INFO. |
| 163 const sync_pb::DeviceInfoSpecifics& GetDeviceInfoSpecifics() const; | 167 const sync_pb::DeviceInfoSpecifics& GetDeviceInfoSpecifics() const; |
| 164 | 168 |
| 165 // Getter specific to the EXPERIMENTS datatype. Returns protobuf | 169 // Getter specific to the EXPERIMENTS datatype. Returns protobuf |
| 166 // data. Can only be called if GetModelType() == EXPERIMENTS. | 170 // data. Can only be called if GetModelType() == EXPERIMENTS. |
| 167 const sync_pb::ExperimentsSpecifics& GetExperimentsSpecifics() const; | 171 const sync_pb::ExperimentsSpecifics& GetExperimentsSpecifics() const; |
| 168 | 172 |
| 169 // Getter specific to the PRIORITY_PREFERENCE datatype. Returns protobuf | 173 // Getter specific to the PRIORITY_PREFERENCE datatype. Returns protobuf |
| 170 // data. Can only be called if GetModelType() == PRIORITY_PREFERENCE. | 174 // data. Can only be called if GetModelType() == PRIORITY_PREFERENCE. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 256 |
| 253 // Same as |unencrypted_data_|, but for legacy password encryption. | 257 // Same as |unencrypted_data_|, but for legacy password encryption. |
| 254 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; | 258 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; |
| 255 | 259 |
| 256 DISALLOW_COPY_AND_ASSIGN(BaseNode); | 260 DISALLOW_COPY_AND_ASSIGN(BaseNode); |
| 257 }; | 261 }; |
| 258 | 262 |
| 259 } // namespace syncer | 263 } // namespace syncer |
| 260 | 264 |
| 261 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ | 265 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ |
| OLD | NEW |