| OLD | NEW |
| 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/desktop_process.h" | 8 #include "remoting/host/desktop_process.h" |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 IPC::PlatformFileForTransit desktop_pipe; | 114 IPC::PlatformFileForTransit desktop_pipe; |
| 115 if (!desktop_agent_->Start(AsWeakPtr(), &desktop_pipe)) { | 115 if (!desktop_agent_->Start(AsWeakPtr(), &desktop_pipe)) { |
| 116 desktop_agent_ = NULL; | 116 desktop_agent_ = NULL; |
| 117 caller_task_runner_ = NULL; | 117 caller_task_runner_ = NULL; |
| 118 return false; | 118 return false; |
| 119 } | 119 } |
| 120 | 120 |
| 121 // Connect to the daemon. | 121 // Connect to the daemon. |
| 122 daemon_channel_.reset(new IPC::ChannelProxy(daemon_channel_name_, | 122 daemon_channel_.reset(new IPC::ChannelProxy(daemon_channel_name_, |
| 123 IPC::Channel::MODE_CLIENT, | 123 IPC::Channel::MODE_CLIENT, |
| 124 this, | 124 this, io_task_runner)); |
| 125 io_task_runner)); | |
| 126 | 125 |
| 127 // Pass |desktop_pipe| to the daemon. | 126 // Pass |desktop_pipe| to the daemon. |
| 128 daemon_channel_->Send( | 127 daemon_channel_->Send( |
| 129 new ChromotingDesktopDaemonMsg_DesktopAttached(desktop_pipe)); | 128 new ChromotingDesktopDaemonMsg_DesktopAttached(desktop_pipe)); |
| 130 | 129 |
| 131 return true; | 130 return true; |
| 132 } | 131 } |
| 133 | 132 |
| 134 void DesktopProcess::OnCrash(const std::string& function_name, | 133 void DesktopProcess::OnCrash(const std::string& function_name, |
| 135 const std::string& file_name, | 134 const std::string& file_name, |
| 136 const int& line_number) { | 135 const int& line_number) { |
| 137 // The daemon requested us to crash the process. | 136 // The daemon requested us to crash the process. |
| 138 CHECK(false); | 137 CHECK(false); |
| 139 } | 138 } |
| 140 | 139 |
| 141 } // namespace remoting | 140 } // namespace remoting |
| OLD | NEW |