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

Side by Side Diff: remoting/host/desktop_session_proxy.cc

Issue 455073004: Switch DesktopEnvironment to return a DesktopCapturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ShapedDesktopCapturer::Create() Created 6 years, 4 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
« no previous file with comments | « remoting/host/desktop_session_proxy.h ('k') | remoting/host/fake_desktop_capturer.h » ('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 #include "remoting/host/desktop_session_proxy.h" 5 #include "remoting/host/desktop_session_proxy.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 return scoped_ptr<InputInjector>(new IpcInputInjector(this)); 133 return scoped_ptr<InputInjector>(new IpcInputInjector(this));
134 } 134 }
135 135
136 scoped_ptr<ScreenControls> DesktopSessionProxy::CreateScreenControls() { 136 scoped_ptr<ScreenControls> DesktopSessionProxy::CreateScreenControls() {
137 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 137 DCHECK(caller_task_runner_->BelongsToCurrentThread());
138 138
139 return scoped_ptr<ScreenControls>(new IpcScreenControls(this)); 139 return scoped_ptr<ScreenControls>(new IpcScreenControls(this));
140 } 140 }
141 141
142 scoped_ptr<webrtc::ScreenCapturer> DesktopSessionProxy::CreateVideoCapturer() { 142 scoped_ptr<webrtc::DesktopCapturer> DesktopSessionProxy::CreateVideoCapturer() {
143 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 143 DCHECK(caller_task_runner_->BelongsToCurrentThread());
144 144
145 return scoped_ptr<webrtc::ScreenCapturer>(new IpcVideoFrameCapturer(this)); 145 return scoped_ptr<webrtc::DesktopCapturer>(new IpcVideoFrameCapturer(this));
146 } 146 }
147 147
148 scoped_ptr<webrtc::MouseCursorMonitor> 148 scoped_ptr<webrtc::MouseCursorMonitor>
149 DesktopSessionProxy::CreateMouseCursorMonitor() { 149 DesktopSessionProxy::CreateMouseCursorMonitor() {
150 return scoped_ptr<webrtc::MouseCursorMonitor>( 150 return scoped_ptr<webrtc::MouseCursorMonitor>(
151 new IpcMouseCursorMonitor(this)); 151 new IpcMouseCursorMonitor(this));
152 } 152 }
153 153
154 std::string DesktopSessionProxy::GetCapabilities() const { 154 std::string DesktopSessionProxy::GetCapabilities() const {
155 std::string result = kRateLimitResizeRequests; 155 std::string result = kRateLimitResizeRequests;
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 } 571 }
572 572
573 // static 573 // static
574 void DesktopSessionProxyTraits::Destruct( 574 void DesktopSessionProxyTraits::Destruct(
575 const DesktopSessionProxy* desktop_session_proxy) { 575 const DesktopSessionProxy* desktop_session_proxy) {
576 desktop_session_proxy->caller_task_runner_->DeleteSoon(FROM_HERE, 576 desktop_session_proxy->caller_task_runner_->DeleteSoon(FROM_HERE,
577 desktop_session_proxy); 577 desktop_session_proxy);
578 } 578 }
579 579
580 } // namespace remoting 580 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_session_proxy.h ('k') | remoting/host/fake_desktop_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698