| 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_IPC_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
| 6 #define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 // DesktopSessionConnector implementation. | 90 // DesktopSessionConnector implementation. |
| 91 void ConnectTerminal(DesktopSessionProxy* desktop_session_proxy, | 91 void ConnectTerminal(DesktopSessionProxy* desktop_session_proxy, |
| 92 const ScreenResolution& resolution, | 92 const ScreenResolution& resolution, |
| 93 bool virtual_terminal) override; | 93 bool virtual_terminal) override; |
| 94 void DisconnectTerminal(DesktopSessionProxy* desktop_session_proxy) override; | 94 void DisconnectTerminal(DesktopSessionProxy* desktop_session_proxy) override; |
| 95 void SetScreenResolution(DesktopSessionProxy* desktop_session_proxy, | 95 void SetScreenResolution(DesktopSessionProxy* desktop_session_proxy, |
| 96 const ScreenResolution& resolution) override; | 96 const ScreenResolution& resolution) override; |
| 97 void OnDesktopSessionAgentAttached( | 97 void OnDesktopSessionAgentAttached( |
| 98 int terminal_id, | 98 int terminal_id, |
| 99 base::ProcessHandle desktop_process, | 99 base::ProcessHandle desktop_process_handle, |
| 100 IPC::PlatformFileForTransit desktop_pipe) override; | 100 IPC::PlatformFileForTransit desktop_pipe) override; |
| 101 void OnTerminalDisconnected(int terminal_id) override; | 101 void OnTerminalDisconnected(int terminal_id) override; |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 // Used to run the audio capturer. | 104 // Used to run the audio capturer. |
| 105 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; | 105 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; |
| 106 | 106 |
| 107 // Task runner on which methods of DesktopEnvironmentFactory interface should | 107 // Task runner on which methods of DesktopEnvironmentFactory interface should |
| 108 // be called. | 108 // be called. |
| 109 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; | 109 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 131 | 131 |
| 132 // Factory for weak pointers to DesktopSessionConnector interface. | 132 // Factory for weak pointers to DesktopSessionConnector interface. |
| 133 base::WeakPtrFactory<DesktopSessionConnector> connector_factory_; | 133 base::WeakPtrFactory<DesktopSessionConnector> connector_factory_; |
| 134 | 134 |
| 135 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); | 135 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace remoting | 138 } // namespace remoting |
| 139 | 139 |
| 140 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ | 140 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |