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 #include "remoting/host/desktop_session_agent.h" | 5 #include "remoting/host/desktop_session_agent.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <sys/socket.h> | 8 #include <sys/socket.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 #include <unistd.h> | 10 #include <unistd.h> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 IPC::ChannelHandle(socket_name, fd), | 76 IPC::ChannelHandle(socket_name, fd), |
77 IPC::Channel::MODE_SERVER, | 77 IPC::Channel::MODE_SERVER, |
78 this, | 78 this, |
79 io_task_runner())); | 79 io_task_runner())); |
80 | 80 |
81 *client_out = base::FileDescriptor(pipe_fds[1], false); | 81 *client_out = base::FileDescriptor(pipe_fds[1], false); |
82 return true; | 82 return true; |
83 } | 83 } |
84 | 84 |
85 // static | 85 // static |
86 scoped_ptr<DesktopSessionAgent> DesktopSessionAgent::Create( | 86 scoped_refptr<DesktopSessionAgent> DesktopSessionAgent::Create( |
87 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, | 87 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, |
88 scoped_refptr<AutoThreadTaskRunner> io_task_runner) { | 88 scoped_refptr<AutoThreadTaskRunner> io_task_runner, |
89 return scoped_ptr<DesktopSessionAgent>(new DesktopSessionAgentPosix( | 89 scoped_refptr<AutoThreadTaskRunner> video_capture_task_runner) { |
90 caller_task_runner, io_task_runner)); | 90 return scoped_refptr<DesktopSessionAgent>(new DesktopSessionAgentPosix( |
| 91 caller_task_runner, io_task_runner, video_capture_task_runner)); |
91 } | 92 } |
92 | 93 |
93 } // namespace remoting | 94 } // namespace remoting |
OLD | NEW |