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

Side by Side Diff: webkit/fileapi/syncable/sync_status_code.h

Issue 11235027: Wire up Syncable operation runner to the local file sync context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased on top of http://codereview.chromium.org/11238054/ Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_ 5 #ifndef WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_
6 #define WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_ 6 #define WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_
7 7
8 #include "webkit/storage/webkit_storage_export.h" 8 #include "webkit/storage/webkit_storage_export.h"
9 9
10 namespace leveldb { 10 namespace leveldb {
(...skipping 21 matching lines...) Expand all
32 SYNC_FILE_ERROR_ABORT = -12, 32 SYNC_FILE_ERROR_ABORT = -12,
33 SYNC_FILE_ERROR_NOT_A_FILE = -13, 33 SYNC_FILE_ERROR_NOT_A_FILE = -13,
34 SYNC_FILE_ERROR_NOT_EMPTY = -14, 34 SYNC_FILE_ERROR_NOT_EMPTY = -14,
35 SYNC_FILE_ERROR_INVALID_URL = -15, 35 SYNC_FILE_ERROR_INVALID_URL = -15,
36 36
37 // Database related errors. 37 // Database related errors.
38 SYNC_DATABASE_ERROR_NOT_FOUND = -16, 38 SYNC_DATABASE_ERROR_NOT_FOUND = -16,
39 SYNC_DATABASE_ERROR_CORRUPTION = -17, 39 SYNC_DATABASE_ERROR_CORRUPTION = -17,
40 SYNC_DATABASE_ERROR_IO_ERROR = -18, 40 SYNC_DATABASE_ERROR_IO_ERROR = -18,
41 SYNC_DATABASE_ERROR_FAILED = -19, 41 SYNC_DATABASE_ERROR_FAILED = -19,
42
43 // Sync specific status code.
44 SYNC_STATUS_ABORT = -100,
45 SYNC_STATUS_FILE_BUSY = -101,
46 SYNC_STATUS_HAS_CONFLICT = -102,
47 SYNC_STATUS_NOT_A_CONFLICT = -103,
42 }; 48 };
43 49
44 WEBKIT_STORAGE_EXPORT SyncStatusCode LevelDBStatusToSyncStatusCode( 50 WEBKIT_STORAGE_EXPORT SyncStatusCode LevelDBStatusToSyncStatusCode(
45 const leveldb::Status& status); 51 const leveldb::Status& status);
46 52
47 } // namespace fileapi 53 } // namespace fileapi
48 54
49 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_ 55 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNC_STATUS_CODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698