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

Side by Side Diff: mojo/nacl/monacl_sel_main.cc

Issue 955113002: Rearrange mojo/nacl files. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 10 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
« no previous file with comments | « mojo/nacl/monacl_sel_main.h ('k') | mojo/nacl/monacl_shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "mojo/nacl/monacl_sel_main.h"
6
7 #include "mojo/nacl/mojo_syscall.h"
8 #include "native_client/src/public/chrome_main.h"
9 #include "native_client/src/public/nacl_app.h"
10
11 namespace mojo {
12
13 int LaunchNaCl(NaClDesc* nexe_desc,
14 NaClDesc* irt_desc,
15 int app_argc,
16 char* app_argv[],
17 MojoHandle handle) {
18 NaClChromeMainInit();
19
20 struct NaClChromeMainArgs* args = NaClChromeMainArgsCreate();
21 args->nexe_desc = nexe_desc;
22 args->irt_desc = irt_desc;
23
24 args->argc = app_argc;
25 args->argv = app_argv;
26
27 struct NaClApp* nap = NaClAppCreate();
28 InjectMojo(nap, handle);
29
30 int exit_status = 1;
31 NaClChromeMainStart(nap, args, &exit_status);
32 return exit_status;
33 }
34
35 void NaClExit(int code) {
36 ::NaClExit(code);
37 }
38
39 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/nacl/monacl_sel_main.h ('k') | mojo/nacl/monacl_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698