Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / sync / syncable / entry.h
index 619c84b..184377a 100644 (file)
@@ -210,6 +210,11 @@ class SYNC_EXPORT Entry {
     return kernel_->ref(ATTACHMENT_METADATA);
   }
 
+  const sync_pb::AttachmentMetadata& GetServerAttachmentMetadata() const {
+    DCHECK(kernel_);
+    return kernel_->ref(SERVER_ATTACHMENT_METADATA);
+  }
+
   bool GetSyncing() const {
     DCHECK(kernel_);
     return kernel_->ref(SYNCING);
@@ -245,6 +250,10 @@ class SYNC_EXPORT Entry {
   // sort ordering relative to its siblings under the same parent.
   bool ShouldMaintainPosition() const;
 
+  // Returns true if this is an entry that is expected to maintain hierarchy.
+  // ie. Whether or not the PARENT_ID field contains useful information.
+  bool ShouldMaintainHierarchy() const;
+
   Directory* dir() const;
 
   const EntryKernel GetKernelCopy() const {