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" | |
20 | 19 |
21 #if defined(OS_POSIX) && !defined(OS_NACL) | 20 #if defined(OS_POSIX) && !defined(OS_NACL) |
22 #include "ipc/ipc_platform_file_attachment_posix.h" | 21 #include "ipc/ipc_platform_file_attachment_posix.h" |
23 #endif | 22 #endif |
24 | 23 |
25 namespace IPC { | 24 namespace IPC { |
26 | 25 |
27 namespace { | 26 namespace { |
28 | 27 |
29 class MojoChannelFactory : public ChannelFactory { | 28 class MojoChannelFactory : public ChannelFactory { |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 if (!ok) { | 551 if (!ok) { |
553 LOG(ERROR) << "Failed to add new Mojo handle."; | 552 LOG(ERROR) << "Failed to add new Mojo handle."; |
554 return MOJO_RESULT_UNKNOWN; | 553 return MOJO_RESULT_UNKNOWN; |
555 } | 554 } |
556 } | 555 } |
557 | 556 |
558 return MOJO_RESULT_OK; | 557 return MOJO_RESULT_OK; |
559 } | 558 } |
560 | 559 |
561 } // namespace IPC | 560 } // namespace IPC |
OLD | NEW |