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

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

Issue 232223003: Windows chromoting host installation via the NPAPI plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment 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
Index: remoting/host/setup/daemon_controller.cc
diff --git a/remoting/host/setup/daemon_controller.cc b/remoting/host/setup/daemon_controller.cc
index 2befd413310c1237abbce8453018eb20a78406c0..dd0b1d99afbd9126e1d68bce566f52bf22640b8d 100644
--- a/remoting/host/setup/daemon_controller.cc
+++ b/remoting/host/setup/daemon_controller.cc
@@ -47,6 +47,16 @@ void DaemonController::GetConfig(const GetConfigCallback& done) {
ServiceOrQueueRequest(request);
}
+void DaemonController::InstallHost(const CompletionCallback& done) {
+ DCHECK(caller_task_runner_->BelongsToCurrentThread());
+
+ DaemonController::CompletionCallback wrapped_done = base::Bind(
+ &DaemonController::InvokeCompletionCallbackAndScheduleNext, this, done);
+ base::Closure request = base::Bind(
+ &DaemonController::DoInstallHost, this, wrapped_done);
+ ServiceOrQueueRequest(request);
+}
+
void DaemonController::SetConfigAndStart(
scoped_ptr<base::DictionaryValue> config,
bool consent,
@@ -130,6 +140,12 @@ void DaemonController::DoGetConfig(const GetConfigCallback& done) {
base::Bind(done, base::Passed(&config)));
}
+void DaemonController::DoInstallHost(const CompletionCallback& done) {
+ DCHECK(delegate_task_runner_->BelongsToCurrentThread());
+
+ delegate_->InstallHost(done);
+}
+
void DaemonController::DoSetConfigAndStart(
scoped_ptr<base::DictionaryValue> config,
bool consent,

Powered by Google App Engine
This is Rietveld 408576698