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

Unified Diff: remoting/host/daemon_process.h

Issue 11231060: [Chromoting] The desktop process now creates a pre-connected pipe and passes (with some help of the… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixup 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/daemon_process.h
diff --git a/remoting/host/daemon_process.h b/remoting/host/daemon_process.h
index c31d20fc897c910249ebcafba619a53608a87b64..1abd45afc3dc5dee01fdaf70f5cccd08c8353a08 100644
--- a/remoting/host/daemon_process.h
+++ b/remoting/host/daemon_process.h
@@ -12,8 +12,10 @@
#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/process.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_channel_proxy.h"
+#include "ipc/ipc_platform_file.h"
#include "remoting/base/stoppable.h"
#include "remoting/host/config_file_watcher.h"
#include "remoting/host/worker_process_ipc_delegate.h"
@@ -62,6 +64,15 @@ class DaemonProcess
// unless the network process is connected over the IPC channel.
virtual void SendToNetwork(IPC::Message* message) = 0;
+ // Called when a desktop integration process attaches to |terminal_id|.
+ // |desktop_process| is a handle of the desktop integration process.
+ // |desktop_pipe| specifies the client end of the desktop pipe. Returns true
+ // on success, false otherwise.
+ virtual bool OnDesktopSessionAgentAttached(
Sergey Ulanov 2012/10/24 20:12:01 Does this method need to be public? Maybe make it
alexeypa (please no reviews) 2012/10/24 21:41:51 It is called by DesktopSessionWin::OnDesktopSessio
+ int terminal_id,
+ base::ProcessHandle desktop_process,
+ IPC::PlatformFileForTransit desktop_pipe) = 0;
+
// Closes the desktop session identified by |terminal_id|.
void CloseDesktopSession(int terminal_id);

Powered by Google App Engine
This is Rietveld 408576698