| 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_SESSION_WIN_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_WIN_H_ |
| 6 #define REMOTING_HOST_DESKTOP_SESSION_WIN_H_ | 6 #define REMOTING_HOST_DESKTOP_SESSION_WIN_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 // Called when |session_attach_timer_| expires. | 76 // Called when |session_attach_timer_| expires. |
| 77 void OnSessionAttachTimeout(); | 77 void OnSessionAttachTimeout(); |
| 78 | 78 |
| 79 // Starts monitoring for session attach/detach events for |client_endpoint|. | 79 // Starts monitoring for session attach/detach events for |client_endpoint|. |
| 80 void StartMonitoring(const net::IPEndPoint& client_endpoint); | 80 void StartMonitoring(const net::IPEndPoint& client_endpoint); |
| 81 | 81 |
| 82 // Stops monitoring for session attach/detach events. | 82 // Stops monitoring for session attach/detach events. |
| 83 void StopMonitoring(); | 83 void StopMonitoring(); |
| 84 | 84 |
| 85 // Asks DaemonProcess to terminate this session. |
| 86 void TerminateSession(); |
| 87 |
| 85 // Injects a secure attention sequence into the session. | 88 // Injects a secure attention sequence into the session. |
| 86 virtual void InjectSas() = 0; | 89 virtual void InjectSas() = 0; |
| 87 | 90 |
| 88 // WorkerProcessIpcDelegate implementation. | 91 // WorkerProcessIpcDelegate implementation. |
| 89 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 92 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 90 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 93 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 91 virtual void OnPermanentError() OVERRIDE; | 94 virtual void OnPermanentError(int exit_code) OVERRIDE; |
| 92 | 95 |
| 93 // WtsTerminalObserver implementation. | 96 // WtsTerminalObserver implementation. |
| 94 virtual void OnSessionAttached(uint32 session_id) OVERRIDE; | 97 virtual void OnSessionAttached(uint32 session_id) OVERRIDE; |
| 95 virtual void OnSessionDetached() OVERRIDE; | 98 virtual void OnSessionDetached() OVERRIDE; |
| 96 | 99 |
| 97 private: | 100 private: |
| 98 // ChromotingDesktopDaemonMsg_DesktopAttached handler. | 101 // ChromotingDesktopDaemonMsg_DesktopAttached handler. |
| 99 void OnDesktopSessionAgentAttached(IPC::PlatformFileForTransit desktop_pipe); | 102 void OnDesktopSessionAgentAttached(IPC::PlatformFileForTransit desktop_pipe); |
| 100 | 103 |
| 101 // Requests the desktop process to crash. | 104 // Requests the desktop process to crash. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 127 base::OneShotTimer<DesktopSessionWin> session_attach_timer_; | 130 base::OneShotTimer<DesktopSessionWin> session_attach_timer_; |
| 128 | 131 |
| 129 base::Time last_timestamp_; | 132 base::Time last_timestamp_; |
| 130 | 133 |
| 131 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin); | 134 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin); |
| 132 }; | 135 }; |
| 133 | 136 |
| 134 } // namespace remoting | 137 } // namespace remoting |
| 135 | 138 |
| 136 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_ | 139 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_ |
| OLD | NEW |