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

Side by Side Diff: remoting/host/ipc_desktop_environment.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 unified diff | Download patch
« no previous file with comments | « remoting/host/desktop_session_win.cc ('k') | remoting/host/ipc_desktop_environment.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_IPC_DESKTOP_ENVIRONMENT_H_ 5 #ifndef REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ 6 #define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "ipc/ipc_channel_handle.h"
17 #include "remoting/host/desktop_environment.h" 18 #include "remoting/host/desktop_environment.h"
18 #include "remoting/host/desktop_session_connector.h" 19 #include "remoting/host/desktop_session_connector.h"
19 20
20 namespace base { 21 namespace base {
21 class SingleThreadTaskRunner; 22 class SingleThreadTaskRunner;
22 } // base 23 } // base
23 24
24 namespace IPC { 25 namespace IPC {
25 class Sender; 26 class Sender;
26 } // namespace IPC 27 } // namespace IPC
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 88
88 // DesktopSessionConnector implementation. 89 // DesktopSessionConnector implementation.
89 void ConnectTerminal(DesktopSessionProxy* desktop_session_proxy, 90 void ConnectTerminal(DesktopSessionProxy* desktop_session_proxy,
90 const ScreenResolution& resolution, 91 const ScreenResolution& resolution,
91 bool virtual_terminal) override; 92 bool virtual_terminal) override;
92 void DisconnectTerminal(DesktopSessionProxy* desktop_session_proxy) override; 93 void DisconnectTerminal(DesktopSessionProxy* desktop_session_proxy) override;
93 void SetScreenResolution(DesktopSessionProxy* desktop_session_proxy, 94 void SetScreenResolution(DesktopSessionProxy* desktop_session_proxy,
94 const ScreenResolution& resolution) override; 95 const ScreenResolution& resolution) override;
95 void OnDesktopSessionAgentAttached( 96 void OnDesktopSessionAgentAttached(
96 int terminal_id, 97 int terminal_id,
97 base::ProcessHandle desktop_process_handle, 98 const IPC::ChannelHandle& desktop_pipe) override;
98 IPC::PlatformFileForTransit desktop_pipe) override;
99 void OnTerminalDisconnected(int terminal_id) override; 99 void OnTerminalDisconnected(int terminal_id) override;
100 100
101 private: 101 private:
102 // Used to run the audio capturer. 102 // Used to run the audio capturer.
103 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; 103 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_;
104 104
105 // Task runner on which methods of DesktopEnvironmentFactory interface should 105 // Task runner on which methods of DesktopEnvironmentFactory interface should
106 // be called. 106 // be called.
107 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; 107 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_;
108 108
(...skipping 17 matching lines...) Expand all
126 126
127 // Factory for weak pointers to DesktopSessionConnector interface. 127 // Factory for weak pointers to DesktopSessionConnector interface.
128 base::WeakPtrFactory<DesktopSessionConnector> connector_factory_; 128 base::WeakPtrFactory<DesktopSessionConnector> connector_factory_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); 130 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory);
131 }; 131 };
132 132
133 } // namespace remoting 133 } // namespace remoting
134 134
135 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ 135 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_session_win.cc ('k') | remoting/host/ipc_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698