| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|