OLD | NEW |
(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_ |
OLD | NEW |