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

Unified Diff: remoting/host/constants.h

Issue 10106013: Chromoting: stopping the service if the host ID is permanently not recognized by the could. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feeback. Rebased. Created 8 years, 8 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/host/heartbeat_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/constants.h
diff --git a/remoting/host/constants.h b/remoting/host/constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..6f36b94e86c9caa4c95988140cee9ba9ccfc1b81
--- /dev/null
+++ b/remoting/host/constants.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_CONSTANTS_H_
+#define REMOTING_HOST_CONSTANTS_H_
+
+namespace remoting {
+
+// Known host exit codes.
+enum HostExitCodes {
+ kSuccessExitCode = 0,
+ kReservedForX11ExitCode = 1,
+ kInvalidHostConfigurationExitCode = 2,
+ kInvalidHostIdExitCode = 3,
+ kInvalidOauthCredentialsExitCode = 4,
+
+ // The range of the exit codes that should be interpreted as a permanent error
+ // condition.
+ kMinPermanentErrorExitCode = kInvalidHostConfigurationExitCode,
+ kMaxPermanentErrorExitCode = kInvalidOauthCredentialsExitCode
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_CONSTANTS_H_
« no previous file with comments | « no previous file | remoting/host/heartbeat_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698