Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
|
tim (not reviewing)
2012/01/06 16:33:42
2012
rlarocque
2012/01/06 19:44:21
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_ERROR_H_ | |
| 6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_ERROR_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 namespace browser_sync { | |
| 10 | |
| 11 enum SyncerError { | |
|
tim (not reviewing)
2012/01/06 16:33:42
Please add a comment above here describing what th
rlarocque
2012/01/06 19:44:21
Done.
| |
| 12 UNINITIALIZED = 0, // default value | |
|
tim (not reviewing)
2012/01/06 16:33:42
style nit - Comments must begin with a capital let
tim (not reviewing)
2012/01/06 16:33:42
Maybe INVALID? UNINITIALIZED seems ambiguous...
rlarocque
2012/01/06 19:44:21
The way I see it, there is a difference. INVALID
tim (not reviewing)
2012/01/06 20:07:13
Fair enough. Well, maybe "UNSET" or a synonym the
rlarocque
2012/01/06 21:25:34
Good point. I'll change it to UNSET.
| |
| 13 DIRECTORY_LOOKUP_FAILED, // local directory lookup failure | |
| 14 | |
| 15 NETWORK_CONNECTION_UNAVAILABLE, // connectivity failure | |
| 16 NETWORK_IO_ERROR, // response buffer read error | |
| 17 SYNC_SERVER_ERROR, // non auth HTTP error | |
| 18 SYNC_AUTH_ERROR, // HTTP auth error | |
| 19 | |
| 20 // Based on values returned by server. Most are defined in sync.proto. | |
| 21 SERVER_RETURN_INVALID_CREDENTIAL, | |
| 22 SERVER_RETURN_UNKNOWN_ERROR, | |
| 23 SERVER_RETURN_THROTTLED, | |
| 24 SERVER_RETURN_TRANSIENT_ERROR, | |
| 25 SERVER_RETURN_MIGRATION_DONE, | |
| 26 SERVER_RETURN_CLEAR_PENDING, | |
| 27 SERVER_RETURN_NOT_MY_BIRTHDAY, | |
| 28 SERVER_RESPONSE_VALIDATION_FAILED, | |
| 29 | |
| 30 NO_ERROR, | |
| 31 }; | |
| 32 | |
| 33 const char * GetSyncerErrorString(SyncerError); | |
| 34 | |
| 35 } // namespace browser_sync | |
| 36 | |
| 37 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_ERROR_H_ | |
| OLD | NEW |