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

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

Issue 232223003: Windows chromoting host installation via the NPAPI plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittests Created 6 years, 8 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
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/host/setup/daemon_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/daemon_controller.h
diff --git a/remoting/host/setup/daemon_controller.h b/remoting/host/setup/daemon_controller.h
index e342299e03d82cacb7a7313cb72718d99560cebe..f757f787d2bf10273717c783ebc1526fcff21b94 100644
--- a/remoting/host/setup/daemon_controller.h
+++ b/remoting/host/setup/daemon_controller.h
@@ -121,6 +121,10 @@ class DaemonController : public base::RefCountedThreadSafe<DaemonController> {
// sensitive have been filtered out.
virtual scoped_ptr<base::DictionaryValue> GetConfig() = 0;
+ // Download and install the host component. |done| is invoked on the
+ // calling thread when the operation is completed.
+ virtual void InstallHost(const CompletionCallback& done) = 0;
+
// Starts the daemon process. This may require that the daemon be
// downloaded and installed. |done| is invoked on the calling thread when
// the operation is completed.
@@ -171,6 +175,10 @@ class DaemonController : public base::RefCountedThreadSafe<DaemonController> {
// sensitive have been filtered out.
void GetConfig(const GetConfigCallback& done);
+ // Download and install the host component. |done| is called when the
+ // operation is finished or fails.
+ void InstallHost(const CompletionCallback& done);
+
// Start the daemon process. This may require that the daemon be
// downloaded and installed. |done| is called when the
// operation is finished or fails.
@@ -216,6 +224,7 @@ class DaemonController : public base::RefCountedThreadSafe<DaemonController> {
// Blocking helper methods used to call the delegate.
void DoGetConfig(const GetConfigCallback& done);
+ void DoInstallHost(const CompletionCallback& done);
void DoSetConfigAndStart(scoped_ptr<base::DictionaryValue> config,
bool consent,
const CompletionCallback& done);
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/host/setup/daemon_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698