| 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_
|
|
|