| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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). | 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). |
| 169 // Should only be called if GetModelType() == MANAGED_USERS. |
| 170 void SetManagedUserSpecifics(const sync_pb::ManagedUserSpecifics& specifics); |
| 171 |
| 168 // Set the device info specifics. | 172 // Set the device info specifics. |
| 169 // Should only be called if GetModelType() == DEVICE_INFO. | 173 // Should only be called if GetModelType() == DEVICE_INFO. |
| 170 void SetDeviceInfoSpecifics(const sync_pb::DeviceInfoSpecifics& specifics); | 174 void SetDeviceInfoSpecifics(const sync_pb::DeviceInfoSpecifics& specifics); |
| 171 | 175 |
| 172 // Set the experiments specifics. | 176 // Set the experiments specifics. |
| 173 // Should only be called if GetModelType() == EXPERIMENTS. | 177 // Should only be called if GetModelType() == EXPERIMENTS. |
| 174 void SetExperimentsSpecifics(const sync_pb::ExperimentsSpecifics& specifics); | 178 void SetExperimentsSpecifics(const sync_pb::ExperimentsSpecifics& specifics); |
| 175 | 179 |
| 176 // Set the priority preference specifics. | 180 // Set the priority preference specifics. |
| 177 // Should only be called if GetModelType() == PRIORITY_PREFERENCE. | 181 // Should only be called if GetModelType() == PRIORITY_PREFERENCE. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 202 | 206 |
| 203 // The sync API transaction that is the parent of this node. | 207 // The sync API transaction that is the parent of this node. |
| 204 WriteTransaction* transaction_; | 208 WriteTransaction* transaction_; |
| 205 | 209 |
| 206 DISALLOW_COPY_AND_ASSIGN(WriteNode); | 210 DISALLOW_COPY_AND_ASSIGN(WriteNode); |
| 207 }; | 211 }; |
| 208 | 212 |
| 209 } // namespace syncer | 213 } // namespace syncer |
| 210 | 214 |
| 211 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 215 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
| OLD | NEW |