| 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_CONNECTOR_H_ | 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ |
| 6 #define REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ | 6 #define REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 10 #include "ipc/ipc_channel_handle.h" | 10 #include "ipc/ipc_channel_handle.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // the associated desktop session. | 34 // the associated desktop session. |
| 35 virtual void DisconnectTerminal( | 35 virtual void DisconnectTerminal( |
| 36 DesktopSessionProxy* desktop_session_proxy) = 0; | 36 DesktopSessionProxy* desktop_session_proxy) = 0; |
| 37 | 37 |
| 38 // Changes the screen resolution of the desktop session. | 38 // Changes the screen resolution of the desktop session. |
| 39 virtual void SetScreenResolution( | 39 virtual void SetScreenResolution( |
| 40 DesktopSessionProxy* desktop_session_proxy, | 40 DesktopSessionProxy* desktop_session_proxy, |
| 41 const ScreenResolution& resolution) = 0; | 41 const ScreenResolution& resolution) = 0; |
| 42 | 42 |
| 43 // Notifies the network process that |terminal_id| is now attached to | 43 // Notifies the network process that |terminal_id| is now attached to |
| 44 // a desktop integration process. |desktop_pipe| is the client end of the pipe | 44 // a desktop integration process. |session_id| is the id of the desktop |
| 45 // opened by the desktop process. | 45 // session being attached. |desktop_pipe| is the client end of the pipe opened |
| 46 // by the desktop process. |
| 46 virtual void OnDesktopSessionAgentAttached( | 47 virtual void OnDesktopSessionAgentAttached( |
| 47 int terminal_id, | 48 int terminal_id, |
| 49 int session_id, |
| 48 const IPC::ChannelHandle& desktop_pipe) = 0; | 50 const IPC::ChannelHandle& desktop_pipe) = 0; |
| 49 | 51 |
| 50 // Notifies the network process that the daemon has disconnected the desktop | 52 // Notifies the network process that the daemon has disconnected the desktop |
| 51 // session from the associated desktop environment. | 53 // session from the associated desktop environment. |
| 52 virtual void OnTerminalDisconnected(int terminal_id) = 0; | 54 virtual void OnTerminalDisconnected(int terminal_id) = 0; |
| 53 | 55 |
| 54 private: | 56 private: |
| 55 DISALLOW_COPY_AND_ASSIGN(DesktopSessionConnector); | 57 DISALLOW_COPY_AND_ASSIGN(DesktopSessionConnector); |
| 56 }; | 58 }; |
| 57 | 59 |
| 58 } // namespace remoting | 60 } // namespace remoting |
| 59 | 61 |
| 60 #endif // REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ | 62 #endif // REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ |
| OLD | NEW |