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

Side by Side Diff: trunk/src/remoting/host/ipc_desktop_environment.cc

Issue 151163002: Revert 248045 "Use webrtc::MouseCursorMonitor for cursor shapes" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
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 #include "remoting/host/ipc_desktop_environment.h" 5 #include "remoting/host/ipc_desktop_environment.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/process/process_handle.h" 11 #include "base/process/process_handle.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "ipc/ipc_sender.h" 13 #include "ipc/ipc_sender.h"
14 #include "remoting/host/audio_capturer.h" 14 #include "remoting/host/audio_capturer.h"
15 #include "remoting/host/chromoting_messages.h" 15 #include "remoting/host/chromoting_messages.h"
16 #include "remoting/host/client_session_control.h" 16 #include "remoting/host/client_session_control.h"
17 #include "remoting/host/desktop_session.h" 17 #include "remoting/host/desktop_session.h"
18 #include "remoting/host/desktop_session_proxy.h" 18 #include "remoting/host/desktop_session_proxy.h"
19 #include "remoting/host/input_injector.h" 19 #include "remoting/host/input_injector.h"
20 #include "remoting/host/screen_controls.h" 20 #include "remoting/host/screen_controls.h"
21 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h"
22 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" 21 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
23 22
24 namespace remoting { 23 namespace remoting {
25 24
26 IpcDesktopEnvironment::IpcDesktopEnvironment( 25 IpcDesktopEnvironment::IpcDesktopEnvironment(
27 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner, 26 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner,
28 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 27 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
29 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, 28 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
30 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 29 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
31 base::WeakPtr<ClientSessionControl> client_session_control, 30 base::WeakPtr<ClientSessionControl> client_session_control,
(...skipping 18 matching lines...) Expand all
50 } 49 }
51 50
52 scoped_ptr<InputInjector> IpcDesktopEnvironment::CreateInputInjector() { 51 scoped_ptr<InputInjector> IpcDesktopEnvironment::CreateInputInjector() {
53 return desktop_session_proxy_->CreateInputInjector(); 52 return desktop_session_proxy_->CreateInputInjector();
54 } 53 }
55 54
56 scoped_ptr<ScreenControls> IpcDesktopEnvironment::CreateScreenControls() { 55 scoped_ptr<ScreenControls> IpcDesktopEnvironment::CreateScreenControls() {
57 return desktop_session_proxy_->CreateScreenControls(); 56 return desktop_session_proxy_->CreateScreenControls();
58 } 57 }
59 58
60 scoped_ptr<webrtc::MouseCursorMonitor>
61 IpcDesktopEnvironment::CreateMouseCursorMonitor() {
62 return desktop_session_proxy_->CreateMouseCursorMonitor();
63 }
64
65 scoped_ptr<webrtc::ScreenCapturer> 59 scoped_ptr<webrtc::ScreenCapturer>
66 IpcDesktopEnvironment::CreateVideoCapturer() { 60 IpcDesktopEnvironment::CreateVideoCapturer() {
67 return desktop_session_proxy_->CreateVideoCapturer(); 61 return desktop_session_proxy_->CreateVideoCapturer();
68 } 62 }
69 63
70 std::string IpcDesktopEnvironment::GetCapabilities() const { 64 std::string IpcDesktopEnvironment::GetCapabilities() const {
71 return desktop_session_proxy_->GetCapabilities(); 65 return desktop_session_proxy_->GetCapabilities();
72 } 66 }
73 67
74 void IpcDesktopEnvironment::SetCapabilities(const std::string& capabilities) { 68 void IpcDesktopEnvironment::SetCapabilities(const std::string& capabilities) {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 if (i != active_connections_.end()) { 205 if (i != active_connections_.end()) {
212 DesktopSessionProxy* desktop_session_proxy = i->second; 206 DesktopSessionProxy* desktop_session_proxy = i->second;
213 active_connections_.erase(i); 207 active_connections_.erase(i);
214 208
215 // Disconnect the client session. 209 // Disconnect the client session.
216 desktop_session_proxy->DisconnectSession(); 210 desktop_session_proxy->DisconnectSession();
217 } 211 }
218 } 212 }
219 213
220 } // namespace remoting 214 } // namespace remoting
OLDNEW
« no previous file with comments | « trunk/src/remoting/host/ipc_desktop_environment.h ('k') | trunk/src/remoting/host/ipc_desktop_environment_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698