| 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_HOST_SERVICE_WIN_H_ | 5 #ifndef REMOTING_HOST_HOST_SERVICE_WIN_H_ |
| 6 #define REMOTING_HOST_HOST_SERVICE_WIN_H_ | 6 #define REMOTING_HOST_HOST_SERVICE_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // Service message loop. | 92 // Service message loop. |
| 93 MessageLoop* message_loop_; | 93 MessageLoop* message_loop_; |
| 94 | 94 |
| 95 // The action routine to be executed. | 95 // The action routine to be executed. |
| 96 int (HostService::*run_routine_)(); | 96 int (HostService::*run_routine_)(); |
| 97 | 97 |
| 98 // The service name. | 98 // The service name. |
| 99 string16 service_name_; | 99 string16 service_name_; |
| 100 | 100 |
| 101 // The service status structure. | |
| 102 SERVICE_STATUS service_status_; | |
| 103 | |
| 104 // The service status handle. | 101 // The service status handle. |
| 105 SERVICE_STATUS_HANDLE service_status_handle_; | 102 SERVICE_STATUS_HANDLE service_status_handle_; |
| 106 | 103 |
| 107 // True if the service is being stopped. | 104 // True if the service is being stopped. |
| 108 bool shutting_down_; | 105 bool shutting_down_; |
| 109 | 106 |
| 110 // A waitable event that is used to wait until the service is stopped. | 107 // A waitable event that is used to wait until the service is stopped. |
| 111 base::WaitableEvent stopped_event_; | 108 base::WaitableEvent stopped_event_; |
| 112 | 109 |
| 113 // Singleton. | 110 // Singleton. |
| 114 friend struct DefaultSingletonTraits<HostService>; | 111 friend struct DefaultSingletonTraits<HostService>; |
| 115 | 112 |
| 116 DISALLOW_COPY_AND_ASSIGN(HostService); | 113 DISALLOW_COPY_AND_ASSIGN(HostService); |
| 117 }; | 114 }; |
| 118 | 115 |
| 119 } // namespace remoting | 116 } // namespace remoting |
| 120 | 117 |
| 121 #endif // REMOTING_HOST_HOST_SERVICE_WIN_H_ | 118 #endif // REMOTING_HOST_HOST_SERVICE_WIN_H_ |
| OLD | NEW |