| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ | 5 #ifndef TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ |
| 6 #define TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ | 6 #define TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ |
| 7 | 7 |
| 8 namespace battor { | 8 namespace battor { |
| 9 | 9 |
| 10 // A BattOrError is an error that occurs when communicating with a BattOr. | 10 // A BattOrError is an error that occurs when communicating with a BattOr. |
| 11 enum BattOrError { | 11 enum BattOrError { |
| 12 BATTOR_ERROR_NONE, | 12 BATTOR_ERROR_NONE = 0, |
| 13 BATTOR_ERROR_CONNECTION_FAILED, | 13 BATTOR_ERROR_CONNECTION_FAILED = 1, |
| 14 BATTOR_ERROR_TIMEOUT, | 14 BATTOR_ERROR_TIMEOUT = 2, |
| 15 BATTOR_ERROR_SEND_ERROR = 3, |
| 16 BATTOR_ERROR_RECEIVE_ERROR = 4, |
| 17 BATTOR_ERROR_UNEXPECTED_MESSAGE = 5, |
| 15 }; | 18 }; |
| 16 | |
| 17 } | 19 } |
| 18 | 20 |
| 19 #endif // TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ | 21 #endif // TOOLS_BATTOR_AGENT_BATTOR_ERROR_H_ |
| OLD | NEW |