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

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

Issue 1279133006: Removed unused mojo_nacl code and GYP targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - -l Created 5 years, 4 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/interface_dsl.py ('k') | mojo/nacl/generator/mojo_irt.c.tmpl » ('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 {{generator_warning}}
6
7 #include "mojo/nacl/mojo_irt.h"
8 #include "mojo/public/c/system/core.h"
9 #include "native_client/src/public/chrome_main.h"
10 #include "native_client/src/public/imc_syscalls.h"
11 #include "native_client/src/public/imc_types.h"
12 #include "native_client/src/untrusted/irt/irt.h"
13
14 // The value for this FD must not conflict with uses inside Chromium. However,
15 // mojo/nacl doesn't depend on any Chromium headers, so we can't use a #define
16 // from there.
17 #define NACL_MOJO_DESC (NACL_CHROME_DESC_BASE + 3)
18
19 bool g_irt_mojo_valid = false;
20 struct nacl_irt_mojo g_irt_mojo;
21
22 struct nacl_irt_mojo* get_irt_mojo() {
23 if (!g_irt_mojo_valid) {
24 size_t rc = nacl_interface_query(NACL_IRT_MOJO_v0_1,
25 &g_irt_mojo,
26 sizeof(g_irt_mojo));
27 if (rc != sizeof(g_irt_mojo))
28 return NULL;
29 else
30 g_irt_mojo_valid = true;
31 }
32 return &g_irt_mojo;
33 }
34
35 {{body}}
OLDNEW
« no previous file with comments | « mojo/nacl/generator/interface_dsl.py ('k') | mojo/nacl/generator/mojo_irt.c.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698