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

Unified Diff: remoting/host/setup/native_messaging_host.h

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: Move constants and fix loops 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/native_messaging_host.h
diff --git a/remoting/host/setup/native_messaging_host.h b/remoting/host/setup/native_messaging_host.h
index 9c375ad56c7693631cb7cac3573b06b68e46aee3..08047ae792156de8698316e56d2989c3bddd7de6 100644
--- a/remoting/host/setup/native_messaging_host.h
+++ b/remoting/host/setup/native_messaging_host.h
@@ -25,6 +25,22 @@ namespace remoting {
// Implementation of the native messaging host process.
class NativeMessagingHost {
public:
+
+ // These names must match the enumeration key names in host_controller.js.
+ static const char kStateNotImplemented[];
+ static const char kStateNotInstalled[];
+ static const char kStateInstalling[];
+ static const char kStateStopped[];
+ static const char kStateStarting[];
+ static const char kStateStarted[];
+ static const char kStateStopping[];
+ static const char kStateUnknown[];
+
+ static const char kResultOk[];
+ static const char kResultFailed[];
+ static const char kResultCancelled[];
+ static const char kResultFailedDirectory[];
+
NativeMessagingHost(
scoped_ptr<DaemonController> daemon_controller,
base::PlatformFile input,

Powered by Google App Engine
This is Rietveld 408576698