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

Side by Side Diff: remoting/host/daemon_process_win.cc

Issue 10837292: [Chromoting] Moving the I/O thread out of DaemonProcess (so it can be shared if needed). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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
« no previous file with comments | « remoting/host/daemon_process.cc ('k') | remoting/host/win/host_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/daemon_process.h" 5 #include "remoting/host/daemon_process.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/win/scoped_handle.h" 9 #include "base/win/scoped_handle.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 class DaemonProcessWin : public DaemonProcess { 13 class DaemonProcessWin : public DaemonProcess {
14 public: 14 public:
15 DaemonProcessWin(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 15 DaemonProcessWin(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
16 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
16 const base::Closure& stopped_callback); 17 const base::Closure& stopped_callback);
17 virtual ~DaemonProcessWin(); 18 virtual ~DaemonProcessWin();
18 19
19 // DaemonProcess implementation. 20 // DaemonProcess implementation.
20 virtual bool LaunchNetworkProcess() OVERRIDE; 21 virtual bool LaunchNetworkProcess() OVERRIDE;
21 22
22 private: 23 private:
23 DISALLOW_COPY_AND_ASSIGN(DaemonProcessWin); 24 DISALLOW_COPY_AND_ASSIGN(DaemonProcessWin);
24 }; 25 };
25 26
26 DaemonProcessWin::DaemonProcessWin( 27 DaemonProcessWin::DaemonProcessWin(
27 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 28 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
29 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
28 const base::Closure& stopped_callback) 30 const base::Closure& stopped_callback)
29 : DaemonProcess(main_task_runner, stopped_callback) { 31 : DaemonProcess(main_task_runner, io_task_runner, stopped_callback) {
30 } 32 }
31 33
32 DaemonProcessWin::~DaemonProcessWin() { 34 DaemonProcessWin::~DaemonProcessWin() {
33 } 35 }
34 36
35 bool DaemonProcessWin::LaunchNetworkProcess() { 37 bool DaemonProcessWin::LaunchNetworkProcess() {
36 NOTIMPLEMENTED(); 38 NOTIMPLEMENTED();
37 return false; 39 return false;
38 } 40 }
39 41
40 scoped_ptr<DaemonProcess> DaemonProcess::Create( 42 scoped_ptr<DaemonProcess> DaemonProcess::Create(
41 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 43 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
44 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
42 const base::Closure& stopped_callback) { 45 const base::Closure& stopped_callback) {
43 scoped_ptr<DaemonProcessWin> daemon_process( 46 scoped_ptr<DaemonProcessWin> daemon_process(
44 new DaemonProcessWin(main_task_runner, stopped_callback)); 47 new DaemonProcessWin(main_task_runner, io_task_runner, stopped_callback));
45 return daemon_process.PassAs<DaemonProcess>(); 48 return daemon_process.PassAs<DaemonProcess>();
46 } 49 }
47 50
48 } // namespace remoting 51 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/daemon_process.cc ('k') | remoting/host/win/host_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698