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

Side by Side 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 DEPS. Removed VERSION. Cosmetic. Rebased. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_DAEMON_INSTALLER_WIN_H_
6 #define REMOTING_HOST_DAEMON_INSTALLER_WIN_H_
7
8 #include <objbase.h>
9
10 #include "base/basictypes.h"
11 #include "base/callback_forward.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "remoting/host/plugin/daemon_controller.h"
14
15 namespace remoting {
16
17 class DaemonInstallerWin {
18 public:
19 virtual ~DaemonInstallerWin();
20
21 typedef base::Callback<void (HRESULT result)> CompletionCallback;
22
23 // Initiates download and installation of the Chromoting Host. |done|
24 // is invoked once installation completes successfully or fails for any
25 // reason. |self| is passed to keep a reference to itself while installation
26 // is in progress.
27 virtual void Install(const CompletionCallback& done) = 0;
28
29 // Creates an instance of the Chromoting Host installer.
30 static HRESULT Create(scoped_ptr<DaemonInstallerWin>* installer_out);
31
32 protected:
33 DaemonInstallerWin();
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(DaemonInstallerWin);
37 };
38
39 } // namespace remoting
40
41 #endif // REMOTING_HOST_DAEMON_INSTALLER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698