OLD | NEW |
1 | 1 |
2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 // | 5 // |
6 // This file implements the Windows service controlling Me2Me host processes | 6 // This file implements the Windows service controlling Me2Me host processes |
7 // running within user sessions. | 7 // running within user sessions. |
8 | 8 |
9 #include "remoting/host/win/unprivileged_process_delegate.h" | 9 #include "remoting/host/win/unprivileged_process_delegate.h" |
10 | 10 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 } | 207 } |
208 | 208 |
209 handles.Swap(*handles_out); | 209 handles.Swap(*handles_out); |
210 return true; | 210 return true; |
211 } | 211 } |
212 | 212 |
213 } // namespace | 213 } // namespace |
214 | 214 |
215 UnprivilegedProcessDelegate::UnprivilegedProcessDelegate( | 215 UnprivilegedProcessDelegate::UnprivilegedProcessDelegate( |
216 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 216 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
217 scoped_ptr<CommandLine> target_command) | 217 scoped_ptr<base::CommandLine> target_command) |
218 : io_task_runner_(io_task_runner), | 218 : io_task_runner_(io_task_runner), |
219 event_handler_(NULL), | 219 event_handler_(NULL), |
220 target_command_(target_command.Pass()) { | 220 target_command_(target_command.Pass()) { |
221 } | 221 } |
222 | 222 |
223 UnprivilegedProcessDelegate::~UnprivilegedProcessDelegate() { | 223 UnprivilegedProcessDelegate::~UnprivilegedProcessDelegate() { |
224 DCHECK(CalledOnValidThread()); | 224 DCHECK(CalledOnValidThread()); |
225 DCHECK(!channel_); | 225 DCHECK(!channel_); |
226 DCHECK(!worker_process_.IsValid()); | 226 DCHECK(!worker_process_.IsValid()); |
227 } | 227 } |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 PLOG(ERROR) << "Failed to duplicate a handle"; | 411 PLOG(ERROR) << "Failed to duplicate a handle"; |
412 ReportFatalError(); | 412 ReportFatalError(); |
413 return; | 413 return; |
414 } | 414 } |
415 ScopedHandle limited_handle(temp_handle); | 415 ScopedHandle limited_handle(temp_handle); |
416 | 416 |
417 event_handler_->OnProcessLaunched(limited_handle.Pass()); | 417 event_handler_->OnProcessLaunched(limited_handle.Pass()); |
418 } | 418 } |
419 | 419 |
420 } // namespace remoting | 420 } // namespace remoting |
OLD | NEW |