| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 // Routines for determining the most appropriate NaCl executable for | 7 // Routines for determining the most appropriate NaCl executable for |
| 8 // the current CPU's architecture. | 8 // the current CPU's architecture. |
| 9 | 9 |
| 10 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_NEXE_ARCH_H_ | 10 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NEXE_ARCH_H_ |
| 11 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_NEXE_ARCH_H_ | 11 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NEXE_ARCH_H_ |
| 12 | 12 |
| 13 #include "native_client/src/include/nacl_string.h" | 13 #include "native_client/src/include/nacl_string.h" |
| 14 | 14 |
| 15 namespace plugin { | 15 namespace plugin { |
| 16 | 16 |
| 17 // On success, Parses the <embed nexes="..."> attribute and determines | 17 // On success, Parses the <embed nexes="..."> attribute and determines |
| 18 // the returns the URL of the nexe module appropriate for the | 18 // the returns the URL of the nexe module appropriate for the |
| 19 // NaCl sandbox implemented by the installed sel_ldr. | 19 // NaCl sandbox implemented by the installed sel_ldr. |
| 20 // | 20 // |
| 21 // On success, true is returned and |*result| is updated with the URL. | 21 // On success, true is returned and |*result| is updated with the URL. |
| 22 // On failure, false is returned, and |*result| is updated with an | 22 // On failure, false is returned, and |*result| is updated with an |
| 23 // informative error message. | 23 // informative error message. |
| 24 extern bool GetNexeURL(const char* nexes_attr, nacl::string* result); | 24 extern bool GetNexeURL(const char* nexes_attr, nacl::string* result); |
| 25 | 25 |
| 26 } // namespace plugin | 26 } // namespace plugin |
| 27 | 27 |
| 28 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_NEXE_ARCH_H_ | 28 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NEXE_ARCH_H_ |
| OLD | NEW |