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> |
11 | 11 |
12 #include "base/eintr_wrapper.h" | 12 #include "base/posix/eintr_wrapper.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
15 #include "ipc/ipc_channel_proxy.h" | 15 #include "ipc/ipc_channel_proxy.h" |
16 #include "remoting/base/auto_thread_task_runner.h" | 16 #include "remoting/base/auto_thread_task_runner.h" |
17 | 17 |
18 namespace remoting { | 18 namespace remoting { |
19 | 19 |
20 // Provides screen/audio capturing and input injection services for | 20 // Provides screen/audio capturing and input injection services for |
21 // the network process. | 21 // the network process. |
22 class DesktopSessionAgentPosix : public DesktopSessionAgent { | 22 class DesktopSessionAgentPosix : public DesktopSessionAgent { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 // static | 85 // static |
86 scoped_ptr<DesktopSessionAgent> DesktopSessionAgent::Create( | 86 scoped_ptr<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 return scoped_ptr<DesktopSessionAgent>(new DesktopSessionAgentPosix( |
90 caller_task_runner, io_task_runner)); | 90 caller_task_runner, io_task_runner)); |
91 } | 91 } |
92 | 92 |
93 } // namespace remoting | 93 } // namespace remoting |
OLD | NEW |