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

Unified Diff: remoting/host/win/host_service.h

Issue 10829467: [Chromoting] Introducing refcount-based life time management of the message loops in the service (d… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 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/simple_host_process.cc ('k') | remoting/host/win/host_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/host_service.h
diff --git a/remoting/host/win/host_service.h b/remoting/host/win/host_service.h
index 9533f02d779b46d58f579b57f1e63f6980653668..80bbc90c5b1df3dabb1feb75359c3d80784c801b 100644
--- a/remoting/host/win/host_service.h
+++ b/remoting/host/win/host_service.h
@@ -22,14 +22,13 @@ class SingleThreadTaskRunner;
namespace remoting {
-#if defined(REMOTING_MULTI_PROCESS)
-class DaemonProcess;
-#endif // defined(REMOTING_MULTI_PROCESS)
-
+class AutoThreadTaskRunner;
class Stoppable;
class WtsConsoleObserver;
-#if !defined(REMOTING_MULTI_PROCESS)
+#if defined(REMOTING_MULTI_PROCESS)
+class DaemonProcess;
+#else // !defined(REMOTING_MULTI_PROCESS)
class WtsSessionProcessLauncher;
#endif // !defined(REMOTING_MULTI_PROCESS)
@@ -57,6 +56,10 @@ class HostService : public WtsConsoleMonitor {
// Notifies the service of changes in session state.
void OnSessionChange();
+ // Creates the process launcher.
+ void CreateLauncher(
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner);
+
// This is a common entry point to the main service loop called by both
// RunAsService() and RunInConsole().
void RunMessageLoop(MessageLoop* message_loop);
@@ -98,7 +101,7 @@ class HostService : public WtsConsoleMonitor {
scoped_ptr<Stoppable> child_;
// Service message loop.
- scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
+ scoped_refptr<AutoThreadTaskRunner> main_task_runner_;
// The action routine to be executed.
int (HostService::*run_routine_)();
« no previous file with comments | « remoting/host/simple_host_process.cc ('k') | remoting/host/win/host_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698