Index: remoting/host/plugin/host_script_object.h |
diff --git a/remoting/host/plugin/host_script_object.h b/remoting/host/plugin/host_script_object.h |
index 83e7fcfbb8bf9291f537287d8c5229e39c444ffc..7e186322de30ca9a5eb8104001c22db92dda688f 100644 |
--- a/remoting/host/plugin/host_script_object.h |
+++ b/remoting/host/plugin/host_script_object.h |
@@ -31,6 +31,7 @@ |
namespace remoting { |
class ChromotingHost; |
+class DaemonNpapi; |
class DesktopEnvironment; |
class It2MeHostUserInterface; |
class MutableHostConfig; |
@@ -106,6 +107,15 @@ class HostNPScriptObject : public HostStatusObserver { |
// No result. |
bool Localize(const NPVariant* args, uint32_t argCount, NPVariant* result); |
+ // Start the daemon process or change the PIN if it is running. Args are: |
+ // string pin |
Sergey Ulanov
2012/02/02 23:41:24
We'll probably need a bunch of other parameters be
Jamie
2012/02/03 00:47:41
I think I'd rather add these as needed in a more s
|
+ // No result. |
+ bool StartDaemon(const NPVariant* args, uint32_t argCount, NPVariant* result); |
+ |
+ // Start the daemon process or change the PIN if it is running. No arguments |
+ // or result. |
+ bool StopDaemon(const NPVariant* args, uint32_t argCount, NPVariant* result); |
+ |
// Updates state of the host. Can be called only on the main thread. |
void SetState(State state); |
@@ -192,6 +202,8 @@ class HostNPScriptObject : public HostStatusObserver { |
UiStrings ui_strings_; |
base::Lock ui_strings_lock_; |
+ scoped_ptr<DaemonNpapi> daemon_npapi_; |
+ |
base::WaitableEvent disconnected_event_; |
// True if we're in the middle of handling a log message. |