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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 void SetTypedUrlSpecifics(const sync_pb::TypedUrlSpecifics& specifics); | 153 void SetTypedUrlSpecifics(const sync_pb::TypedUrlSpecifics& specifics); |
154 | 154 |
155 // Set the extension specifics (id, update url, enabled state, etc). | 155 // Set the extension specifics (id, update url, enabled state, etc). |
156 // Should only be called if GetModelType() == EXTENSIONS. | 156 // Should only be called if GetModelType() == EXTENSIONS. |
157 void SetExtensionSpecifics(const sync_pb::ExtensionSpecifics& specifics); | 157 void SetExtensionSpecifics(const sync_pb::ExtensionSpecifics& specifics); |
158 | 158 |
159 // Set the session specifics (windows, tabs, navigations etc.). | 159 // Set the session specifics (windows, tabs, navigations etc.). |
160 // Should only be called if GetModelType() == SESSIONS. | 160 // Should only be called if GetModelType() == SESSIONS. |
161 void SetSessionSpecifics(const sync_pb::SessionSpecifics& specifics); | 161 void SetSessionSpecifics(const sync_pb::SessionSpecifics& specifics); |
162 | 162 |
| 163 // Set the managed user setting specifics (name and value). |
| 164 // Should only be called if GetModelType() == MANAGED_USER_SETTINGS. |
| 165 void SetManagedUserSettingSpecifics( |
| 166 const sync_pb::ManagedUserSettingSpecifics& specifics); |
| 167 |
163 // Set the device info specifics. | 168 // Set the device info specifics. |
164 // Should only be called if GetModelType() == DEVICE_INFO. | 169 // Should only be called if GetModelType() == DEVICE_INFO. |
165 void SetDeviceInfoSpecifics(const sync_pb::DeviceInfoSpecifics& specifics); | 170 void SetDeviceInfoSpecifics(const sync_pb::DeviceInfoSpecifics& specifics); |
166 | 171 |
167 // Set the experiments specifics. | 172 // Set the experiments specifics. |
168 // Should only be called if GetModelType() == EXPERIMENTS. | 173 // Should only be called if GetModelType() == EXPERIMENTS. |
169 void SetExperimentsSpecifics(const sync_pb::ExperimentsSpecifics& specifics); | 174 void SetExperimentsSpecifics(const sync_pb::ExperimentsSpecifics& specifics); |
170 | 175 |
171 // Set the priority preference specifics. | 176 // Set the priority preference specifics. |
172 // Should only be called if GetModelType() == PRIORITY_PREFERENCE. | 177 // Should only be called if GetModelType() == PRIORITY_PREFERENCE. |
(...skipping 24 matching lines...) Expand all Loading... |
197 | 202 |
198 // The sync API transaction that is the parent of this node. | 203 // The sync API transaction that is the parent of this node. |
199 WriteTransaction* transaction_; | 204 WriteTransaction* transaction_; |
200 | 205 |
201 DISALLOW_COPY_AND_ASSIGN(WriteNode); | 206 DISALLOW_COPY_AND_ASSIGN(WriteNode); |
202 }; | 207 }; |
203 | 208 |
204 } // namespace syncer | 209 } // namespace syncer |
205 | 210 |
206 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 211 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
OLD | NEW |