| 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 // WARNING this file was generated by generate_nacl_bindings.py | 5 // WARNING this file was generated by generate_nacl_bindings.py |
| 6 // Do not edit by hand. | 6 // Do not edit by hand. |
| 7 | 7 |
| 8 #include "nacl_bindings/mojo_syscall.h" | 8 #include "mojo/nacl/sfi/nacl_bindings/mojo_syscall.h" |
| 9 | 9 |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| 11 | 11 |
| 12 #include "mojo/nacl/sfi/nacl_bindings/mojo_syscall_internal.h" |
| 12 #include "mojo/public/c/system/core.h" | 13 #include "mojo/public/c/system/core.h" |
| 13 #include "mojo/public/platform/native/system_impl_private.h" | 14 #include "mojo/public/platform/native/system_impl_private.h" |
| 14 #include "nacl_bindings/mojo_syscall_internal.h" | |
| 15 #include "native_client/src/public/chrome_main.h" | 15 #include "native_client/src/public/chrome_main.h" |
| 16 #include "native_client/src/public/nacl_app.h" | 16 #include "native_client/src/public/nacl_app.h" |
| 17 #include "native_client/src/trusted/desc/nacl_desc_custom.h" | 17 #include "native_client/src/trusted/desc/nacl_desc_custom.h" |
| 18 | 18 |
| 19 MojoHandle g_mojo_handle = MOJO_HANDLE_INVALID; | 19 MojoHandle g_mojo_handle = MOJO_HANDLE_INVALID; |
| 20 MojoSystemImpl g_mojo_system = nullptr; | 20 MojoSystemImpl g_mojo_system = nullptr; |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 MojoResult _MojoGetInitialHandle(MojoHandle* handle) { | 24 MojoResult _MojoGetInitialHandle(MojoHandle* handle) { |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 MojoResult InjectMojo(struct NaClApp* nap, MojoHandle handle) { | 721 MojoResult InjectMojo(struct NaClApp* nap, MojoHandle handle) { |
| 722 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeMojoDesc(nap)); | 722 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeMojoDesc(nap)); |
| 723 g_mojo_system = MojoSystemImplCreateImpl(); | 723 g_mojo_system = MojoSystemImplCreateImpl(); |
| 724 return MojoSystemImplTransferHandle(MojoSystemImplGetDefaultImpl(), handle, | 724 return MojoSystemImplTransferHandle(MojoSystemImplGetDefaultImpl(), handle, |
| 725 g_mojo_system, &g_mojo_handle); | 725 g_mojo_system, &g_mojo_handle); |
| 726 } | 726 } |
| 727 | 727 |
| 728 void InjectDisabledMojo(struct NaClApp* nap) { | 728 void InjectDisabledMojo(struct NaClApp* nap) { |
| 729 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeDisabledMojoDesc(nap)); | 729 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeDisabledMojoDesc(nap)); |
| 730 } | 730 } |
| OLD | NEW |