Chromium Code Reviews| Index: remoting/host/desktop_session_connector.h |
| diff --git a/remoting/host/desktop_session_connector.h b/remoting/host/desktop_session_connector.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d99611a1420b740d8d73afa56d9ba468bd339587 |
| --- /dev/null |
| +++ b/remoting/host/desktop_session_connector.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ |
| +#define REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ |
| + |
| +#include "base/basictypes.h" |
| +#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.
|
| + |
| +namespace remoting { |
| + |
| +class IpcDesktopEnvironment; |
| + |
| +// Provides a way to connect a terminal (i.e. a remote client) with a desktop |
| +// session (i.e. the screen, keyboard and the rest). |
| +class DesktopSessionConnector { |
| + public: |
| + DesktopSessionConnector() {} |
| + virtual ~DesktopSessionConnector() {} |
| + |
| + // Requests the daemon process to create a desktop session and associates |
| + // |desktop_environment| with it. |
| + virtual void ConnectTerminal(IpcDesktopEnvironment* desktop_environment) = 0; |
| + |
| + // Requests the daemon process disconnect |desktop_environment| from |
| + // the associated desktop session. |
| + virtual void DisconnectTerminal( |
| + IpcDesktopEnvironment* desktop_environment) = 0; |
| + |
| + // Notifies the network process that the daemon has disconnected the desktop |
| + // 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.
|
| + virtual void OnTerminalDisconnected(int terminal_id) = 0; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(DesktopSessionConnector); |
| +}; |
| + |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ |