OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "mojo/edk/system/broker_state.h" | 5 #include "mojo/edk/system/broker_state.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include "base/bind.h" | 10 #include "base/bind.h" |
8 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
9 #include "mojo/edk/embedder/embedder_internal.h" | 12 #include "mojo/edk/embedder/embedder_internal.h" |
10 #include "mojo/edk/embedder/platform_channel_pair.h" | 13 #include "mojo/edk/embedder/platform_channel_pair.h" |
11 #include "mojo/edk/system/child_broker_host.h" | 14 #include "mojo/edk/system/child_broker_host.h" |
12 #include "mojo/edk/system/message_pipe_dispatcher.h" | 15 #include "mojo/edk/system/message_pipe_dispatcher.h" |
13 #include "mojo/edk/system/routed_raw_channel.h" | 16 #include "mojo/edk/system/routed_raw_channel.h" |
14 | 17 |
15 namespace mojo { | 18 namespace mojo { |
16 namespace edk { | 19 namespace edk { |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 // then when it's read it returns no messages because it doesn't have the | 237 // then when it's read it returns no messages because it doesn't have the |
235 // channel yet. | 238 // channel yet. |
236 message_pipe->GotNonTransferableChannel(raw_channel->channel()); | 239 message_pipe->GotNonTransferableChannel(raw_channel->channel()); |
237 // The above call could have caused |CloseMessagePipe| to be called. | 240 // The above call could have caused |CloseMessagePipe| to be called. |
238 if (connected_pipes_.find(message_pipe) != connected_pipes_.end()) | 241 if (connected_pipes_.find(message_pipe) != connected_pipes_.end()) |
239 raw_channel->AddRoute(pipe_id, message_pipe); | 242 raw_channel->AddRoute(pipe_id, message_pipe); |
240 } | 243 } |
241 | 244 |
242 } // namespace edk | 245 } // namespace edk |
243 } // namespace mojo | 246 } // namespace mojo |
OLD | NEW |