summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/syncable/sync_action.h
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-08 12:43:28 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-08 12:43:28 +0000
commit065402665c9057f4ca0cf7bbfca035bbbf7b97a9 (patch)
tree64e951593c780adc0c8c7498bd43af2bf4a1e9b4 /webkit/fileapi/syncable/sync_action.h
parentac0ed09208b6013cf6c00c46d2129e5a33eaa609 (diff)
downloadchromium_src-065402665c9057f4ca0cf7bbfca035bbbf7b97a9.zip
chromium_src-065402665c9057f4ca0cf7bbfca035bbbf7b97a9.tar.gz
chromium_src-065402665c9057f4ca0cf7bbfca035bbbf7b97a9.tar.bz2
SyncFS: Migrate to new event system and support LOCAL_TO_REMOTE (as well as REMOTE_TO_LOCAL) sync events
Remaining: - this doesn't support pending event yet (it needs to be fired from local-side unlike other events) BUG=174825 TEST=browser_tests:SyncFileSystemAPITest.OnFileStatusChanged, unit_tests:DriveFileSyncServiceTest.RemoteChange_* TBR=thestig Review URL: https://codereview.chromium.org/12212082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/syncable/sync_action.h')
-rw-r--r--webkit/fileapi/syncable/sync_action.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/webkit/fileapi/syncable/sync_action.h b/webkit/fileapi/syncable/sync_action.h
new file mode 100644
index 0000000..5f93b45
--- /dev/null
+++ b/webkit/fileapi/syncable/sync_action.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_FILEAPI_SYNCABLE_SYNC_ACTION_H_
+#define WEBKIT_FILEAPI_SYNCABLE_SYNC_ACTION_H_
+
+namespace fileapi {
+
+enum SyncAction {
+ // Indicates no action has been made.
+ SYNC_ACTION_NONE,
+
+ // Indicates a new file or directory has been added.
+ SYNC_ACTION_ADDED,
+
+ // Indicates an existing file or directory has been updated.
+ SYNC_ACTION_UPDATED,
+
+ // Indicates a file or directory has been deleted.
+ SYNC_ACTION_DELETED,
+};
+
+} // namespace fileapi
+
+#endif // WEBKIT_FILEAPI_SYNCABLE_SYNC_ACTION_H_