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

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

Issue 15806012: Move webkit/fileapi/syncable/* code to webkit/browser/fileapi (final!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « webkit/fileapi/syncable/sync_file_type.h ('k') | webkit/fileapi/syncable/sync_status_code.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/syncable/sync_status_code.h
diff --git a/webkit/fileapi/syncable/sync_status_code.h b/webkit/fileapi/syncable/sync_status_code.h
deleted file mode 100644
index cc15a196a1b028c8dd3f24ba11b3efbdaa1c6cd0..0000000000000000000000000000000000000000
--- a/webkit/fileapi/syncable/sync_status_code.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// 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_STATUS_CODE_H_
-#define WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_
-
-#include <string>
-
-#include "base/platform_file.h"
-#include "webkit/storage/webkit_storage_export.h"
-
-namespace leveldb {
-class Status;
-}
-
-namespace sync_file_system {
-
-enum SyncStatusCode {
- SYNC_STATUS_OK = 0,
- SYNC_STATUS_UNKNOWN = -1000,
-
- // Generic error code which is not specifically related to a specific
- // submodule error code (yet).
- SYNC_STATUS_FAILED = -1001,
-
- // Basic ones that could be directly mapped to PlatformFileError.
- SYNC_FILE_ERROR_FAILED = -1,
- SYNC_FILE_ERROR_IN_USE = -2,
- SYNC_FILE_ERROR_EXISTS = -3,
- SYNC_FILE_ERROR_NOT_FOUND = -4,
- SYNC_FILE_ERROR_ACCESS_DENIED = -5,
- SYNC_FILE_ERROR_TOO_MANY_OPENED = -6,
- SYNC_FILE_ERROR_NO_MEMORY = -7,
- SYNC_FILE_ERROR_NO_SPACE = -8,
- SYNC_FILE_ERROR_NOT_A_DIRECTORY = -9,
- SYNC_FILE_ERROR_INVALID_OPERATION = -10,
- SYNC_FILE_ERROR_SECURITY = -11,
- SYNC_FILE_ERROR_ABORT = -12,
- SYNC_FILE_ERROR_NOT_A_FILE = -13,
- SYNC_FILE_ERROR_NOT_EMPTY = -14,
- SYNC_FILE_ERROR_INVALID_URL = -15,
-
- // Database related errors.
- SYNC_DATABASE_ERROR_NOT_FOUND = -16,
- SYNC_DATABASE_ERROR_CORRUPTION = -17,
- SYNC_DATABASE_ERROR_IO_ERROR = -18,
- SYNC_DATABASE_ERROR_FAILED = -19,
-
- // Sync specific status code.
- SYNC_STATUS_FILE_BUSY = -100,
- SYNC_STATUS_HAS_CONFLICT = -101,
- SYNC_STATUS_NO_CONFLICT = -102,
- SYNC_STATUS_ABORT = -103,
- SYNC_STATUS_NO_CHANGE_TO_SYNC = -104,
- SYNC_STATUS_RETRY = -105,
- SYNC_STATUS_NETWORK_ERROR = -106,
- SYNC_STATUS_AUTHENTICATION_FAILED = -107,
- SYNC_STATUS_UNKNOWN_ORIGIN = -108,
- SYNC_STATUS_NOT_MODIFIED = -109,
- SYNC_STATUS_SYNC_DISABLED = -110,
-};
-
-WEBKIT_STORAGE_EXPORT std::string SyncStatusCodeToString(SyncStatusCode status);
-
-WEBKIT_STORAGE_EXPORT SyncStatusCode LevelDBStatusToSyncStatusCode(
- const leveldb::Status& status);
-
-WEBKIT_STORAGE_EXPORT SyncStatusCode PlatformFileErrorToSyncStatusCode(
- base::PlatformFileError file_error);
-
-} // namespace sync_file_system
-
-#endif // WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_
« no previous file with comments | « webkit/fileapi/syncable/sync_file_type.h ('k') | webkit/fileapi/syncable/sync_status_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698