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 <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
10 #include "base/time/time.h" | 13 #include "base/time/time.h" |
11 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
12 #include "base/win/scoped_handle.h" | 15 #include "base/win/scoped_handle.h" |
13 #include "ipc/ipc_platform_file.h" | 16 #include "ipc/ipc_platform_file.h" |
14 #include "remoting/host/desktop_session.h" | 17 #include "remoting/host/desktop_session.h" |
15 #include "remoting/host/win/wts_terminal_observer.h" | 18 #include "remoting/host/win/wts_terminal_observer.h" |
16 #include "remoting/host/worker_process_ipc_delegate.h" | 19 #include "remoting/host/worker_process_ipc_delegate.h" |
17 | 20 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Stops monitoring for session attach/detach events. | 81 // Stops monitoring for session attach/detach events. |
79 void StopMonitoring(); | 82 void StopMonitoring(); |
80 | 83 |
81 // Asks DaemonProcess to terminate this session. | 84 // Asks DaemonProcess to terminate this session. |
82 void TerminateSession(); | 85 void TerminateSession(); |
83 | 86 |
84 // Injects a secure attention sequence into the session. | 87 // Injects a secure attention sequence into the session. |
85 virtual void InjectSas() = 0; | 88 virtual void InjectSas() = 0; |
86 | 89 |
87 // WorkerProcessIpcDelegate implementation. | 90 // WorkerProcessIpcDelegate implementation. |
88 void OnChannelConnected(int32 peer_pid) override; | 91 void OnChannelConnected(int32_t peer_pid) override; |
89 bool OnMessageReceived(const IPC::Message& message) override; | 92 bool OnMessageReceived(const IPC::Message& message) override; |
90 void OnPermanentError(int exit_code) override; | 93 void OnPermanentError(int exit_code) override; |
91 | 94 |
92 // WtsTerminalObserver implementation. | 95 // WtsTerminalObserver implementation. |
93 void OnSessionAttached(uint32 session_id) override; | 96 void OnSessionAttached(uint32_t session_id) override; |
94 void OnSessionDetached() override; | 97 void OnSessionDetached() override; |
95 | 98 |
96 private: | 99 private: |
97 // ChromotingDesktopDaemonMsg_DesktopAttached handler. | 100 // ChromotingDesktopDaemonMsg_DesktopAttached handler. |
98 void OnDesktopSessionAgentAttached(IPC::PlatformFileForTransit desktop_pipe); | 101 void OnDesktopSessionAgentAttached(IPC::PlatformFileForTransit desktop_pipe); |
99 | 102 |
100 // Requests the desktop process to crash. | 103 // Requests the desktop process to crash. |
101 void CrashDesktopProcess(const tracked_objects::Location& location); | 104 void CrashDesktopProcess(const tracked_objects::Location& location); |
102 | 105 |
103 // Reports time elapsed since previous event to the debug log. | 106 // Reports time elapsed since previous event to the debug log. |
(...skipping 22 matching lines...) Expand all Loading... |
126 base::OneShotTimer session_attach_timer_; | 129 base::OneShotTimer session_attach_timer_; |
127 | 130 |
128 base::Time last_timestamp_; | 131 base::Time last_timestamp_; |
129 | 132 |
130 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin); | 133 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin); |
131 }; | 134 }; |
132 | 135 |
133 } // namespace remoting | 136 } // namespace remoting |
134 | 137 |
135 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_ | 138 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_ |
OLD | NEW |