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

Side by Side Diff: remoting/host/win/wts_session_process_delegate.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
« no previous file with comments | « remoting/host/win/worker_process_launcher_unittest.cc ('k') | no next file » | 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 // This file implements the Windows service controlling Me2Me host processes 5 // This file implements the Windows service controlling Me2Me host processes
6 // running within user sessions. 6 // running within user sessions.
7 7
8 #include "remoting/host/win/wts_session_process_delegate.h" 8 #include "remoting/host/win/wts_session_process_delegate.h"
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 if (!CreateIpcChannel(channel_name, channel_security_, &pipe)) { 377 if (!CreateIpcChannel(channel_name, channel_security_, &pipe)) {
378 ReportFatalError(); 378 ReportFatalError();
379 return; 379 return;
380 } 380 }
381 381
382 // Wrap the pipe into an IPC channel. 382 // Wrap the pipe into an IPC channel.
383 scoped_ptr<IPC::ChannelProxy> channel( 383 scoped_ptr<IPC::ChannelProxy> channel(
384 IPC::ChannelProxy::Create(IPC::ChannelHandle(pipe.Get()), 384 IPC::ChannelProxy::Create(IPC::ChannelHandle(pipe.Get()),
385 IPC::Channel::MODE_SERVER, 385 IPC::Channel::MODE_SERVER,
386 this, 386 this,
387 io_task_runner_, 387 io_task_runner_));
388 nullptr));
389 388
390 // Pass the name of the IPC channel to use. 389 // Pass the name of the IPC channel to use.
391 command_line.AppendSwitchNative(kDaemonPipeSwitchName, 390 command_line.AppendSwitchNative(kDaemonPipeSwitchName,
392 base::UTF8ToWide(channel_name)); 391 base::UTF8ToWide(channel_name));
393 392
394 // Try to launch the process. 393 // Try to launch the process.
395 ScopedHandle worker_process; 394 ScopedHandle worker_process;
396 ScopedHandle worker_thread; 395 ScopedHandle worker_thread;
397 if (!LaunchProcessWithToken(command_line.GetProgram(), 396 if (!LaunchProcessWithToken(command_line.GetProgram(),
398 command_line.GetCommandLineString(), 397 command_line.GetCommandLineString(),
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 559
561 void WtsSessionProcessDelegate::CloseChannel() { 560 void WtsSessionProcessDelegate::CloseChannel() {
562 core_->CloseChannel(); 561 core_->CloseChannel();
563 } 562 }
564 563
565 void WtsSessionProcessDelegate::KillProcess() { 564 void WtsSessionProcessDelegate::KillProcess() {
566 core_->KillProcess(); 565 core_->KillProcess();
567 } 566 }
568 567
569 } // namespace remoting 568 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/win/worker_process_launcher_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698