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 #include "remoting/host/daemon_process.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "base/single_thread_task_runner.h" |
| 9 |
| 10 namespace remoting { |
| 11 |
| 12 class DaemonProcessWin : public DaemonProcess { |
| 13 public: |
| 14 DaemonProcessWin(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 15 const base::Closure& stopped_callback); |
| 16 virtual ~DaemonProcessWin(); |
| 17 |
| 18 // DaemonProcess implementation. |
| 19 virtual bool LaunchNetworkProcess() OVERRIDE; |
| 20 |
| 21 private: |
| 22 DISALLOW_COPY_AND_ASSIGN(DaemonProcessWin); |
| 23 }; |
| 24 |
| 25 DaemonProcessWin::DaemonProcessWin( |
| 26 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 27 const base::Closure& stopped_callback) |
| 28 : DaemonProcess(main_task_runner, stopped_callback) { |
| 29 } |
| 30 |
| 31 DaemonProcessWin::~DaemonProcessWin() { |
| 32 } |
| 33 |
| 34 bool DaemonProcessWin::LaunchNetworkProcess() { |
| 35 NOTIMPLEMENTED(); |
| 36 return false; |
| 37 } |
| 38 |
| 39 scoped_ptr<DaemonProcess> DaemonProcess::Create( |
| 40 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 41 const base::Closure& stopped_callback) { |
| 42 scoped_ptr<DaemonProcessWin> daemon_process( |
| 43 new DaemonProcessWin(main_task_runner, stopped_callback)); |
| 44 return daemon_process.PassAs<DaemonProcess>(); |
| 45 } |
| 46 |
| 47 } // namespace remoting |
OLD | NEW |