Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: remoting/protocol/errors.h

Issue 2026123002: [Chromoting] Use google:remoting namespace to export remoting specific error codes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/protocol/errors.cc » ('j') | remoting/protocol/errors.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | remoting/protocol/errors.cc » ('j') | remoting/protocol/errors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698