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

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

Issue 10985008: sync: Add DeviceInfo protobuf and supporting code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another missing include Created 8 years, 2 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
« no previous file with comments | « sync/internal_api/public/base/model_type.h ('k') | sync/internal_api/public/write_node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 const sync_pb::TypedUrlSpecifics& GetTypedUrlSpecifics() const; 158 const sync_pb::TypedUrlSpecifics& GetTypedUrlSpecifics() const;
159 159
160 // Getter specific to the EXTENSIONS datatype. Returns protobuf 160 // Getter specific to the EXTENSIONS datatype. Returns protobuf
161 // data. Can only be called if GetModelType() == EXTENSIONS. 161 // data. Can only be called if GetModelType() == EXTENSIONS.
162 const sync_pb::ExtensionSpecifics& GetExtensionSpecifics() const; 162 const sync_pb::ExtensionSpecifics& GetExtensionSpecifics() const;
163 163
164 // Getter specific to the SESSIONS datatype. Returns protobuf 164 // Getter specific to the SESSIONS datatype. Returns protobuf
165 // data. Can only be called if GetModelType() == SESSIONS. 165 // data. Can only be called if GetModelType() == SESSIONS.
166 const sync_pb::SessionSpecifics& GetSessionSpecifics() const; 166 const sync_pb::SessionSpecifics& GetSessionSpecifics() const;
167 167
168 // Getter specific to the DEVICE_INFO datatype. Returns protobuf
169 // data. Can only be called if GetModelType() == DEVICE_INFO.
170 const sync_pb::DeviceInfoSpecifics& GetDeviceInfoSpecifics() const;
171
168 const sync_pb::EntitySpecifics& GetEntitySpecifics() const; 172 const sync_pb::EntitySpecifics& GetEntitySpecifics() const;
169 173
170 // Returns the local external ID associated with the node. 174 // Returns the local external ID associated with the node.
171 int64 GetExternalId() const; 175 int64 GetExternalId() const;
172 176
173 // Returns true iff this node has children. 177 // Returns true iff this node has children.
174 bool HasChildren() const; 178 bool HasChildren() const;
175 179
176 // Return the ID of the node immediately before this in the sibling order. 180 // Return the ID of the node immediately before this in the sibling order.
177 // For the first node in the ordering, return 0. 181 // For the first node in the ordering, return 0.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 250
247 // Same as |unencrypted_data_|, but for legacy password encryption. 251 // Same as |unencrypted_data_|, but for legacy password encryption.
248 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; 252 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_;
249 253
250 DISALLOW_COPY_AND_ASSIGN(BaseNode); 254 DISALLOW_COPY_AND_ASSIGN(BaseNode);
251 }; 255 };
252 256
253 } // namespace syncer 257 } // namespace syncer
254 258
255 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ 259 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/base/model_type.h ('k') | sync/internal_api/public/write_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698