| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ipc_channel_nacl.h" | 5 #include "ipc/ipc_channel_nacl.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| 11 | 11 |
| 12 #include <algorithm> | 12 #include <algorithm> |
| 13 | 13 |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
| 18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
| 19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
| 20 #include "base/task_runner_util.h" | 20 #include "base/task_runner_util.h" |
| 21 #include "base/thread_task_runner_handle.h" | |
| 22 #include "base/threading/simple_thread.h" | 21 #include "base/threading/simple_thread.h" |
| 22 #include "base/threading/thread_task_runner_handle.h" |
| 23 #include "ipc/ipc_listener.h" | 23 #include "ipc/ipc_listener.h" |
| 24 #include "ipc/ipc_logging.h" | 24 #include "ipc/ipc_logging.h" |
| 25 #include "ipc/ipc_message_attachment_set.h" | 25 #include "ipc/ipc_message_attachment_set.h" |
| 26 #include "native_client/src/public/imc_syscalls.h" | 26 #include "native_client/src/public/imc_syscalls.h" |
| 27 #include "native_client/src/public/imc_types.h" | 27 #include "native_client/src/public/imc_types.h" |
| 28 | 28 |
| 29 namespace IPC { | 29 namespace IPC { |
| 30 | 30 |
| 31 struct MessageContents { | 31 struct MessageContents { |
| 32 std::vector<char> data; | 32 std::vector<char> data; |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 | 400 |
| 401 // static | 401 // static |
| 402 std::unique_ptr<Channel> Channel::Create( | 402 std::unique_ptr<Channel> Channel::Create( |
| 403 const IPC::ChannelHandle& channel_handle, | 403 const IPC::ChannelHandle& channel_handle, |
| 404 Mode mode, | 404 Mode mode, |
| 405 Listener* listener) { | 405 Listener* listener) { |
| 406 return base::WrapUnique(new ChannelNacl(channel_handle, mode, listener)); | 406 return base::WrapUnique(new ChannelNacl(channel_handle, mode, listener)); |
| 407 } | 407 } |
| 408 | 408 |
| 409 } // namespace IPC | 409 } // namespace IPC |
| OLD | NEW |