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/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 virtual void OnSessionAttached(uint32 session_id) OVERRIDE; | 57 virtual void OnSessionAttached(uint32 session_id) OVERRIDE; |
58 virtual void OnSessionDetached() OVERRIDE; | 58 virtual void OnSessionDetached() OVERRIDE; |
59 | 59 |
60 private: | 60 private: |
61 // ChromotingDesktopDaemonMsg_DesktopAttached handler. | 61 // ChromotingDesktopDaemonMsg_DesktopAttached handler. |
62 void OnDesktopSessionAgentAttached(IPC::PlatformFileForTransit desktop_pipe); | 62 void OnDesktopSessionAgentAttached(IPC::PlatformFileForTransit desktop_pipe); |
63 | 63 |
64 // ChromotingDesktopDaemonMsg_InjectSas handler. | 64 // ChromotingDesktopDaemonMsg_InjectSas handler. |
65 void OnInjectSas(); | 65 void OnInjectSas(); |
66 | 66 |
67 // Restarts the desktop process. | 67 // Requests the desktop process to crash. |
68 void RestartDesktopProcess(const tracked_objects::Location& location); | 68 void CrashDesktopProcess(const tracked_objects::Location& location); |
69 | 69 |
70 // Task runner on which public methods of this class should be called. | 70 // Task runner on which public methods of this class should be called. |
71 scoped_refptr<AutoThreadTaskRunner> main_task_runner_; | 71 scoped_refptr<AutoThreadTaskRunner> main_task_runner_; |
72 | 72 |
73 // Message loop used by the IPC channel. | 73 // Message loop used by the IPC channel. |
74 scoped_refptr<AutoThreadTaskRunner> io_task_runner_; | 74 scoped_refptr<AutoThreadTaskRunner> io_task_runner_; |
75 | 75 |
76 // Contains the full path to the desktop binary. | 76 // Contains the full path to the desktop binary. |
77 base::FilePath desktop_binary_; | 77 base::FilePath desktop_binary_; |
78 | 78 |
79 // Handle of the desktop process. | 79 // Handle of the desktop process. |
80 base::win::ScopedHandle desktop_process_; | 80 base::win::ScopedHandle desktop_process_; |
81 | 81 |
82 // Launches and monitors the desktop process. | 82 // Launches and monitors the desktop process. |
83 scoped_ptr<WorkerProcessLauncher> launcher_; | 83 scoped_ptr<WorkerProcessLauncher> launcher_; |
84 | 84 |
85 // Pointer used to unsubscribe from session attach and detach events. | 85 // Pointer used to unsubscribe from session attach and detach events. |
86 WtsTerminalMonitor* monitor_; | 86 WtsTerminalMonitor* monitor_; |
87 | 87 |
88 scoped_ptr<SasInjector> sas_injector_; | 88 scoped_ptr<SasInjector> sas_injector_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin); | 90 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace remoting | 93 } // namespace remoting |
94 | 94 |
95 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_ | 95 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_ |
OLD | NEW |