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_WRITE_NODE_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 // Set the managed user setting specifics (name and value). | 163 // Set the managed user setting specifics (name and value). |
164 // Should only be called if GetModelType() == MANAGED_USER_SETTINGS. | 164 // Should only be called if GetModelType() == MANAGED_USER_SETTINGS. |
165 void SetManagedUserSettingSpecifics( | 165 void SetManagedUserSettingSpecifics( |
166 const sync_pb::ManagedUserSettingSpecifics& specifics); | 166 const sync_pb::ManagedUserSettingSpecifics& specifics); |
167 | 167 |
168 // Set the managed user setting specifics (name and value). | 168 // Set the managed user setting specifics (name and value). |
169 // Should only be called if GetModelType() == MANAGED_USERS. | 169 // Should only be called if GetModelType() == MANAGED_USERS. |
170 void SetManagedUserSpecifics(const sync_pb::ManagedUserSpecifics& specifics); | 170 void SetManagedUserSpecifics(const sync_pb::ManagedUserSpecifics& specifics); |
171 | 171 |
| 172 // Set the managed user shared setting specifics (name and value). |
| 173 // Should only be called if GetModelType() == MANAGED_USER_SHARED_SETTINGS. |
| 174 void SetManagedUserSharedSettingSpecifics( |
| 175 const sync_pb::ManagedUserSharedSettingSpecifics& specifics); |
| 176 |
172 // Set the device info specifics. | 177 // Set the device info specifics. |
173 // Should only be called if GetModelType() == DEVICE_INFO. | 178 // Should only be called if GetModelType() == DEVICE_INFO. |
174 void SetDeviceInfoSpecifics(const sync_pb::DeviceInfoSpecifics& specifics); | 179 void SetDeviceInfoSpecifics(const sync_pb::DeviceInfoSpecifics& specifics); |
175 | 180 |
176 // Set the experiments specifics. | 181 // Set the experiments specifics. |
177 // Should only be called if GetModelType() == EXPERIMENTS. | 182 // Should only be called if GetModelType() == EXPERIMENTS. |
178 void SetExperimentsSpecifics(const sync_pb::ExperimentsSpecifics& specifics); | 183 void SetExperimentsSpecifics(const sync_pb::ExperimentsSpecifics& specifics); |
179 | 184 |
180 // Set the priority preference specifics. | 185 // Set the priority preference specifics. |
181 // Should only be called if GetModelType() == PRIORITY_PREFERENCE. | 186 // Should only be called if GetModelType() == PRIORITY_PREFERENCE. |
(...skipping 24 matching lines...) Expand all Loading... |
206 | 211 |
207 // The sync API transaction that is the parent of this node. | 212 // The sync API transaction that is the parent of this node. |
208 WriteTransaction* transaction_; | 213 WriteTransaction* transaction_; |
209 | 214 |
210 DISALLOW_COPY_AND_ASSIGN(WriteNode); | 215 DISALLOW_COPY_AND_ASSIGN(WriteNode); |
211 }; | 216 }; |
212 | 217 |
213 } // namespace syncer | 218 } // namespace syncer |
214 | 219 |
215 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 220 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
OLD | NEW |