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

Side by Side Diff: mojo/nacl/generator/mojo_syscall.cc.tmpl

Issue 846443006: Include Mojo SDK/EDK via fully-qualified paths in Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix include to satisfy checkdeps Created 5 years, 11 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/generator/libmojo.cc.tmpl ('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
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 "mojo/nacl/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 "mojo/nacl/mojo_syscall_internal.h"
12 #include "mojo/public/c/system/core.h"
13 #include "native_client/src/public/chrome_main.h" 12 #include "native_client/src/public/chrome_main.h"
14 #include "native_client/src/public/nacl_app.h" 13 #include "native_client/src/public/nacl_app.h"
15 #include "native_client/src/trusted/desc/nacl_desc_custom.h" 14 #include "native_client/src/trusted/desc/nacl_desc_custom.h"
15 #include "third_party/mojo/src/mojo/public/c/system/core.h"
16 16
17 namespace { 17 namespace {
18 18
19 void MojoDescDestroy(void* handle) { 19 void MojoDescDestroy(void* handle) {
20 } 20 }
21 21
22 ssize_t MojoDescSendMsg(void* handle, 22 ssize_t MojoDescSendMsg(void* handle,
23 const struct NaClImcTypedMsgHdr* msg, 23 const struct NaClImcTypedMsgHdr* msg,
24 int flags) { 24 int flags) {
25 struct NaClApp* nap = static_cast<struct NaClApp*>(handle); 25 struct NaClApp* nap = static_cast<struct NaClApp*>(handle);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // from there. 89 // from there.
90 #define NACL_MOJO_DESC (NACL_CHROME_DESC_BASE + 3) 90 #define NACL_MOJO_DESC (NACL_CHROME_DESC_BASE + 3)
91 91
92 void InjectMojo(struct NaClApp* nap) { 92 void InjectMojo(struct NaClApp* nap) {
93 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeMojoDesc(nap)); 93 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeMojoDesc(nap));
94 } 94 }
95 95
96 void InjectDisabledMojo(struct NaClApp* nap) { 96 void InjectDisabledMojo(struct NaClApp* nap) {
97 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeDisabledMojoDesc(nap)); 97 NaClAppSetDesc(nap, NACL_MOJO_DESC, MakeDisabledMojoDesc(nap));
98 } 98 }
OLDNEW
« no previous file with comments | « mojo/nacl/generator/libmojo.cc.tmpl ('k') | mojo/nacl/monacl_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698