diff options
Diffstat (limited to 'sync/internal_api/public/write_node.h')
-rw-r--r-- | sync/internal_api/public/write_node.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sync/internal_api/public/write_node.h b/sync/internal_api/public/write_node.h index 2682d017..2d84aae 100644 --- a/sync/internal_api/public/write_node.h +++ b/sync/internal_api/public/write_node.h @@ -34,6 +34,7 @@ class Cryptographer; class WriteTransaction; namespace syncable { +class Id; class Entry; class MutableEntry; } @@ -84,6 +85,12 @@ class SYNC_EXPORT WriteNode : public BaseNode { const BaseNode& parent, const std::string& client_tag); + // InitUniqueByCreation overload for model types without hierarchy. + // The parent node isn't stored but is assumed to be the type root folder. + InitUniqueByCreationResult InitUniqueByCreation( + ModelType model_type, + const std::string& client_tag); + // Looks up the type's root folder. This is usually created by the sync // server during initial sync, though we do eventually wish to remove it from // the protocol and have the client "fake it" instead. @@ -188,6 +195,11 @@ class SYNC_EXPORT WriteNode : public BaseNode { void* operator new(size_t size); // Node is meant for stack use only. + InitUniqueByCreationResult InitUniqueByCreationImpl( + ModelType model_type, + const syncable::Id& parent_id, + const std::string& client_tag); + // Helper to set the previous node. bool PutPredecessor(const BaseNode* predecessor) WARN_UNUSED_RESULT; |