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

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

Issue 2451953002: Use ChannelMojo between the remoting network and desktop processes. (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_
6 #define REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ 6 #define REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "ipc/ipc_platform_file.h" 10 #include "ipc/ipc_channel_handle.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 class DesktopSessionProxy; 14 class DesktopSessionProxy;
15 class ScreenResolution; 15 class ScreenResolution;
16 16
17 // Provides a way to connect a terminal (i.e. a remote client) with a desktop 17 // Provides a way to connect a terminal (i.e. a remote client) with a desktop
18 // session (i.e. the screen, keyboard and the rest). 18 // session (i.e. the screen, keyboard and the rest).
19 class DesktopSessionConnector { 19 class DesktopSessionConnector {
20 public: 20 public:
(...skipping 13 matching lines...) Expand all
34 // the associated desktop session. 34 // the associated desktop session.
35 virtual void DisconnectTerminal( 35 virtual void DisconnectTerminal(
36 DesktopSessionProxy* desktop_session_proxy) = 0; 36 DesktopSessionProxy* desktop_session_proxy) = 0;
37 37
38 // Changes the screen resolution of the desktop session. 38 // Changes the screen resolution of the desktop session.
39 virtual void SetScreenResolution( 39 virtual void SetScreenResolution(
40 DesktopSessionProxy* desktop_session_proxy, 40 DesktopSessionProxy* desktop_session_proxy,
41 const ScreenResolution& resolution) = 0; 41 const ScreenResolution& resolution) = 0;
42 42
43 // Notifies the network process that |terminal_id| is now attached to 43 // Notifies the network process that |terminal_id| is now attached to
44 // a desktop integration process. |desktop_process_handle| specifies the 44 // a desktop integration process. |desktop_process_handle| specifies the
joedow 2016/10/31 16:41:03 Remove |desktop_process_handle| comment
Sam McNally 2016/10/31 22:34:27 Done.
45 // process handle. |desktop_pipe| is the client end of the pipe opened by the 45 // process handle. |desktop_pipe| is the client end of the pipe opened by the
46 // desktop process. 46 // desktop process.
47 virtual void OnDesktopSessionAgentAttached( 47 virtual void OnDesktopSessionAgentAttached(
48 int terminal_id, 48 int terminal_id,
49 base::ProcessHandle desktop_process_handle, 49 const IPC::ChannelHandle& desktop_pipe) = 0;
50 IPC::PlatformFileForTransit desktop_pipe) = 0;
51 50
52 // Notifies the network process that the daemon has disconnected the desktop 51 // Notifies the network process that the daemon has disconnected the desktop
53 // session from the associated desktop environment. 52 // session from the associated desktop environment.
54 virtual void OnTerminalDisconnected(int terminal_id) = 0; 53 virtual void OnTerminalDisconnected(int terminal_id) = 0;
55 54
56 private: 55 private:
57 DISALLOW_COPY_AND_ASSIGN(DesktopSessionConnector); 56 DISALLOW_COPY_AND_ASSIGN(DesktopSessionConnector);
58 }; 57 };
59 58
60 } // namespace remoting 59 } // namespace remoting
61 60
62 #endif // REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ 61 #endif // REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698