Chromium Code Reviews| Index: remoting/protocol/errors.h |
| diff --git a/remoting/protocol/errors.h b/remoting/protocol/errors.h |
| index da9db8aa264762d60130eb6004b5cd521eff7c00..e13e710686b03586d5eda543cecf91427917e110 100644 |
| --- a/remoting/protocol/errors.h |
| +++ b/remoting/protocol/errors.h |
| @@ -5,6 +5,8 @@ |
| #ifndef REMOTING_PROTOCOL_ERROR_H_ |
| #define REMOTING_PROTOCOL_ERROR_H_ |
| +#include "remoting/protocol/name_value_map.h" |
| + |
| namespace remoting { |
| namespace protocol { |
| @@ -30,6 +32,8 @@ enum ErrorCode { |
| ERROR_CODE_MAX = UNKNOWN_ERROR, |
| }; |
| +extern const NameMapElement<ErrorCode> kErrorCodes[ERROR_CODE_MAX + 1]; |
|
Sergey Ulanov
2016/06/02 09:26:03
Please don't expose this here. Instead add ParseEr
Hzj_jie
2016/06/02 22:00:18
Done.
|
| + |
| // Returns the literal string of |error|. |
| const char* ErrorCodeToString(ErrorCode error); |