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_channel_mojo.h" | 5 #include "ipc/ipc_channel_mojo.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
19 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
21 #include "ipc/ipc_listener.h" | 21 #include "ipc/ipc_listener.h" |
22 #include "ipc/ipc_logging.h" | 22 #include "ipc/ipc_logging.h" |
23 #include "ipc/ipc_message_attachment_set.h" | 23 #include "ipc/ipc_message_attachment_set.h" |
24 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.h" |
25 #include "ipc/mojo/ipc_mojo_bootstrap.h" | 25 #include "ipc/ipc_mojo_bootstrap.h" |
26 #include "ipc/mojo/ipc_mojo_handle_attachment.h" | 26 #include "ipc/ipc_mojo_handle_attachment.h" |
27 #include "mojo/public/cpp/bindings/binding.h" | 27 #include "mojo/public/cpp/bindings/binding.h" |
28 #include "mojo/public/cpp/system/platform_handle.h" | 28 #include "mojo/public/cpp/system/platform_handle.h" |
29 | 29 |
30 #if defined(OS_POSIX) | 30 #if defined(OS_POSIX) |
31 #include "ipc/ipc_platform_file_attachment_posix.h" | 31 #include "ipc/ipc_platform_file_attachment_posix.h" |
32 #endif | 32 #endif |
33 | 33 |
34 #if defined(OS_MACOSX) | 34 #if defined(OS_MACOSX) |
35 #include "ipc/mach_port_attachment_mac.h" | 35 #include "ipc/mach_port_attachment_mac.h" |
36 #endif | 36 #endif |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 DCHECK(ok); | 463 DCHECK(ok); |
464 if (!ok) { | 464 if (!ok) { |
465 LOG(ERROR) << "Failed to add new Mojo handle."; | 465 LOG(ERROR) << "Failed to add new Mojo handle."; |
466 return MOJO_RESULT_UNKNOWN; | 466 return MOJO_RESULT_UNKNOWN; |
467 } | 467 } |
468 } | 468 } |
469 return MOJO_RESULT_OK; | 469 return MOJO_RESULT_OK; |
470 } | 470 } |
471 | 471 |
472 } // namespace IPC | 472 } // namespace IPC |
OLD | NEW |