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

Unified Diff: remoting/host/ipc_desktop_environment.h

Issue 12096071: Adding a unit test to verify the IPC channel between the network and desktop processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix posix #2 Created 7 years, 10 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
« no previous file with comments | « remoting/host/desktop_session_proxy.cc ('k') | remoting/host/ipc_desktop_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ipc_desktop_environment.h
diff --git a/remoting/host/ipc_desktop_environment.h b/remoting/host/ipc_desktop_environment.h
index 10268c13f790abc24b21645e93f8fbf6ddc43f63..a89b5e8635f1ee35548f254bb399137b1a9f6078 100644
--- a/remoting/host/ipc_desktop_environment.h
+++ b/remoting/host/ipc_desktop_environment.h
@@ -37,6 +37,7 @@ class IpcDesktopEnvironment : public DesktopEnvironment {
// restarted.
IpcDesktopEnvironment(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
const std::string& client_jid,
const base::Closure& disconnect_callback,
base::WeakPtr<DesktopSessionConnector> desktop_session_connector);
@@ -81,6 +82,7 @@ class IpcDesktopEnvironmentFactory
// relevant task runners. |daemon_channel| must outlive this object.
IpcDesktopEnvironmentFactory(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
IPC::ChannelProxy* daemon_channel);
virtual ~IpcDesktopEnvironmentFactory();
@@ -97,7 +99,7 @@ class IpcDesktopEnvironmentFactory
scoped_refptr<DesktopSessionProxy> desktop_session_proxy) OVERRIDE;
virtual void OnDesktopSessionAgentAttached(
int terminal_id,
- IPC::PlatformFileForTransit desktop_process,
+ base::ProcessHandle desktop_process,
IPC::PlatformFileForTransit desktop_pipe) OVERRIDE;
virtual void OnTerminalDisconnected(int terminal_id) OVERRIDE;
@@ -105,6 +107,9 @@ class IpcDesktopEnvironmentFactory
// Task runner on which public methods of this class should be called.
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_;
+ // Task runner used for running background I/O.
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
+
// IPC channel connected to the daemon process.
IPC::ChannelProxy* daemon_channel_;
« no previous file with comments | « remoting/host/desktop_session_proxy.cc ('k') | remoting/host/ipc_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698