diff options
author | nhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-04 17:21:51 +0000 |
---|---|---|
committer | nhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-04 17:21:51 +0000 |
commit | 4cddafed47db084123a3227806f1f7df71e3769e (patch) | |
tree | 75468378f1530ab45e14d2d88734ecbe3dd02603 /webkit | |
parent | 38c546ebdd7d778fcb71ef9ef9a0bd5b38ba6452 (diff) | |
download | chromium_src-4cddafed47db084123a3227806f1f7df71e3769e.zip chromium_src-4cddafed47db084123a3227806f1f7df71e3769e.tar.gz chromium_src-4cddafed47db084123a3227806f1f7df71e3769e.tar.bz2 |
Change SyncFileErrors to SyncStatusCode
BUG=153526
TEST=n/a
Review URL: https://chromiumcodereview.appspot.com/11040036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160149 0039d316-1c4b-4281-b951-d872f2087c98
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.gypi | 5 |
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', |