summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/fileapi/syncable/sync_status_code.h (renamed from webkit/fileapi/syncable/sync_file_errors.h)17
-rw-r--r--webkit/fileapi/webkit_fileapi.gypi5
2 files changed, 12 insertions, 10 deletions
diff --git a/webkit/fileapi/syncable/sync_file_errors.h b/webkit/fileapi/syncable/sync_status_code.h
index d1cc4e0..1bfba01 100644
--- a/webkit/fileapi/syncable/sync_file_errors.h
+++ b/webkit/fileapi/syncable/sync_status_code.h
@@ -2,14 +2,15 @@
// 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_FILE_ERRORS_H_
-#define WEBKIT_FILEAPI_SYNCABLE_SYNC_FILE_ERRORS_H_
+#ifndef WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_
+#define WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_
namespace fileapi {
-enum SyncFileError {
+enum SyncStatusCode {
+ SYNC_STATUS_OK = 0,
+
// Basic ones that could be directly mapped to PlatformFileError.
- SYNC_FILE_OK = 0,
SYNC_FILE_ERROR_FAILED = -1,
SYNC_FILE_ERROR_IN_USE = -2,
SYNC_FILE_ERROR_EXISTS = -3,
@@ -27,11 +28,11 @@ enum SyncFileError {
SYNC_FILE_ERROR_INVALID_URL = -15,
// Database related errors.
- SYNC_FILE_ERROR_DATABASE_NOT_FOUND = -16,
- SYNC_FILE_ERROR_DATABASE_CORRUPTION = -17,
- SYNC_FILE_ERROR_DATABASE_IO_ERROR = -18,
+ SYNC_DATABASE_ERROR_NOT_FOUND = -16,
+ SYNC_DATABASE_ERROR_CORRUPTION = -17,
+ SYNC_DATABASE_ERROR_IO_ERROR = -18,
};
} // namespace fileapi
-#endif // WEBKIT_FILEAPI_SYNCABLE_SYNC_FILE_ERRORS_H_
+#endif // WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_
diff --git a/webkit/fileapi/webkit_fileapi.gypi b/webkit/fileapi/webkit_fileapi.gypi
index 6b5b7fc..5791d6e 100644
--- a/webkit/fileapi/webkit_fileapi.gypi
+++ b/webkit/fileapi/webkit_fileapi.gypi
@@ -98,8 +98,9 @@
'syncable/local_file_change_tracker.h',
'syncable/local_file_sync_status.cc',
'syncable/local_file_sync_status.h',
- "syncable/syncable_file_system_util.cc",
- "syncable/syncable_file_system_util.h",
+ 'syncable/sync_status_code.h',
+ 'syncable/syncable_file_system_util.cc',
+ 'syncable/syncable_file_system_util.h',
'task_runner_bound_observer_list.h',
'test_mount_point_provider.cc',
'test_mount_point_provider.h',