| 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" |
| 11 #include "mojo/edk/embedder/platform_channel_pair.h" | 11 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h" |
| 12 | 12 |
| 13 namespace IPC { | 13 namespace IPC { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 // MojoBootstrap for the server process. You should create the instance | 17 // MojoBootstrap for the server process. You should create the instance |
| 18 // using MojoBootstrap::Create(). | 18 // using MojoBootstrap::Create(). |
| 19 class MojoServerBootstrap : public MojoBootstrap { | 19 class MojoServerBootstrap : public MojoBootstrap { |
| 20 public: | 20 public: |
| 21 MojoServerBootstrap(); | 21 MojoServerBootstrap(); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 int MojoBootstrap::GetClientFileDescriptor() const { | 228 int MojoBootstrap::GetClientFileDescriptor() const { |
| 229 return channel_->GetClientFileDescriptor(); | 229 return channel_->GetClientFileDescriptor(); |
| 230 } | 230 } |
| 231 | 231 |
| 232 base::ScopedFD MojoBootstrap::TakeClientFileDescriptor() { | 232 base::ScopedFD MojoBootstrap::TakeClientFileDescriptor() { |
| 233 return channel_->TakeClientFileDescriptor(); | 233 return channel_->TakeClientFileDescriptor(); |
| 234 } | 234 } |
| 235 #endif // defined(OS_POSIX) && !defined(OS_NACL) | 235 #endif // defined(OS_POSIX) && !defined(OS_NACL) |
| 236 | 236 |
| 237 } // namespace IPC | 237 } // namespace IPC |
| OLD | NEW |