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/child_broker_host.h" | 5 #include "mojo/edk/system/child_broker_host.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
11 #include "mojo/edk/embedder/embedder_internal.h" | 13 #include "mojo/edk/embedder/embedder_internal.h" |
12 #include "mojo/edk/embedder/platform_channel_pair.h" | 14 #include "mojo/edk/embedder/platform_channel_pair.h" |
13 #include "mojo/edk/system/broker_messages.h" | 15 #include "mojo/edk/system/broker_messages.h" |
14 #include "mojo/edk/system/broker_state.h" | 16 #include "mojo/edk/system/broker_state.h" |
15 #include "mojo/edk/system/configuration.h" | 17 #include "mojo/edk/system/configuration.h" |
16 #include "mojo/edk/system/core.h" | 18 #include "mojo/edk/system/core.h" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 BOOL result = DuplicateHandle(child_process_.Handle(), handle, | 305 BOOL result = DuplicateHandle(child_process_.Handle(), handle, |
304 base::GetCurrentProcessHandle(), &rv, 0, FALSE, | 306 base::GetCurrentProcessHandle(), &rv, 0, FALSE, |
305 DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE); | 307 DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE); |
306 DCHECK(result); | 308 DCHECK(result); |
307 return rv; | 309 return rv; |
308 } | 310 } |
309 #endif | 311 #endif |
310 | 312 |
311 } // namespace edk | 313 } // namespace edk |
312 } // namespace mojo | 314 } // namespace mojo |
OLD | NEW |