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

Side by Side 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, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 {
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.
11
12 class DaemonProcessWin : public remoting::DaemonProcess {
13 public:
14 DaemonProcessWin(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
15 const Shutdownable::Callback& 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 Shutdownable::Callback& callback)
28 : DaemonProcess(main_task_runner, callback) {
29 }
30
31 DaemonProcessWin::~DaemonProcessWin() {
32 }
33
34 bool DaemonProcessWin::LaunchNetworkProcess() {
35 NOTIMPLEMENTED();
36 return false;
37 }
38
39 } // namespace
40
41 namespace remoting {
42
43 scoped_ptr<DaemonProcess> DaemonProcess::Create(
44 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
45 const Shutdownable::Callback& callback) {
46 scoped_ptr<DaemonProcessWin> daemon_process(
47 new DaemonProcessWin(main_task_runner, callback));
48 return daemon_process.PassAs<DaemonProcess>();
49 }
50
51 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698