| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/process/process_handle.h" | 13 #include "base/process/process_handle.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "ipc/ipc_message_utils.h" | 15 #include "ipc/ipc_message_utils.h" |
| 16 #include "ipc/ipc_platform_file.h" | 16 #include "ipc/ipc_platform_file.h" |
| 17 #include "mojo/edk/embedder/embedder.h" | |
| 18 #include "mojo/edk/embedder/platform_channel_pair.h" | |
| 19 #include "mojo/public/cpp/bindings/binding.h" | 17 #include "mojo/public/cpp/bindings/binding.h" |
| 20 | 18 |
| 21 namespace IPC { | 19 namespace IPC { |
| 22 | 20 |
| 23 namespace { | 21 namespace { |
| 24 | 22 |
| 25 // MojoBootstrap for the server process. You should create the instance | 23 // MojoBootstrap for the server process. You should create the instance |
| 26 // using MojoBootstrap::Create(). | 24 // using MojoBootstrap::Create(). |
| 27 class MojoServerBootstrap : public MojoBootstrap { | 25 class MojoServerBootstrap : public MojoBootstrap { |
| 28 public: | 26 public: |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 164 |
| 167 bool MojoBootstrap::HasFailed() const { | 165 bool MojoBootstrap::HasFailed() const { |
| 168 return state() == STATE_ERROR; | 166 return state() == STATE_ERROR; |
| 169 } | 167 } |
| 170 | 168 |
| 171 mojo::ScopedMessagePipeHandle MojoBootstrap::TakeHandle() { | 169 mojo::ScopedMessagePipeHandle MojoBootstrap::TakeHandle() { |
| 172 return std::move(handle_); | 170 return std::move(handle_); |
| 173 } | 171 } |
| 174 | 172 |
| 175 } // namespace IPC | 173 } // namespace IPC |
| OLD | NEW |