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.
5 #ifndef REMOTING_HOST_DESKTOP_SESSION_H_
6 #define REMOTING_HOST_DESKTOP_SESSION_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
14 class ScreenResolution
;
16 // Represents the desktop session for a connected terminal. Each desktop session
17 // has a unique identifier used by cross-platform code to refer to it.
18 class DesktopSession
{
20 virtual ~DesktopSession();
22 // Changes the screen resolution of the desktop session.
23 virtual void SetScreenResolution(const ScreenResolution
& resolution
) = 0;
25 int id() const { return id_
; }
28 // Creates a terminal and assigns a unique identifier to it. |daemon_process|
29 // must outlive |this|.
30 DesktopSession(DaemonProcess
* daemon_process
, int id
);
32 DaemonProcess
* daemon_process() const { return daemon_process_
; }
35 // The owner of |this|.
36 DaemonProcess
* const daemon_process_
;
38 // A unique identifier of the terminal.
41 DISALLOW_COPY_AND_ASSIGN(DesktopSession
);
44 } // namespace remoting
46 #endif // REMOTING_HOST_DESKTOP_SESSION_H_