OLD | NEW |
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/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 // Notifies the network process that |terminal_id| is now attached to | 34 // Notifies the network process that |terminal_id| is now attached to |
35 // a desktop integration process. |desktop_process| specifies the process | 35 // a desktop integration process. |desktop_process| specifies the process |
36 // handle. |desktop_pipe| is the client end of the pipe opened by the desktop | 36 // handle. |desktop_pipe| is the client end of the pipe opened by the desktop |
37 // process. | 37 // process. |
38 virtual void OnDesktopSessionAgentAttached( | 38 virtual void OnDesktopSessionAgentAttached( |
39 int terminal_id, | 39 int terminal_id, |
40 base::ProcessHandle desktop_process, | 40 base::ProcessHandle desktop_process, |
41 IPC::PlatformFileForTransit desktop_pipe) = 0; | 41 IPC::PlatformFileForTransit desktop_pipe) = 0; |
42 | 42 |
43 // Notifies the network process that the daemon has disconnected the desktop | 43 // Notifies the network process that the daemon has disconnected the desktop |
44 // session from the associated descktop environment. | 44 // session from the associated desktop environment. |
45 virtual void OnTerminalDisconnected(int terminal_id) = 0; | 45 virtual void OnTerminalDisconnected(int terminal_id) = 0; |
46 | 46 |
47 private: | 47 private: |
48 DISALLOW_COPY_AND_ASSIGN(DesktopSessionConnector); | 48 DISALLOW_COPY_AND_ASSIGN(DesktopSessionConnector); |
49 }; | 49 }; |
50 | 50 |
51 } // namespace remoting | 51 } // namespace remoting |
52 | 52 |
53 #endif // REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ | 53 #endif // REMOTING_HOST_DESKTOP_SESSION_CONNECTOR_H_ |
OLD | NEW |