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

Side by Side Diff: remoting/host/setup/daemon_controller.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: Address comments Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/setup/native_messaging_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_SETUP_DAEMON_CONTROLLER_H_ 5 #ifndef REMOTING_HOST_SETUP_DAEMON_CONTROLLER_H_
6 #define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_H_ 6 #define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 12
13 namespace base { 13 namespace base {
14 class DictionaryValue; 14 class DictionaryValue;
15 } // namespace base 15 } // namespace base
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 class DaemonController { 19 class DaemonController {
20 public: 20 public:
21 // Note that these enumeration values are duplicated in daemon_plugin.js and 21 // Note that these enumeration values are duplicated in host_controller.js and
22 // must be kept in sync. 22 // must be kept in sync.
23 enum State { 23 enum State {
24 // Placeholder state for platforms on which the daemon process is not 24 // Placeholder state for platforms on which the daemon process is not
25 // implemented. The web-app will not show the corresponding UI. This value 25 // implemented. The web-app will not show the corresponding UI. This value
26 // will eventually be deprecated or removed. 26 // will eventually be deprecated or removed.
27 STATE_NOT_IMPLEMENTED = -1, 27 STATE_NOT_IMPLEMENTED = -1,
28 // The daemon is not installed. This is functionally equivalent to 28 // The daemon is not installed. This is functionally equivalent to
29 // STATE_STOPPED, but the start method is expected to be significantly 29 // STATE_STOPPED, but the start method is expected to be significantly
30 // slower, and might involve user interaction. It might be appropriate to 30 // slower, and might involve user interaction. It might be appropriate to
31 // indicate this in the UI. 31 // indicate this in the UI.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Get the user's consent to crash reporting. 142 // Get the user's consent to crash reporting.
143 virtual void GetUsageStatsConsent( 143 virtual void GetUsageStatsConsent(
144 const GetUsageStatsConsentCallback& done) = 0; 144 const GetUsageStatsConsentCallback& done) = 0;
145 145
146 static scoped_ptr<DaemonController> Create(); 146 static scoped_ptr<DaemonController> Create();
147 }; 147 };
148 148
149 } // namespace remoting 149 } // namespace remoting
150 150
151 #endif // REMOTING_HOST_SETUP_DAEMON_CONTROLLER_H_ 151 #endif // REMOTING_HOST_SETUP_DAEMON_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/setup/native_messaging_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698