Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: sync/internal_api/public/write_node.h

Issue 14053004: Add ManagedUserSettings Sync data type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698