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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « remoting/host/desktop_process.cc ('k') | remoting/host/host_key_pair.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 std::string channel_name = IPC::Channel::GenerateUniqueRandomChannelID(); 69 std::string channel_name = IPC::Channel::GenerateUniqueRandomChannelID();
70 std::string socket_name = "DesktopSessionAgent socket"; 70 std::string socket_name = "DesktopSessionAgent socket";
71 71
72 // Wrap the pipe into an IPC channel. 72 // Wrap the pipe into an IPC channel.
73 base::FileDescriptor fd(pipe_fds[0], false); 73 base::FileDescriptor fd(pipe_fds[0], false);
74 IPC::ChannelHandle handle(socket_name, fd); 74 IPC::ChannelHandle handle(socket_name, fd);
75 server_out->reset(new IPC::ChannelProxy( 75 server_out->reset(new IPC::ChannelProxy(
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().get()));
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_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
OLDNEW
« no previous file with comments | « remoting/host/desktop_process.cc ('k') | remoting/host/host_key_pair.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698