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

Side by Side Diff: components/sync/core/base_node.h

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 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
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 COMPONENTS_SYNC_CORE_BASE_NODE_H_ 5 #ifndef COMPONENTS_SYNC_CORE_BASE_NODE_H_
6 #define COMPONENTS_SYNC_CORE_BASE_NODE_H_ 6 #define COMPONENTS_SYNC_CORE_BASE_NODE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Returns the total number of nodes including and beneath this node. 168 // Returns the total number of nodes including and beneath this node.
169 // Recursively iterates through all children. 169 // Recursively iterates through all children.
170 int GetTotalNodeCount() const; 170 int GetTotalNodeCount() const;
171 171
172 // Returns this item's position within its parent. 172 // Returns this item's position within its parent.
173 // Do not call this function on items that do not support positioning 173 // Do not call this function on items that do not support positioning
174 // (ie. non-bookmarks). 174 // (ie. non-bookmarks).
175 int GetPositionIndex() const; 175 int GetPositionIndex() const;
176 176
177 // Returns this item's attachment ids. 177 // Returns this item's attachment ids.
178 const syncer::AttachmentIdList GetAttachmentIds() const; 178 const AttachmentIdList GetAttachmentIds() const;
179 179
180 // Returns a base::DictionaryValue serialization of this node. 180 // Returns a base::DictionaryValue serialization of this node.
181 base::DictionaryValue* ToValue() const; 181 base::DictionaryValue* ToValue() const;
182 182
183 protected: 183 protected:
184 BaseNode(); 184 BaseNode();
185 virtual ~BaseNode(); 185 virtual ~BaseNode();
186 186
187 // These virtual accessors provide access to data members of derived classes. 187 // These virtual accessors provide access to data members of derived classes.
188 virtual const syncable::Entry* GetEntry() const = 0; 188 virtual const syncable::Entry* GetEntry() const = 0;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 // Same as |unencrypted_data_|, but for legacy password encryption. 235 // Same as |unencrypted_data_|, but for legacy password encryption.
236 std::unique_ptr<sync_pb::PasswordSpecificsData> password_data_; 236 std::unique_ptr<sync_pb::PasswordSpecificsData> password_data_;
237 237
238 DISALLOW_COPY_AND_ASSIGN(BaseNode); 238 DISALLOW_COPY_AND_ASSIGN(BaseNode);
239 }; 239 };
240 240
241 } // namespace syncer 241 } // namespace syncer
242 242
243 #endif // COMPONENTS_SYNC_CORE_BASE_NODE_H_ 243 #endif // COMPONENTS_SYNC_CORE_BASE_NODE_H_
OLDNEW
« no previous file with comments | « components/sync/core/attachments/attachment_service_proxy.h ('k') | components/sync/core/base_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698