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

Unified Diff: mojo/nacl/irt_mojo_nonsfi.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/nacl/irt_mojo_nonsfi.h ('k') | mojo/nacl/monacl_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/nacl/irt_mojo_nonsfi.cc
diff --git a/mojo/nacl/irt_mojo_nonsfi.cc b/mojo/nacl/irt_mojo_nonsfi.cc
deleted file mode 100644
index 29cb0b7fbe2ce9616c14da7199ed8f270b49f62d..0000000000000000000000000000000000000000
--- a/mojo/nacl/irt_mojo_nonsfi.cc
+++ /dev/null
@@ -1,63 +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.
-
-#include "mojo/nacl/irt_mojo_nonsfi.h"
-
-#include "mojo/public/c/system/functions.h"
-#include "mojo/public/platform/nacl/mojo_irt.h"
-#include "native_client/src/public/irt_core.h"
-
-namespace {
-
-MojoHandle g_mojo_handle = MOJO_HANDLE_INVALID;
-
-MojoResult _MojoGetInitialHandle(MojoHandle* handle) {
- *handle = g_mojo_handle;
- return MOJO_RESULT_OK;
-}
-
-const struct nacl_irt_mojo kIrtMojo = {
- MojoCreateSharedBuffer,
- MojoDuplicateBufferHandle,
- MojoMapBuffer,
- MojoUnmapBuffer,
- MojoCreateDataPipe,
- MojoWriteData,
- MojoBeginWriteData,
- MojoEndWriteData,
- MojoReadData,
- MojoBeginReadData,
- MojoEndReadData,
- MojoGetTimeTicksNow,
- MojoClose,
- MojoWait,
- MojoWaitMany,
- MojoCreateMessagePipe,
- MojoWriteMessage,
- MojoReadMessage,
- _MojoGetInitialHandle,
-};
-
-const struct nacl_irt_interface kIrtInterfaces[] = {
- {NACL_IRT_MOJO_v0_1, &kIrtMojo, sizeof(kIrtMojo), nullptr}};
-
-} // namespace
-
-namespace nacl {
-
-void MojoSetInitialHandle(MojoHandle handle) {
- g_mojo_handle = handle;
-}
-
-size_t MojoIrtNonsfiQuery(const char* interface_ident,
- void* table,
- size_t tablesize) {
- size_t result = nacl_irt_query_list(interface_ident, table, tablesize,
- kIrtInterfaces, sizeof(kIrtInterfaces));
- if (result != 0)
- return result;
- return nacl_irt_query_core(interface_ident, table, tablesize);
-}
-
-} // namespace nacl
« no previous file with comments | « mojo/nacl/irt_mojo_nonsfi.h ('k') | mojo/nacl/monacl_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698