Chromium Code Reviews| Index: remoting/host/daemon_process_win.cc |
| diff --git a/remoting/host/daemon_process_win.cc b/remoting/host/daemon_process_win.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..57fe163f06438cddc4f426343965b8c48bc92ccd |
| --- /dev/null |
| +++ b/remoting/host/daemon_process_win.cc |
| @@ -0,0 +1,51 @@ |
| +// 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. |
| + |
| +#include "remoting/host/daemon_process.h" |
| + |
| +#include "base/logging.h" |
| +#include "base/single_thread_task_runner.h" |
| + |
| +namespace { |
|
Sergey Ulanov
2012/07/30 19:50:04
nit: better to put this inside remoting namespace
alexeypa (please no reviews)
2012/07/30 21:50:03
Done.
|
| + |
| +class DaemonProcessWin : public remoting::DaemonProcess { |
| + public: |
| + DaemonProcessWin(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| + const Shutdownable::Callback& callback); |
| + virtual ~DaemonProcessWin(); |
| + |
| + // DaemonProcess implementation. |
| + virtual bool LaunchNetworkProcess() OVERRIDE; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(DaemonProcessWin); |
| +}; |
| + |
| +DaemonProcessWin::DaemonProcessWin( |
| + scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| + const Shutdownable::Callback& callback) |
| + : DaemonProcess(main_task_runner, callback) { |
| +} |
| + |
| +DaemonProcessWin::~DaemonProcessWin() { |
| +} |
| + |
| +bool DaemonProcessWin::LaunchNetworkProcess() { |
| + NOTIMPLEMENTED(); |
| + return false; |
| +} |
| + |
| +} // namespace |
| + |
| +namespace remoting { |
| + |
| +scoped_ptr<DaemonProcess> DaemonProcess::Create( |
| + scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| + const Shutdownable::Callback& callback) { |
| + scoped_ptr<DaemonProcessWin> daemon_process( |
| + new DaemonProcessWin(main_task_runner, callback)); |
| + return daemon_process.PassAs<DaemonProcess>(); |
| +} |
| + |
| +} // namespace remoting |