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/mojo/ipc_channel_mojo.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
11 #include "ipc/ipc_listener.h" | 11 #include "ipc/ipc_listener.h" |
12 #include "ipc/ipc_logging.h" | 12 #include "ipc/ipc_logging.h" |
13 #include "ipc/ipc_message_attachment_set.h" | 13 #include "ipc/ipc_message_attachment_set.h" |
14 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
15 #include "ipc/mojo/client_channel.mojom.h" | 15 #include "ipc/mojo/client_channel.mojom.h" |
16 #include "ipc/mojo/ipc_mojo_bootstrap.h" | 16 #include "ipc/mojo/ipc_mojo_bootstrap.h" |
17 #include "ipc/mojo/ipc_mojo_handle_attachment.h" | 17 #include "ipc/mojo/ipc_mojo_handle_attachment.h" |
18 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | 18 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
| 19 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" |
19 | 20 |
20 #if defined(OS_POSIX) && !defined(OS_NACL) | 21 #if defined(OS_POSIX) && !defined(OS_NACL) |
21 #include "ipc/ipc_platform_file_attachment_posix.h" | 22 #include "ipc/ipc_platform_file_attachment_posix.h" |
22 #endif | 23 #endif |
23 | 24 |
24 namespace IPC { | 25 namespace IPC { |
25 | 26 |
26 namespace { | 27 namespace { |
27 | 28 |
28 class MojoChannelFactory : public ChannelFactory { | 29 class MojoChannelFactory : public ChannelFactory { |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 if (!ok) { | 552 if (!ok) { |
552 LOG(ERROR) << "Failed to add new Mojo handle."; | 553 LOG(ERROR) << "Failed to add new Mojo handle."; |
553 return MOJO_RESULT_UNKNOWN; | 554 return MOJO_RESULT_UNKNOWN; |
554 } | 555 } |
555 } | 556 } |
556 | 557 |
557 return MOJO_RESULT_OK; | 558 return MOJO_RESULT_OK; |
558 } | 559 } |
559 | 560 |
560 } // namespace IPC | 561 } // namespace IPC |
OLD | NEW |