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

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

Issue 76333002: Add Sync datatype for shared managed user settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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_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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // Getter specific to the MANAGED_USER_SETTINGS datatype. Returns protobuf 156 // Getter specific to the MANAGED_USER_SETTINGS datatype. Returns protobuf
157 // data. Can only be called if GetModelType() == MANAGED_USER_SETTINGS. 157 // data. Can only be called if GetModelType() == MANAGED_USER_SETTINGS.
158 const sync_pb::ManagedUserSettingSpecifics& 158 const sync_pb::ManagedUserSettingSpecifics&
159 GetManagedUserSettingSpecifics() const; 159 GetManagedUserSettingSpecifics() const;
160 160
161 // Getter specific to the MANAGED_USERS datatype. Returns protobuf data. 161 // Getter specific to the MANAGED_USERS datatype. Returns protobuf data.
162 // Can only be called if GetModelType() == MANAGED_USERS. 162 // Can only be called if GetModelType() == MANAGED_USERS.
163 const sync_pb::ManagedUserSpecifics& GetManagedUserSpecifics() const; 163 const sync_pb::ManagedUserSpecifics& GetManagedUserSpecifics() const;
164 164
165 // Getter specific to the MANAGED_USER_SHARED_SETTINGS datatype. Returns
166 // protobuf data. Can only be called if GetModelType() ==
167 // MANAGED_USER_SHARED_SETTINGS.
168 const sync_pb::ManagedUserSharedSettingSpecifics&
169 GetManagedUserSharedSettingSpecifics() const;
170
165 // Getter specific to the DEVICE_INFO datatype. Returns protobuf 171 // Getter specific to the DEVICE_INFO datatype. Returns protobuf
166 // data. Can only be called if GetModelType() == DEVICE_INFO. 172 // data. Can only be called if GetModelType() == DEVICE_INFO.
167 const sync_pb::DeviceInfoSpecifics& GetDeviceInfoSpecifics() const; 173 const sync_pb::DeviceInfoSpecifics& GetDeviceInfoSpecifics() const;
168 174
169 // Getter specific to the EXPERIMENTS datatype. Returns protobuf 175 // Getter specific to the EXPERIMENTS datatype. Returns protobuf
170 // data. Can only be called if GetModelType() == EXPERIMENTS. 176 // data. Can only be called if GetModelType() == EXPERIMENTS.
171 const sync_pb::ExperimentsSpecifics& GetExperimentsSpecifics() const; 177 const sync_pb::ExperimentsSpecifics& GetExperimentsSpecifics() const;
172 178
173 // Getter specific to the PRIORITY_PREFERENCE datatype. Returns protobuf 179 // Getter specific to the PRIORITY_PREFERENCE datatype. Returns protobuf
174 // data. Can only be called if GetModelType() == PRIORITY_PREFERENCE. 180 // data. Can only be called if GetModelType() == PRIORITY_PREFERENCE.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 272
267 // Same as |unencrypted_data_|, but for legacy password encryption. 273 // Same as |unencrypted_data_|, but for legacy password encryption.
268 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; 274 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_;
269 275
270 DISALLOW_COPY_AND_ASSIGN(BaseNode); 276 DISALLOW_COPY_AND_ASSIGN(BaseNode);
271 }; 277 };
272 278
273 } // namespace syncer 279 } // namespace syncer
274 280
275 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ 281 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698