Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1221)

Unified Diff: remoting/host/daemon_process_win.cc

Issue 10823062: Introducing the DaemonProcess class that will implements core of the daemon process functionality. … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/daemon_process.cc ('k') | remoting/host/win/host_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3a54e57d5781cbcd8894fdc948a12ffef3d331ea
--- /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
« no previous file with comments | « remoting/host/daemon_process.cc ('k') | remoting/host/win/host_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698