projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git]
/
src
/
sync
/
syncable
/
entry.h
diff --git
a/src/sync/syncable/entry.h
b/src/sync/syncable/entry.h
index
619c84b
..
184377a
100644
(file)
--- a/
src/sync/syncable/entry.h
+++ b/
src/sync/syncable/entry.h
@@
-210,6
+210,11
@@
class SYNC_EXPORT Entry {
return kernel_->ref(ATTACHMENT_METADATA);
}
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);
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;
// 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 {
Directory* dir() const;
const EntryKernel GetKernelCopy() const {