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

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: CR feedback 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 side-by-side diff with in-line comments
Download patch
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..7d3e3b2626c48b3a6fb2b8f2f0637908614ec471 100644
--- a/remoting/host/win/host_service.h
+++ b/remoting/host/win/host_service.h
@@ -22,14 +22,12 @@ class SingleThreadTaskRunner;
namespace remoting {
-#if defined(REMOTING_MULTI_PROCESS)
-class DaemonProcess;
-#endif // defined(REMOTING_MULTI_PROCESS)
-
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 +55,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);

Powered by Google App Engine
This is Rietveld 408576698