| 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 |
| 11 #include <sddl.h> | 11 #include <sddl.h> |
| 12 | 12 |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
| 16 #include "base/rand_util.h" | 16 #include "base/rand_util.h" |
| 17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 18 #include "base/string16.h" | 18 #include "base/strings/string16.h" |
| 19 #include "base/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
| 22 #include "base/win/scoped_handle.h" | 22 #include "base/win/scoped_handle.h" |
| 23 #include "base/win/windows_version.h" | 23 #include "base/win/windows_version.h" |
| 24 #include "ipc/ipc_channel.h" | 24 #include "ipc/ipc_channel.h" |
| 25 #include "ipc/ipc_channel_proxy.h" | 25 #include "ipc/ipc_channel_proxy.h" |
| 26 #include "ipc/ipc_message.h" | 26 #include "ipc/ipc_message.h" |
| 27 #include "remoting/base/typed_buffer.h" | 27 #include "remoting/base/typed_buffer.h" |
| 28 #include "remoting/host/ipc_constants.h" | 28 #include "remoting/host/ipc_constants.h" |
| 29 #include "remoting/host/ipc_util.h" | 29 #include "remoting/host/ipc_util.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 0)) { | 408 0)) { |
| 409 LOG_GETLASTERROR(ERROR) << "Failed to duplicate a handle"; | 409 LOG_GETLASTERROR(ERROR) << "Failed to duplicate a handle"; |
| 410 ReportFatalError(); | 410 ReportFatalError(); |
| 411 return; | 411 return; |
| 412 } | 412 } |
| 413 | 413 |
| 414 event_handler_->OnProcessLaunched(limited_handle.Pass()); | 414 event_handler_->OnProcessLaunched(limited_handle.Pass()); |
| 415 } | 415 } |
| 416 | 416 |
| 417 } // namespace remoting | 417 } // namespace remoting |
| OLD | NEW |