summaryrefslogtreecommitdiffstats
path: root/remoting/host/daemon_process_win.cc
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 01:28:58 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 01:28:58 +0000
commit16480f78f7c2eff9b1642eb2270f55f898ce1f63 (patch)
tree5587a6edb30c6b0ff95cd6bca5d940d0269e8215 /remoting/host/daemon_process_win.cc
parent4d82fad47f12bf876135494e1e353b41f558ba02 (diff)
downloadchromium_src-16480f78f7c2eff9b1642eb2270f55f898ce1f63.zip
chromium_src-16480f78f7c2eff9b1642eb2270f55f898ce1f63.tar.gz
chromium_src-16480f78f7c2eff9b1642eb2270f55f898ce1f63.tar.bz2
Introducing the DaemonProcess class that will implements core of the daemon process functionality. It will manage the networking process running at lower privileges and maintains the list of virtual terminals.
BUG=134694 Review URL: https://chromiumcodereview.appspot.com/10823062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/daemon_process_win.cc')
-rw-r--r--remoting/host/daemon_process_win.cc47
1 files changed, 47 insertions, 0 deletions
diff --git a/remoting/host/daemon_process_win.cc b/remoting/host/daemon_process_win.cc
new file mode 100644
index 0000000..3a54e57
--- /dev/null
+++ b/remoting/host/daemon_process_win.cc
@@ -0,0 +1,47 @@
+// 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 remoting {
+
+class DaemonProcessWin : public DaemonProcess {
+ public:
+ DaemonProcessWin(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
+ const base::Closure& stopped_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 base::Closure& stopped_callback)
+ : DaemonProcess(main_task_runner, stopped_callback) {
+}
+
+DaemonProcessWin::~DaemonProcessWin() {
+}
+
+bool DaemonProcessWin::LaunchNetworkProcess() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+scoped_ptr<DaemonProcess> DaemonProcess::Create(
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
+ const base::Closure& stopped_callback) {
+ scoped_ptr<DaemonProcessWin> daemon_process(
+ new DaemonProcessWin(main_task_runner, stopped_callback));
+ return daemon_process.PassAs<DaemonProcess>();
+}
+
+} // namespace remoting