OLD | NEW |
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 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 #pragma once | |
8 | 7 |
9 namespace syncer { | 8 namespace syncer { |
10 | 9 |
11 // This enum describes all the ways a SyncerCommand can fail. | 10 // This enum describes all the ways a SyncerCommand can fail. |
12 // | 11 // |
13 // SyncerCommands do many different things, but they share a common function | 12 // SyncerCommands do many different things, but they share a common function |
14 // signature. This enum, the return value for all SyncerCommands, must be able | 13 // signature. This enum, the return value for all SyncerCommands, must be able |
15 // to describe any possible failure for all SyncerComand. | 14 // to describe any possible failure for all SyncerComand. |
16 // | 15 // |
17 // For convenience, functions which are invoked only by SyncerCommands may also | 16 // For convenience, functions which are invoked only by SyncerCommands may also |
(...skipping 19 matching lines...) Expand all Loading... |
37 SERVER_RESPONSE_VALIDATION_FAILED, | 36 SERVER_RESPONSE_VALIDATION_FAILED, |
38 | 37 |
39 SYNCER_OK | 38 SYNCER_OK |
40 }; | 39 }; |
41 | 40 |
42 const char * GetSyncerErrorString(SyncerError); | 41 const char * GetSyncerErrorString(SyncerError); |
43 | 42 |
44 } // namespace syncer | 43 } // namespace syncer |
45 | 44 |
46 #endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ | 45 #endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_ |
OLD | NEW |