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

Unified Diff: remoting/host/setup/daemon_controller.cc

Issue 16236008: Send enums as strings between Chromoting Native Messaging host and web-app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: remoting/host/setup/daemon_controller.cc
diff --git a/remoting/host/setup/daemon_controller.cc b/remoting/host/setup/daemon_controller.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8094505e83c2facb42f353276d77558e03898da6
--- /dev/null
+++ b/remoting/host/setup/daemon_controller.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2013 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.
+
+#include "daemon_controller.h"
+
+namespace remoting {
+
+const char DaemonController::kStateNotImplemented[] = "NOT_IMPLEMENTED";
+const char DaemonController::kStateNotInstalled[] = "NOT_INSTALLED";
+const char DaemonController::kStateInstalling[] = "INSTALLING";
+const char DaemonController::kStateStopped[] = "STOPPED";
+const char DaemonController::kStateStarting[] = "STARTING";
+const char DaemonController::kStateStarted[] = "STARTED";
+const char DaemonController::kStateStopping[] = "STOPPING";
+const char DaemonController::kStateUnknown[] = "UNKNOWN";
+
+const char DaemonController::kResultOk[] = "OK";
+const char DaemonController::kResultFailed[] = "FAILED";
+const char DaemonController::kResultCancelled[] = "CANCELLED";
+const char DaemonController::kResultFailedDirectory[] = "FAILED_DIRECTORY";
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698