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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 const sync_pb::TypedUrlSpecifics& GetTypedUrlSpecifics() const; | 146 const sync_pb::TypedUrlSpecifics& GetTypedUrlSpecifics() const; |
147 | 147 |
148 // Getter specific to the EXTENSIONS datatype. Returns protobuf | 148 // Getter specific to the EXTENSIONS datatype. Returns protobuf |
149 // data. Can only be called if GetModelType() == EXTENSIONS. | 149 // data. Can only be called if GetModelType() == EXTENSIONS. |
150 const sync_pb::ExtensionSpecifics& GetExtensionSpecifics() const; | 150 const sync_pb::ExtensionSpecifics& GetExtensionSpecifics() const; |
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 |
| 157 // data. Can only be called if GetModelType() == MANAGED_USER_SETTINGS. |
| 158 const sync_pb::ManagedUserSettingSpecifics& |
| 159 GetManagedUserSettingSpecifics() const; |
| 160 |
156 // Getter specific to the DEVICE_INFO datatype. Returns protobuf | 161 // Getter specific to the DEVICE_INFO datatype. Returns protobuf |
157 // data. Can only be called if GetModelType() == DEVICE_INFO. | 162 // data. Can only be called if GetModelType() == DEVICE_INFO. |
158 const sync_pb::DeviceInfoSpecifics& GetDeviceInfoSpecifics() const; | 163 const sync_pb::DeviceInfoSpecifics& GetDeviceInfoSpecifics() const; |
159 | 164 |
160 // Getter specific to the EXPERIMENTS datatype. Returns protobuf | 165 // Getter specific to the EXPERIMENTS datatype. Returns protobuf |
161 // data. Can only be called if GetModelType() == EXPERIMENTS. | 166 // data. Can only be called if GetModelType() == EXPERIMENTS. |
162 const sync_pb::ExperimentsSpecifics& GetExperimentsSpecifics() const; | 167 const sync_pb::ExperimentsSpecifics& GetExperimentsSpecifics() const; |
163 | 168 |
164 // Getter specific to the PRIORITY_PREFERENCE datatype. Returns protobuf | 169 // Getter specific to the PRIORITY_PREFERENCE datatype. Returns protobuf |
165 // data. Can only be called if GetModelType() == PRIORITY_PREFERENCE. | 170 // data. Can only be called if GetModelType() == PRIORITY_PREFERENCE. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 252 |
248 // Same as |unencrypted_data_|, but for legacy password encryption. | 253 // Same as |unencrypted_data_|, but for legacy password encryption. |
249 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; | 254 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; |
250 | 255 |
251 DISALLOW_COPY_AND_ASSIGN(BaseNode); | 256 DISALLOW_COPY_AND_ASSIGN(BaseNode); |
252 }; | 257 }; |
253 | 258 |
254 } // namespace syncer | 259 } // namespace syncer |
255 | 260 |
256 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ | 261 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ |
OLD | NEW |