2 * Copyright (c) 2011 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.
8 * Error codes and data structures used to report errors when loading a nexe.
11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_ERROR_H
12 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_ERROR_H
16 #include "native_client/src/include/nacl_macros.h"
17 #include "ppapi/c/private/ppb_nacl_private.h"
24 SetReport(PP_NACL_ERROR_UNKNOWN
, std::string());
27 void SetReport(PP_NaClError error_code
, const std::string
& message
) {
28 error_code_
= error_code
;
32 PP_NaClError
error_code() const {
36 const std::string
& message() const {
41 PP_NaClError error_code_
;
43 NACL_DISALLOW_COPY_AND_ASSIGN(ErrorInfo
);
48 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_ERROR_H