| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
| 16 #include "base/win/scoped_handle.h" | 16 #include "base/win/scoped_handle.h" |
| 17 #include "ipc/ipc_platform_file.h" | 17 #include "ipc/ipc_channel_handle.h" |
| 18 #include "remoting/host/desktop_session.h" | 18 #include "remoting/host/desktop_session.h" |
| 19 #include "remoting/host/win/wts_terminal_observer.h" | 19 #include "remoting/host/win/wts_terminal_observer.h" |
| 20 #include "remoting/host/worker_process_ipc_delegate.h" | 20 #include "remoting/host/worker_process_ipc_delegate.h" |
| 21 | 21 |
| 22 namespace tracked_objects { | 22 namespace tracked_objects { |
| 23 class Location; | 23 class Location; |
| 24 } // namespace tracked_objects | 24 } // namespace tracked_objects |
| 25 | 25 |
| 26 namespace remoting { | 26 namespace remoting { |
| 27 | 27 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void OnChannelConnected(int32_t peer_pid) override; | 92 void OnChannelConnected(int32_t peer_pid) override; |
| 93 bool OnMessageReceived(const IPC::Message& message) override; | 93 bool OnMessageReceived(const IPC::Message& message) override; |
| 94 void OnPermanentError(int exit_code) override; | 94 void OnPermanentError(int exit_code) override; |
| 95 | 95 |
| 96 // WtsTerminalObserver implementation. | 96 // WtsTerminalObserver implementation. |
| 97 void OnSessionAttached(uint32_t session_id) override; | 97 void OnSessionAttached(uint32_t session_id) override; |
| 98 void OnSessionDetached() override; | 98 void OnSessionDetached() override; |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 // ChromotingDesktopDaemonMsg_DesktopAttached handler. | 101 // ChromotingDesktopDaemonMsg_DesktopAttached handler. |
| 102 void OnDesktopSessionAgentAttached(IPC::PlatformFileForTransit desktop_pipe); | 102 void OnDesktopSessionAgentAttached(const IPC::ChannelHandle& desktop_pipe); |
| 103 | 103 |
| 104 // Requests the desktop process to crash. | 104 // Requests the desktop process to crash. |
| 105 void CrashDesktopProcess(const tracked_objects::Location& location); | 105 void CrashDesktopProcess(const tracked_objects::Location& location); |
| 106 | 106 |
| 107 // Reports time elapsed since previous event to the debug log. | 107 // Reports time elapsed since previous event to the debug log. |
| 108 void ReportElapsedTime(const std::string& event); | 108 void ReportElapsedTime(const std::string& event); |
| 109 | 109 |
| 110 // Task runner on which public methods of this class should be called. | 110 // Task runner on which public methods of this class should be called. |
| 111 scoped_refptr<AutoThreadTaskRunner> caller_task_runner_; | 111 scoped_refptr<AutoThreadTaskRunner> caller_task_runner_; |
| 112 | 112 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 130 base::OneShotTimer session_attach_timer_; | 130 base::OneShotTimer session_attach_timer_; |
| 131 | 131 |
| 132 base::Time last_timestamp_; | 132 base::Time last_timestamp_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin); | 134 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace remoting | 137 } // namespace remoting |
| 138 | 138 |
| 139 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_ | 139 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_ |
| OLD | NEW |