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

Side by Side Diff: remoting/host/win/wts_session_process_delegate.cc

Issue 2911893003: Deprecate NonThreadSafe in remoting in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 6 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 // 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 <memory> 10 #include <memory>
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 WtsSessionProcessDelegate::WtsSessionProcessDelegate( 584 WtsSessionProcessDelegate::WtsSessionProcessDelegate(
585 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 585 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
586 std::unique_ptr<base::CommandLine> target_command, 586 std::unique_ptr<base::CommandLine> target_command,
587 bool launch_elevated, 587 bool launch_elevated,
588 const std::string& channel_security) { 588 const std::string& channel_security) {
589 core_ = new Core(io_task_runner, std::move(target_command), launch_elevated, 589 core_ = new Core(io_task_runner, std::move(target_command), launch_elevated,
590 channel_security); 590 channel_security);
591 } 591 }
592 592
593 WtsSessionProcessDelegate::~WtsSessionProcessDelegate() { 593 WtsSessionProcessDelegate::~WtsSessionProcessDelegate() {
594 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
594 core_->Stop(); 595 core_->Stop();
595 } 596 }
596 597
597 bool WtsSessionProcessDelegate::Initialize(uint32_t session_id) { 598 bool WtsSessionProcessDelegate::Initialize(uint32_t session_id) {
598 return core_->Initialize(session_id); 599 return core_->Initialize(session_id);
599 } 600 }
600 601
601 void WtsSessionProcessDelegate::LaunchProcess( 602 void WtsSessionProcessDelegate::LaunchProcess(
602 WorkerProcessLauncher* event_handler) { 603 WorkerProcessLauncher* event_handler) {
603 core_->LaunchProcess(event_handler); 604 core_->LaunchProcess(event_handler);
604 } 605 }
605 606
606 void WtsSessionProcessDelegate::Send(IPC::Message* message) { 607 void WtsSessionProcessDelegate::Send(IPC::Message* message) {
607 core_->Send(message); 608 core_->Send(message);
608 } 609 }
609 610
610 void WtsSessionProcessDelegate::CloseChannel() { 611 void WtsSessionProcessDelegate::CloseChannel() {
611 core_->CloseChannel(); 612 core_->CloseChannel();
612 } 613 }
613 614
614 void WtsSessionProcessDelegate::KillProcess() { 615 void WtsSessionProcessDelegate::KillProcess() {
615 core_->KillProcess(); 616 core_->KillProcess();
616 } 617 }
617 618
618 } // namespace remoting 619 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/win/wts_session_process_delegate.h ('k') | remoting/protocol/channel_multiplexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698