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

Side by Side Diff: ipc/mojo/ipc_mojo_bootstrap.cc

Issue 621613002: Refactoring: Make IPC::Channel::TakeClientFileDescriptor() a ScopedFD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Mac build Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ipc/mojo/ipc_mojo_bootstrap.h" 5 #include "ipc/mojo/ipc_mojo_bootstrap.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/process/process_handle.h" 8 #include "base/process/process_handle.h"
9 #include "ipc/ipc_message_utils.h" 9 #include "ipc/ipc_message_utils.h"
10 #include "ipc/ipc_platform_file.h" 10 #include "ipc/ipc_platform_file.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 bool MojoBootstrap::Send(Message* message) { 205 bool MojoBootstrap::Send(Message* message) {
206 return channel_->Send(message); 206 return channel_->Send(message);
207 } 207 }
208 208
209 #if defined(OS_POSIX) && !defined(OS_NACL) 209 #if defined(OS_POSIX) && !defined(OS_NACL)
210 int MojoBootstrap::GetClientFileDescriptor() const { 210 int MojoBootstrap::GetClientFileDescriptor() const {
211 return channel_->GetClientFileDescriptor(); 211 return channel_->GetClientFileDescriptor();
212 } 212 }
213 213
214 int MojoBootstrap::TakeClientFileDescriptor() { 214 base::ScopedFD MojoBootstrap::TakeClientFileDescriptor() {
215 return channel_->TakeClientFileDescriptor(); 215 return channel_->TakeClientFileDescriptor();
216 } 216 }
217 #endif // defined(OS_POSIX) && !defined(OS_NACL) 217 #endif // defined(OS_POSIX) && !defined(OS_NACL)
218 218
219 } // namespace IPC 219 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698