| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ |
| 6 #define REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 10 namespace remoting { |
| 11 |
| 12 class IpcDesktopEnvironment; |
| 13 |
| 14 // Provides a way to connect a terminal (i.e. a remote client) with a desktop |
| 15 // session (i.e. the screen, keyboard and the rest). |
| 16 class DesktopSessionConnector { |
| 17 public: |
| 18 DesktopSessionConnector() {} |
| 19 virtual ~DesktopSessionConnector() {} |
| 20 |
| 21 // Requests the daemon process to create a desktop session and associates |
| 22 // |desktop_environment| with it. |
| 23 virtual void ConnectTerminal(IpcDesktopEnvironment* desktop_environment) = 0; |
| 24 |
| 25 // Requests the daemon process disconnect |desktop_environment| from |
| 26 // the associated desktop session. |
| 27 virtual void DisconnectTerminal( |
| 28 IpcDesktopEnvironment* desktop_environment) = 0; |
| 29 |
| 30 // Notifies the network process that the daemon has disconnected the desktop |
| 31 // session from the associated descktop environment. |
| 32 virtual void OnTerminalDisconnected(int terminal_id) = 0; |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(DesktopSessionConnector); |
| 36 }; |
| 37 |
| 38 } // namespace remoting |
| 39 |
| 40 #endif // REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ |
| OLD | NEW |