Chromium Code Reviews| 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 #include "base/memory/ref_counted.h" | |
|
Wez
2012/10/17 17:51:57
No need for this include
alexeypa (please no reviews)
2012/10/17 21:35:53
Done.
| |
| 10 | |
| 11 namespace remoting { | |
| 12 | |
| 13 class IpcDesktopEnvironment; | |
| 14 | |
| 15 // Provides a way to connect a terminal (i.e. a remote client) with a desktop | |
| 16 // session (i.e. the screen, keyboard and the rest). | |
| 17 class DesktopSessionConnector { | |
| 18 public: | |
| 19 DesktopSessionConnector() {} | |
| 20 virtual ~DesktopSessionConnector() {} | |
| 21 | |
| 22 // Requests the daemon process to create a desktop session and associates | |
| 23 // |desktop_environment| with it. | |
| 24 virtual void ConnectTerminal(IpcDesktopEnvironment* desktop_environment) = 0; | |
| 25 | |
| 26 // Requests the daemon process disconnect |desktop_environment| from | |
| 27 // the associated desktop session. | |
| 28 virtual void DisconnectTerminal( | |
| 29 IpcDesktopEnvironment* desktop_environment) = 0; | |
| 30 | |
| 31 // Notifies the network process that the daemon has disconnected the desktop | |
| 32 // session from the accsociated descktop environment. | |
|
Wez
2012/10/17 17:51:57
typo: associated
alexeypa (please no reviews)
2012/10/17 21:35:53
Done.
| |
| 33 virtual void OnTerminalDisconnected(int terminal_id) = 0; | |
| 34 | |
| 35 private: | |
| 36 DISALLOW_COPY_AND_ASSIGN(DesktopSessionConnector); | |
| 37 }; | |
| 38 | |
| 39 } // namespace remoting | |
| 40 | |
| 41 #endif // REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ | |
| OLD | NEW |