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_DESKTOP_PROCESS_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_PROCESS_H_ |
6 #define REMOTING_HOST_DESKTOP_PROCESS_H_ | 6 #define REMOTING_HOST_DESKTOP_PROCESS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void OnNetworkProcessDisconnected() override; | 44 void OnNetworkProcessDisconnected() override; |
45 | 45 |
46 // IPC::Listener implementation. | 46 // IPC::Listener implementation. |
47 bool OnMessageReceived(const IPC::Message& message) override; | 47 bool OnMessageReceived(const IPC::Message& message) override; |
48 void OnChannelConnected(int32_t peer_pid) override; | 48 void OnChannelConnected(int32_t peer_pid) override; |
49 void OnChannelError() override; | 49 void OnChannelError() override; |
50 | 50 |
51 // Injects Secure Attention Sequence. | 51 // Injects Secure Attention Sequence. |
52 void InjectSas(); | 52 void InjectSas(); |
53 | 53 |
| 54 // Locks the workstation for the current session. |
| 55 void LockWorkStation(); |
| 56 |
54 // Creates the desktop agent and required threads and IPC channels. Returns | 57 // Creates the desktop agent and required threads and IPC channels. Returns |
55 // true on success. | 58 // true on success. |
56 bool Start( | 59 bool Start( |
57 std::unique_ptr<DesktopEnvironmentFactory> desktop_environment_factory); | 60 std::unique_ptr<DesktopEnvironmentFactory> desktop_environment_factory); |
58 | 61 |
59 private: | 62 private: |
60 // Crashes the process in response to a daemon's request. The daemon passes | 63 // Crashes the process in response to a daemon's request. The daemon passes |
61 // the location of the code that detected the fatal error resulted in this | 64 // the location of the code that detected the fatal error resulted in this |
62 // request. See the declaration of ChromotingDaemonMsg_Crash message. | 65 // request. See the declaration of ChromotingDaemonMsg_Crash message. |
63 void OnCrash(const std::string& function_name, | 66 void OnCrash(const std::string& function_name, |
(...skipping 19 matching lines...) Expand all Loading... |
83 // Provides screen/audio capturing and input injection services for | 86 // Provides screen/audio capturing and input injection services for |
84 // the network process. | 87 // the network process. |
85 scoped_refptr<DesktopSessionAgent> desktop_agent_; | 88 scoped_refptr<DesktopSessionAgent> desktop_agent_; |
86 | 89 |
87 DISALLOW_COPY_AND_ASSIGN(DesktopProcess); | 90 DISALLOW_COPY_AND_ASSIGN(DesktopProcess); |
88 }; | 91 }; |
89 | 92 |
90 } // namespace remoting | 93 } // namespace remoting |
91 | 94 |
92 #endif // REMOTING_HOST_DESKTOP_PROCESS_H_ | 95 #endif // REMOTING_HOST_DESKTOP_PROCESS_H_ |
OLD | NEW |