Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1077)

Side by Side Diff: remoting/host/desktop_session_agent_posix.cc

Issue 11413022: DesktopSessionAgent now hosts the video capturer and provides necessary plumbing to drive it via an… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698