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

Unified Diff: remoting/host/desktop_session_agent.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: Created 7 years, 11 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/desktop_session_agent.h
diff --git a/remoting/host/desktop_session_agent.h b/remoting/host/desktop_session_agent.h
index 585f15990b27396e53e2b6f07962bfaa1a1180b4..c00a38a6bb142fb1254e9f504eaf749b5cae2191 100644
--- a/remoting/host/desktop_session_agent.h
+++ b/remoting/host/desktop_session_agent.h
@@ -183,6 +183,9 @@ class DesktopSessionAgent
}
private:
+ // Closes |desktop_pipe_| if it is open.
+ void CloseDesktopPipeHandle();
+
// Task runner dedicated to running methods of |audio_capturer_|.
scoped_refptr<AutoThreadTaskRunner> audio_capture_task_runner_;
@@ -222,6 +225,10 @@ class DesktopSessionAgent
// IPC channel connecting the desktop process with the network process.
scoped_ptr<IPC::ChannelProxy> network_channel_;
+ // The client end of the network-to-desktop pipe. It is kept alive until
+ // the network process connects to the pipe.
+ IPC::PlatformFileForTransit desktop_pipe_;
+
// Size of the most recent captured video frame.
SkISize current_size_;

Powered by Google App Engine
This is Rietveld 408576698