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

Unified Diff: webkit/fileapi/syncable/file_change.h

Issue 13986011: SyncFS: Introduce RemoteSyncOperationResolver for directory operation support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: webkit/fileapi/syncable/file_change.h
diff --git a/webkit/fileapi/syncable/file_change.h b/webkit/fileapi/syncable/file_change.h
index f2a12e481eb0aca1b6b5306750e93b4a4484ec6c..41359a1c6b432c62320cdbb9883ad2a4afc246f0 100644
--- a/webkit/fileapi/syncable/file_change.h
+++ b/webkit/fileapi/syncable/file_change.h
@@ -32,6 +32,11 @@ class WEBKIT_STORAGE_EXPORT FileChange {
bool IsDirectory() const { return file_type_ == SYNC_FILE_TYPE_DIRECTORY; }
bool IsTypeUnknown() const { return !IsFile() && !IsDirectory(); }
+ bool IsAddOrUpdateFile() const { return IsAddOrUpdate() && IsFile(); }
+ bool IsDeleteFile() const { return IsDelete() && IsFile(); }
+ bool IsAddDirectory() const { return IsAddOrUpdate() && IsDirectory(); }
+ bool IsDeleteDirectory() const { return IsDelete() && IsDirectory(); }
kinuko 2013/04/24 02:32:32 These methods are good for DCHECKs but I'm worried
nhiroki 2013/04/24 13:29:05 hmm... I think this seems straightforward and usef
kinuko 2013/04/24 14:07:59 If it's really useful that's fine of course, I mea
+
ChangeType change() const { return change_; }
SyncFileType file_type() const { return file_type_; }

Powered by Google App Engine
This is Rietveld 408576698