cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / ppapi / native_client / src / trusted / plugin / nexe_arch.h
blob0f8d24619ec52eb191ef2b96e21b5b33cd5356ad
1 /*
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
7 // Routines for determining the most appropriate NaCl executable for
8 // the current CPU's architecture.
10 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NEXE_ARCH_H_
11 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NEXE_ARCH_H_
13 #include "native_client/src/include/portability.h"
15 namespace plugin {
16 // Returns the kind of SFI sandbox implemented by sel_ldr on this
17 // platform. See the implementation in nexe_arch.cc for possible values.
19 // This is a function of the current CPU, OS, browser, installed
20 // sel_ldr(s). It is not sufficient to derive the result only from
21 // build-time parameters since, for example, an x86-32 plugin is
22 // capable of launching a 64-bit NaCl sandbox if a 64-bit sel_ldr is
23 // installed (and indeed, may only be capable of launching a 64-bit
24 // sandbox).
26 // Note: The platform-sepcific implementations for this are under
27 // <platform>/nexe_arch.cc
28 const char* GetSandboxISA();
29 } // namespace plugin
31 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NEXE_ARCH_H_