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

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

Issue 2468523003: Pass the desktop session ID to the remoting network process. (Closed)
Patch Set: rebase 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
« no previous file with comments | « remoting/host/desktop_session_connector.h ('k') | remoting/host/desktop_session_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PROXY_H_ 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_PROXY_H_
6 #define REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ 6 #define REMOTING_HOST_DESKTOP_SESSION_PROXY_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 std::unique_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor(); 86 std::unique_ptr<webrtc::MouseCursorMonitor> CreateMouseCursorMonitor();
87 std::string GetCapabilities() const; 87 std::string GetCapabilities() const;
88 void SetCapabilities(const std::string& capabilities); 88 void SetCapabilities(const std::string& capabilities);
89 89
90 // IPC::Listener implementation. 90 // IPC::Listener implementation.
91 bool OnMessageReceived(const IPC::Message& message) override; 91 bool OnMessageReceived(const IPC::Message& message) override;
92 void OnChannelConnected(int32_t peer_pid) override; 92 void OnChannelConnected(int32_t peer_pid) override;
93 void OnChannelError() override; 93 void OnChannelError() override;
94 94
95 // Connects to the desktop session agent. 95 // Connects to the desktop session agent.
96 bool AttachToDesktop(const IPC::ChannelHandle& desktop_pipe); 96 bool AttachToDesktop(const IPC::ChannelHandle& desktop_pipe, int session_id);
97 97
98 // Closes the connection to the desktop session agent and cleans up 98 // Closes the connection to the desktop session agent and cleans up
99 // the associated resources. 99 // the associated resources.
100 void DetachFromDesktop(); 100 void DetachFromDesktop();
101 101
102 // Disconnects the client session that owns |this|. 102 // Disconnects the client session that owns |this|.
103 void DisconnectSession(protocol::ErrorCode error); 103 void DisconnectSession(protocol::ErrorCode error);
104 104
105 // Stores |audio_capturer| to be used to post captured audio packets. Called 105 // Stores |audio_capturer| to be used to post captured audio packets. Called
106 // on the |audio_capture_task_runner_| thread. 106 // on the |audio_capture_task_runner_| thread.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 }; 225 };
226 226
227 // Destroys |DesktopSessionProxy| instances on the caller's thread. 227 // Destroys |DesktopSessionProxy| instances on the caller's thread.
228 struct DesktopSessionProxyTraits { 228 struct DesktopSessionProxyTraits {
229 static void Destruct(const DesktopSessionProxy* desktop_session_proxy); 229 static void Destruct(const DesktopSessionProxy* desktop_session_proxy);
230 }; 230 };
231 231
232 } // namespace remoting 232 } // namespace remoting
233 233
234 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ 234 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_session_connector.h ('k') | remoting/host/desktop_session_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698