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

Side by Side Diff: remoting/host/host_service_win.h

Issue 10048003: The Chromoting service should not start automatically unless it was configured from the webapp to d… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback Created 8 years, 8 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
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 #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 18 matching lines...) Expand all
29 // This function parses the command line and selects the action routine. 29 // This function parses the command line and selects the action routine.
30 bool InitWithCommandLine(const CommandLine* command_line); 30 bool InitWithCommandLine(const CommandLine* command_line);
31 31
32 // Invoke the choosen action routine. 32 // Invoke the choosen action routine.
33 int Run(); 33 int Run();
34 34
35 // WtsConsoleMonitor implementation 35 // WtsConsoleMonitor implementation
36 virtual void AddWtsConsoleObserver(WtsConsoleObserver* observer) OVERRIDE; 36 virtual void AddWtsConsoleObserver(WtsConsoleObserver* observer) OVERRIDE;
37 virtual void RemoveWtsConsoleObserver( 37 virtual void RemoveWtsConsoleObserver(
38 WtsConsoleObserver* observer) OVERRIDE; 38 WtsConsoleObserver* observer) OVERRIDE;
39 virtual void RequestRemoveWtsConsoleObserver(
40 WtsConsoleObserver* observer) OVERRIDE;
39 41
40 private: 42 private:
41 HostService(); 43 HostService();
42 ~HostService(); 44 ~HostService();
43 45
44 // Notifies the service of changes in session state. 46 // Notifies the service of changes in session state.
45 void OnSessionChange(); 47 void OnSessionChange();
46 48
47 // This routine registers the service with the service control manager. 49 // This routine registers the service with the service control manager.
48 int Install(); 50 int Install();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 93
92 // Service message loop. 94 // Service message loop.
93 MessageLoop* message_loop_; 95 MessageLoop* message_loop_;
94 96
95 // The action routine to be executed. 97 // The action routine to be executed.
96 int (HostService::*run_routine_)(); 98 int (HostService::*run_routine_)();
97 99
98 // The service name. 100 // The service name.
99 string16 service_name_; 101 string16 service_name_;
100 102
101 // The service status structure.
102 SERVICE_STATUS service_status_;
103
104 // The service status handle. 103 // The service status handle.
105 SERVICE_STATUS_HANDLE service_status_handle_; 104 SERVICE_STATUS_HANDLE service_status_handle_;
106 105
107 // True if the service is being stopped. 106 // True if the service is being stopped.
108 bool shutting_down_; 107 bool shutting_down_;
109 108
110 // A waitable event that is used to wait until the service is stopped. 109 // A waitable event that is used to wait until the service is stopped.
111 base::WaitableEvent stopped_event_; 110 base::WaitableEvent stopped_event_;
112 111
113 // Singleton. 112 // Singleton.
114 friend struct DefaultSingletonTraits<HostService>; 113 friend struct DefaultSingletonTraits<HostService>;
115 114
116 DISALLOW_COPY_AND_ASSIGN(HostService); 115 DISALLOW_COPY_AND_ASSIGN(HostService);
117 }; 116 };
118 117
119 } // namespace remoting 118 } // namespace remoting
120 119
121 #endif // REMOTING_HOST_HOST_SERVICE_WIN_H_ 120 #endif // REMOTING_HOST_HOST_SERVICE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698