| OLD | NEW |
| 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 #ifndef REMOTING_HOST_WIN_HOST_SERVICE_H_ | 5 #ifndef REMOTING_HOST_WIN_HOST_SERVICE_H_ |
| 6 #define REMOTING_HOST_WIN_HOST_SERVICE_H_ | 6 #define REMOTING_HOST_WIN_HOST_SERVICE_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 void OnChildStopped(); | 55 void OnChildStopped(); |
| 56 | 56 |
| 57 // Notifies the service of changes in session state. | 57 // Notifies the service of changes in session state. |
| 58 void OnSessionChange(); | 58 void OnSessionChange(); |
| 59 | 59 |
| 60 // This is a common entry point to the main service loop called by both | 60 // This is a common entry point to the main service loop called by both |
| 61 // RunAsService() and RunInConsole(). | 61 // RunAsService() and RunInConsole(). |
| 62 void RunMessageLoop(MessageLoop* message_loop); | 62 void RunMessageLoop(MessageLoop* message_loop); |
| 63 | 63 |
| 64 // Runs the binary specified by the command line, elevated. |
| 65 int Elevate(); |
| 66 |
| 64 // This function handshakes with the service control manager and starts | 67 // This function handshakes with the service control manager and starts |
| 65 // the service. | 68 // the service. |
| 66 int RunAsService(); | 69 int RunAsService(); |
| 67 | 70 |
| 68 // This function starts the service in interactive mode (i.e. as a plain | 71 // This function starts the service in interactive mode (i.e. as a plain |
| 69 // console application). | 72 // console application). |
| 70 int RunInConsole(); | 73 int RunInConsole(); |
| 71 | 74 |
| 72 static BOOL WINAPI ConsoleControlHandler(DWORD event); | 75 static BOOL WINAPI ConsoleControlHandler(DWORD event); |
| 73 | 76 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 111 |
| 109 // Singleton. | 112 // Singleton. |
| 110 friend struct DefaultSingletonTraits<HostService>; | 113 friend struct DefaultSingletonTraits<HostService>; |
| 111 | 114 |
| 112 DISALLOW_COPY_AND_ASSIGN(HostService); | 115 DISALLOW_COPY_AND_ASSIGN(HostService); |
| 113 }; | 116 }; |
| 114 | 117 |
| 115 } // namespace remoting | 118 } // namespace remoting |
| 116 | 119 |
| 117 #endif // REMOTING_HOST_WIN_HOST_SERVICE_H_ | 120 #endif // REMOTING_HOST_WIN_HOST_SERVICE_H_ |
| OLD | NEW |