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/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
17 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
18 #include "base/task_runner_util.h" | 19 #include "base/task_runner_util.h" |
19 #include "base/thread_task_runner_handle.h" | 20 #include "base/thread_task_runner_handle.h" |
20 #include "base/threading/simple_thread.h" | 21 #include "base/threading/simple_thread.h" |
21 #include "ipc/ipc_listener.h" | 22 #include "ipc/ipc_listener.h" |
22 #include "ipc/ipc_logging.h" | 23 #include "ipc/ipc_logging.h" |
23 #include "ipc/ipc_message_attachment_set.h" | 24 #include "ipc/ipc_message_attachment_set.h" |
24 #include "native_client/src/public/imc_syscalls.h" | 25 #include "native_client/src/public/imc_syscalls.h" |
25 #include "native_client/src/public/imc_types.h" | 26 #include "native_client/src/public/imc_types.h" |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 // Channel's methods | 397 // Channel's methods |
397 | 398 |
398 // static | 399 // static |
399 scoped_ptr<Channel> Channel::Create(const IPC::ChannelHandle& channel_handle, | 400 scoped_ptr<Channel> Channel::Create(const IPC::ChannelHandle& channel_handle, |
400 Mode mode, | 401 Mode mode, |
401 Listener* listener) { | 402 Listener* listener) { |
402 return scoped_ptr<Channel>(new ChannelNacl(channel_handle, mode, listener)); | 403 return scoped_ptr<Channel>(new ChannelNacl(channel_handle, mode, listener)); |
403 } | 404 } |
404 | 405 |
405 } // namespace IPC | 406 } // namespace IPC |
OLD | NEW |