• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 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_CLIENT_SESSION_CONTROL_H_
6 #define REMOTING_HOST_CLIENT_SESSION_CONTROL_H_
7 
8 #include "base/basictypes.h"
9 
10 namespace webrtc {
11 class DesktopVector;
12 }  // namespace webrtc
13 
14 namespace remoting {
15 
16 // Allows the desktop environment to disconnect the client session and
17 // to control the remote input handling (i.e. disable, enable, and pause
18 // temporarily if the local mouse movements are detected).
19 class ClientSessionControl {
20  public:
~ClientSessionControl()21   virtual ~ClientSessionControl() {}
22 
23   // Returns the authenticated JID of the client session.
24   virtual const std::string& client_jid() const = 0;
25 
26   // Disconnects the client session, tears down transport resources and stops
27   // scheduler components.
28   virtual void DisconnectSession() = 0;
29 
30   // Called when local mouse movement is detected.
31   virtual void OnLocalMouseMoved(const webrtc::DesktopVector& position) = 0;
32 
33   // Disables or enables the remote input in the client session.
34   virtual void SetDisableInputs(bool disable_inputs) = 0;
35 };
36 
37 }  // namespace remoting
38 
39 #endif  // REMOTING_HOST_CLIENT_SESSION_CONTROL_H_
40