Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: mojo/nacl/sfi/nacl_bindings/mojo_syscall.cc

Issue 1398213003: Refactored Non-SFI and SFI NaCl into separate directories. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « mojo/nacl/sfi/nacl_bindings/mojo_syscall.h ('k') | mojo/nacl/sfi/nacl_bindings/mojo_syscall_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698