OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ |
7 | 7 |
8 #include "sync/base/sync_export.h" | 8 #include "sync/base/sync_export.h" |
9 | 9 |
10 namespace syncer { | 10 namespace syncer { |
(...skipping 13 matching lines...) Expand all Loading... |
24 SERVER_RETURN_UNKNOWN_ERROR, | 24 SERVER_RETURN_UNKNOWN_ERROR, |
25 SERVER_RETURN_THROTTLED, | 25 SERVER_RETURN_THROTTLED, |
26 SERVER_RETURN_TRANSIENT_ERROR, | 26 SERVER_RETURN_TRANSIENT_ERROR, |
27 SERVER_RETURN_MIGRATION_DONE, | 27 SERVER_RETURN_MIGRATION_DONE, |
28 SERVER_RETURN_CLEAR_PENDING, | 28 SERVER_RETURN_CLEAR_PENDING, |
29 SERVER_RETURN_NOT_MY_BIRTHDAY, | 29 SERVER_RETURN_NOT_MY_BIRTHDAY, |
30 SERVER_RETURN_CONFLICT, | 30 SERVER_RETURN_CONFLICT, |
31 SERVER_RESPONSE_VALIDATION_FAILED, | 31 SERVER_RESPONSE_VALIDATION_FAILED, |
32 SERVER_RETURN_DISABLED_BY_ADMIN, | 32 SERVER_RETURN_DISABLED_BY_ADMIN, |
33 | 33 |
| 34 // A datatype decided the sync cycle needed to be performed again. |
| 35 DATATYPE_TRIGGERED_RETRY, |
| 36 |
34 SERVER_MORE_TO_DOWNLOAD, | 37 SERVER_MORE_TO_DOWNLOAD, |
35 | 38 |
36 SYNCER_OK | 39 SYNCER_OK |
37 }; | 40 }; |
38 | 41 |
39 SYNC_EXPORT const char* GetSyncerErrorString(SyncerError); | 42 SYNC_EXPORT const char* GetSyncerErrorString(SyncerError); |
40 | 43 |
41 // Helper to check that |error| is set to something (not UNSET) and is not | 44 // Helper to check that |error| is set to something (not UNSET) and is not |
42 // SYNCER_OK. | 45 // SYNCER_OK. |
43 bool SyncerErrorIsError(SyncerError error); | 46 bool SyncerErrorIsError(SyncerError error); |
44 | 47 |
45 } // namespace syncer | 48 } // namespace syncer |
46 | 49 |
47 #endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ | 50 #endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ |
OLD | NEW |