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

Side by Side Diff: remoting/host/daemon_process.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/chromoting_messages.h ('k') | remoting/host/daemon_process_unittest.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_DAEMON_PROCESS_H_ 5 #ifndef REMOTING_HOST_DAEMON_PROCESS_H_
6 #define REMOTING_HOST_DAEMON_PROCESS_H_ 6 #define REMOTING_HOST_DAEMON_PROCESS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // WorkerProcessIpcDelegate implementation. 69 // WorkerProcessIpcDelegate implementation.
70 void OnChannelConnected(int32_t peer_pid) override; 70 void OnChannelConnected(int32_t peer_pid) override;
71 bool OnMessageReceived(const IPC::Message& message) override; 71 bool OnMessageReceived(const IPC::Message& message) override;
72 void OnPermanentError(int exit_code) override; 72 void OnPermanentError(int exit_code) override;
73 73
74 // Sends an IPC message to the network process. The message will be dropped 74 // Sends an IPC message to the network process. The message will be dropped
75 // unless the network process is connected over the IPC channel. 75 // unless the network process is connected over the IPC channel.
76 virtual void SendToNetwork(IPC::Message* message) = 0; 76 virtual void SendToNetwork(IPC::Message* message) = 0;
77 77
78 // Called when a desktop integration process attaches to |terminal_id|. 78 // Called when a desktop integration process attaches to |terminal_id|.
79 // |session_id| is the id of the desktop session being attached.
79 // |desktop_pipe| specifies the client end of the desktop pipe. Returns true 80 // |desktop_pipe| specifies the client end of the desktop pipe. Returns true
80 // on success, false otherwise. 81 // on success, false otherwise.
81 virtual bool OnDesktopSessionAgentAttached( 82 virtual bool OnDesktopSessionAgentAttached(
82 int terminal_id, 83 int terminal_id,
84 int session_id,
83 const IPC::ChannelHandle& desktop_pipe) = 0; 85 const IPC::ChannelHandle& desktop_pipe) = 0;
84 86
85 // Closes the desktop session identified by |terminal_id|. 87 // Closes the desktop session identified by |terminal_id|.
86 void CloseDesktopSession(int terminal_id); 88 void CloseDesktopSession(int terminal_id);
87 89
88 protected: 90 protected:
89 DaemonProcess(scoped_refptr<AutoThreadTaskRunner> caller_task_runner, 91 DaemonProcess(scoped_refptr<AutoThreadTaskRunner> caller_task_runner,
90 scoped_refptr<AutoThreadTaskRunner> io_task_runner, 92 scoped_refptr<AutoThreadTaskRunner> io_task_runner,
91 const base::Closure& stopped_callback); 93 const base::Closure& stopped_callback);
92 94
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 std::unique_ptr<HostEventLogger> host_event_logger_; 185 std::unique_ptr<HostEventLogger> host_event_logger_;
184 186
185 base::WeakPtrFactory<DaemonProcess> weak_factory_; 187 base::WeakPtrFactory<DaemonProcess> weak_factory_;
186 188
187 DISALLOW_COPY_AND_ASSIGN(DaemonProcess); 189 DISALLOW_COPY_AND_ASSIGN(DaemonProcess);
188 }; 190 };
189 191
190 } // namespace remoting 192 } // namespace remoting
191 193
192 #endif // REMOTING_HOST_DAEMON_PROCESS_H_ 194 #endif // REMOTING_HOST_DAEMON_PROCESS_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_messages.h ('k') | remoting/host/daemon_process_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698