Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: remoting/host/desktop_session_connector.h

Issue 11028128: [Chromoting] Request the daemon to open a terminal once a connection has been accepted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feeback and rebased on top of https://chromiumcodereview.appspot.com/11017065/ Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698