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 {{generator_warning}} | 5 {{generator_warning}} |
6 | 6 |
7 #include "mojo/nacl/mojo_syscall.h" | 7 #include "{{bindings_dir}}/mojo_syscall.h" |
8 | 8 |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 | 10 |
11 #include "mojo/nacl/mojo_syscall_internal.h" | 11 #include "{{bindings_dir}}/mojo_syscall_internal.h" |
12 #include "mojo/public/c/system/core.h" | 12 #include "mojo/public/c/system/core.h" |
13 #include "native_client/src/public/chrome_main.h" | 13 #include "native_client/src/public/chrome_main.h" |
14 #include "native_client/src/public/nacl_app.h" | 14 #include "native_client/src/public/nacl_app.h" |
15 #include "native_client/src/trusted/desc/nacl_desc_custom.h" | 15 #include "native_client/src/trusted/desc/nacl_desc_custom.h" |
16 | 16 |
17 MojoHandle g_mojo_handle = MOJO_HANDLE_INVALID; | 17 MojoHandle g_mojo_handle = MOJO_HANDLE_INVALID; |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 MojoResult _MojoGetInitialHandle(MojoHandle* handle) { | 21 MojoResult _MojoGetInitialHandle(MojoHandle* handle) { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 } | 102 } |
103 | 103 |
104 void InjectMojo(struct NaClApp* nap, MojoHandle handle) { | 104 void InjectMojo(struct NaClApp* nap, MojoHandle handle) { |
105 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeMojoDesc(nap)); | 105 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeMojoDesc(nap)); |
106 g_mojo_handle = handle; | 106 g_mojo_handle = handle; |
107 } | 107 } |
108 | 108 |
109 void InjectDisabledMojo(struct NaClApp* nap) { | 109 void InjectDisabledMojo(struct NaClApp* nap) { |
110 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeDisabledMojoDesc(nap)); | 110 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeDisabledMojoDesc(nap)); |
111 } | 111 } |
OLD | NEW |