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

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

Issue 10021003: Implemented on-demand installation of the Chromoting Host on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed errors. Created 8 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/plugin/daemon_installer_win.h
diff --git a/remoting/host/plugin/daemon_installer_win.h b/remoting/host/plugin/daemon_installer_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a7286d2ba83887b60dd4fb88c2d81c2b41ba0cc
--- /dev/null
+++ b/remoting/host/plugin/daemon_installer_win.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_DAEMON_INSTALLER_WIN_H_
+#define REMOTING_HOST_DAEMON_INSTALLER_WIN_H_
+
+#include <objbase.h>
+
+#include "base/basictypes.h"
+#include "base/callback_forward.h"
+#include "base/memory/scoped_ptr.h"
+#include "remoting/host/plugin/daemon_controller.h"
+
+namespace remoting {
+
+class DaemonInstallerWin {
+ public:
+ virtual ~DaemonInstallerWin();
+
+ typedef base::Callback<void (HRESULT result)> CompletionCallback;
+
+ // Initiates download and installation of the Chromoting Host. |done|
+ // is invoked once installation completes successfully or fails for any
+ // reason. |self| is passed to keep a reference to itself while installation
+ // is in progress.
+ virtual void Install(const CompletionCallback& done) = 0;
+
+ // Creates an instance of the Chromoting Host installer.
+ static HRESULT Create(scoped_ptr<DaemonInstallerWin>* installer_out);
+
+ protected:
+ DaemonInstallerWin();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DaemonInstallerWin);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_DAEMON_INSTALLER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698