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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 base::Unretained(this)), | 84 base::Unretained(this)), |
85 &desktop_pipe)) { | 85 &desktop_pipe)) { |
86 desktop_agent_.reset(); | 86 desktop_agent_.reset(); |
87 return false; | 87 return false; |
88 } | 88 } |
89 | 89 |
90 // Connect to the daemon. | 90 // Connect to the daemon. |
91 daemon_channel_.reset(new IPC::ChannelProxy(daemon_channel_name_, | 91 daemon_channel_.reset(new IPC::ChannelProxy(daemon_channel_name_, |
92 IPC::Channel::MODE_CLIENT, | 92 IPC::Channel::MODE_CLIENT, |
93 this, | 93 this, |
94 io_task_runner)); | 94 io_task_runner.get())); |
95 | 95 |
96 // Pass |desktop_pipe| to the daemon. | 96 // Pass |desktop_pipe| to the daemon. |
97 daemon_channel_->Send( | 97 daemon_channel_->Send( |
98 new ChromotingDesktopDaemonMsg_DesktopAttached(desktop_pipe)); | 98 new ChromotingDesktopDaemonMsg_DesktopAttached(desktop_pipe)); |
99 | 99 |
100 return true; | 100 return true; |
101 } | 101 } |
102 | 102 |
103 void DesktopProcess::OnCrash(const std::string& function_name, | 103 void DesktopProcess::OnCrash(const std::string& function_name, |
104 const std::string& file_name, | 104 const std::string& file_name, |
105 const int& line_number) { | 105 const int& line_number) { |
106 // The daemon requested us to crash the process. | 106 // The daemon requested us to crash the process. |
107 CHECK(false); | 107 CHECK(false); |
108 } | 108 } |
109 | 109 |
110 } // namespace remoting | 110 } // namespace remoting |
OLD | NEW |