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

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

Powered by Google App Engine
This is Rietveld 408576698