OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 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 { |
| 12 UNINITIALIZED = 0, // default value |
| 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 |