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

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

Issue 1354973006: ipc: Remove unnecessary attachment broker plumbing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors. Created 5 years, 3 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
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 DCHECK(desktop_pipe.auto_close); 258 DCHECK(desktop_pipe.auto_close);
259 259
260 IPC::ChannelHandle desktop_channel_handle(std::string(), desktop_pipe); 260 IPC::ChannelHandle desktop_channel_handle(std::string(), desktop_pipe);
261 261
262 #else 262 #else
263 #error Unsupported platform. 263 #error Unsupported platform.
264 #endif 264 #endif
265 265
266 // Connect to the desktop process. 266 // Connect to the desktop process.
267 desktop_channel_ = IPC::ChannelProxy::Create(desktop_channel_handle, 267 desktop_channel_ = IPC::ChannelProxy::Create(desktop_channel_handle,
268 IPC::Channel::MODE_CLIENT, 268 IPC::Channel::MODE_CLIENT, this,
269 this, 269 io_task_runner_.get());
270 io_task_runner_.get(),
271 nullptr);
272 270
273 // Pass ID of the client (which is authenticated at this point) to the desktop 271 // Pass ID of the client (which is authenticated at this point) to the desktop
274 // session agent and start the agent. 272 // session agent and start the agent.
275 SendToDesktop(new ChromotingNetworkDesktopMsg_StartSessionAgent( 273 SendToDesktop(new ChromotingNetworkDesktopMsg_StartSessionAgent(
276 client_session_control_->client_jid(), 274 client_session_control_->client_jid(),
277 screen_resolution_, 275 screen_resolution_,
278 virtual_terminal_)); 276 virtual_terminal_));
279 277
280 return true; 278 return true;
281 } 279 }
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 } 578 }
581 579
582 // static 580 // static
583 void DesktopSessionProxyTraits::Destruct( 581 void DesktopSessionProxyTraits::Destruct(
584 const DesktopSessionProxy* desktop_session_proxy) { 582 const DesktopSessionProxy* desktop_session_proxy) {
585 desktop_session_proxy->caller_task_runner_->DeleteSoon(FROM_HERE, 583 desktop_session_proxy->caller_task_runner_->DeleteSoon(FROM_HERE,
586 desktop_session_proxy); 584 desktop_session_proxy);
587 } 585 }
588 586
589 } // namespace remoting 587 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_process_unittest.cc ('k') | remoting/host/ipc_desktop_environment_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698