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

Unified Diff: remoting/host/desktop_session_agent.h

Issue 2451953002: Use ChannelMojo between the remoting network and desktop processes. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/desktop_process_unittest.cc ('k') | remoting/host/desktop_session_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_agent.h
diff --git a/remoting/host/desktop_session_agent.h b/remoting/host/desktop_session_agent.h
index 5f6da5987a191406f327128a0f67980b663c1fca..9e7afba773cfd12bde5412cd9dfbb3699c806a9a 100644
--- a/remoting/host/desktop_session_agent.h
+++ b/remoting/host/desktop_session_agent.h
@@ -17,7 +17,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "ipc/ipc_listener.h"
-#include "ipc/ipc_platform_file.h"
+#include "mojo/public/cpp/system/message_pipe.h"
#include "remoting/host/client_session_control.h"
#include "remoting/protocol/clipboard_stub.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h"
@@ -94,10 +94,8 @@ class DesktopSessionAgent
void ProcessAudioPacket(std::unique_ptr<AudioPacket> packet);
// Creates desktop integration components and a connected IPC channel to be
- // used to access them. The client end of the channel is returned in
- // the variable pointed by |desktop_pipe_out|.
- bool Start(const base::WeakPtr<Delegate>& delegate,
- IPC::PlatformFileForTransit* desktop_pipe_out);
+ // used to access them. The client end of the channel is returned.
+ mojo::ScopedMessagePipeHandle Start(const base::WeakPtr<Delegate>& delegate);
// Stops the agent asynchronously.
void Stop();
@@ -179,10 +177,6 @@ class DesktopSessionAgent
// IPC channel connecting the desktop process with the network process.
std::unique_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.
- base::File desktop_pipe_;
-
// True if the desktop session agent has been started.
bool started_ = false;
« no previous file with comments | « remoting/host/desktop_process_unittest.cc ('k') | remoting/host/desktop_session_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698