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

Unified Diff: mojo/nacl/generator/mojo_irt.c.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/nacl/generator/libmojo.cc.tmpl ('k') | mojo/nacl/generator/mojo_irt.h.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/nacl/generator/mojo_irt.c.tmpl
diff --git a/mojo/nacl/generator/mojo_irt.c.tmpl b/mojo/nacl/generator/mojo_irt.c.tmpl
deleted file mode 100644
index e205496ace1b6608877cbba5fe06f6d3169f3814..0000000000000000000000000000000000000000
--- a/mojo/nacl/generator/mojo_irt.c.tmpl
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-{{generator_warning}}
-
-#include <stdio.h>
-#include <string.h>
-
-#include "mojo/nacl/mojo_irt.h"
-#include "mojo/public/c/system/core.h"
-#include "native_client/src/public/chrome_main.h"
-#include "native_client/src/public/imc_syscalls.h"
-#include "native_client/src/public/imc_types.h"
-#include "native_client/src/public/irt_core.h"
-
-#define NACL_MOJO_DESC (NACL_CHROME_DESC_BASE + 3)
-
-static void DoMojoCall(uint32_t params[], nacl_abi_size_t num_params) {
- struct NaClAbiNaClImcMsgIoVec iov[1] = {
- {params, num_params}
- };
- struct NaClAbiNaClImcMsgHdr msgh = {iov, 1, NULL, 0};
- // Note: return value unchecked. We're relying on the result parameter being
- // unmodified - if the syscall fails, the Mojo function will return whatever
- // the result parameter was initialized to before this function was called.
- imc_sendmsg(NACL_MOJO_DESC, &msgh, 0);
-}
-
-{{body}}
-
-size_t mojo_irt_query(const char* interface_ident,
- void* table,
- size_t tablesize) {
- static const size_t size = sizeof(kIrtMojo);
- if (0 == strcmp(interface_ident, NACL_IRT_MOJO_v0_1)) {
- if (size <= tablesize) {
- memcpy(table, &kIrtMojo, size);
- return size;
- }
- }
- return 0;
-}
« no previous file with comments | « mojo/nacl/generator/libmojo.cc.tmpl ('k') | mojo/nacl/generator/mojo_irt.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698