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

Unified Diff: remoting/host/plugin/host_script_object.h

Issue 9316078: Added daemon process NPAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unused headers. Fixed Windows and Mac builds. Created 8 years, 11 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/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.

Powered by Google App Engine
This is Rietveld 408576698