Commit 31028f64 authored by mseaborn@chromium.org's avatar mseaborn@chromium.org

NaCl: Cleanup: Get some definitions from header file

Remove the duplicated prototypes and typedefs now that we have a NaCl
header file to get them from that can be #included from Chromium
without conflicts.

BUG=http://code.google.com/p/nativeclient/issues/detail?id=2628
TEST=compile

Review URL: https://chromiumcodereview.appspot.com/9565046

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124685 0039d316-1c4b-4281-b951-d872f2087c98
parent 7b54ca0d
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Copyright (c) 2012 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.
......@@ -14,6 +14,7 @@
#include "ipc/ipc_channel.h"
#include "ipc/ipc_switches.h"
#include "native_client/src/shared/imc/nacl_imc.h"
#include "native_client/src/trusted/service_runtime/sel_main_chrome.h"
#if defined(OS_LINUX)
#include "content/public/common/child_process_sandbox_support_linux.h"
......@@ -24,15 +25,6 @@
#include <io.h>
#endif
// This is ugly. We need an interface header file for the exported
// sel_ldr interfaces.
// TODO(gregoryd,sehr): Add an interface header.
#if defined(OS_WIN)
typedef HANDLE NaClHandle;
#else
typedef int NaClHandle;
#endif // NaClHandle
#if defined(OS_MACOSX)
namespace {
......@@ -69,11 +61,6 @@ int CreateMemoryObject(size_t size, bool executable) {
} // namespace
#endif // defined(OS_MACOSX)
extern "C" void NaClMainForChromium(int handle_count,
const NaClHandle* handles,
int debug);
extern "C" void NaClSetIrtFileDesc(int fd);
NaClListener::NaClListener() : debug_enabled_(false) {}
NaClListener::~NaClListener() {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment