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

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

Issue 1354973006: ipc: Remove unnecessary attachment broker plumbing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors. Created 5 years, 3 months 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/ipc_util_posix.cc ('k') | remoting/host/remoting_me2me_host.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ipc_util.h" 5 #include "remoting/host/ipc_util.h"
6 6
7 #include "base/files/file.h" 7 #include "base/files/file.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 ScopedHandle pipe; 51 ScopedHandle pipe;
52 if (!CreateIpcChannel(channel_name, security_descriptor, &pipe)) { 52 if (!CreateIpcChannel(channel_name, security_descriptor, &pipe)) {
53 return false; 53 return false;
54 } 54 }
55 55
56 // Wrap the pipe into an IPC channel. 56 // Wrap the pipe into an IPC channel.
57 scoped_ptr<IPC::ChannelProxy> server = 57 scoped_ptr<IPC::ChannelProxy> server =
58 IPC::ChannelProxy::Create(IPC::ChannelHandle(pipe.Get()), 58 IPC::ChannelProxy::Create(IPC::ChannelHandle(pipe.Get()),
59 IPC::Channel::MODE_SERVER, 59 IPC::Channel::MODE_SERVER,
60 listener, 60 listener,
61 io_task_runner, 61 io_task_runner);
62 nullptr);
63 62
64 // Convert the channel name to the pipe name. 63 // Convert the channel name to the pipe name.
65 std::string pipe_name(kChromePipeNamePrefix); 64 std::string pipe_name(kChromePipeNamePrefix);
66 pipe_name.append(channel_name); 65 pipe_name.append(channel_name);
67 66
68 SECURITY_ATTRIBUTES security_attributes = {0}; 67 SECURITY_ATTRIBUTES security_attributes = {0};
69 security_attributes.nLength = sizeof(security_attributes); 68 security_attributes.nLength = sizeof(security_attributes);
70 security_attributes.lpSecurityDescriptor = nullptr; 69 security_attributes.lpSecurityDescriptor = nullptr;
71 security_attributes.bInheritHandle = TRUE; 70 security_attributes.bInheritHandle = TRUE;
72 71
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 PLOG(ERROR) 126 PLOG(ERROR)
128 << "Failed to create the server end of the Chromoting IPC channel"; 127 << "Failed to create the server end of the Chromoting IPC channel";
129 return false; 128 return false;
130 } 129 }
131 130
132 *pipe_out = pipe.Pass(); 131 *pipe_out = pipe.Pass();
133 return true; 132 return true;
134 } 133 }
135 134
136 } // namespace remoting 135 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/ipc_util_posix.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698