| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * Error codes and data structures used to report errors when loading a nexe. | 8 * Error codes and data structures used to report errors when loading a nexe. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 ERROR_PNACL_LLC_SETUP = 63, | 91 ERROR_PNACL_LLC_SETUP = 63, |
| 92 ERROR_PNACL_LD_SETUP = 64, | 92 ERROR_PNACL_LD_SETUP = 64, |
| 93 ERROR_PNACL_LLC_INTERNAL = 65, | 93 ERROR_PNACL_LLC_INTERNAL = 65, |
| 94 ERROR_PNACL_LD_INTERNAL = 66, | 94 ERROR_PNACL_LD_INTERNAL = 66, |
| 95 ERROR_PNACL_CREATE_TEMP = 67, | 95 ERROR_PNACL_CREATE_TEMP = 67, |
| 96 // Remove this next code when pnacl is no longer behind a flag (when we | 96 // Remove this next code when pnacl is no longer behind a flag (when we |
| 97 // remove the --enable-pnacl flag). | 97 // remove the --enable-pnacl flag). |
| 98 ERROR_PNACL_NOT_ENABLED = 68, | 98 ERROR_PNACL_NOT_ENABLED = 68, |
| 99 ERROR_MANIFEST_NOACCESS_URL = 69, | 99 ERROR_MANIFEST_NOACCESS_URL = 69, |
| 100 ERROR_NEXE_NOACCESS_URL = 70, | 100 ERROR_NEXE_NOACCESS_URL = 70, |
| 101 ERROR_PNACL_CACHE_HASH_MISMATCH = 71, |
| 101 // If you add a code, read the enum comment above on how to update histograms. | 102 // If you add a code, read the enum comment above on how to update histograms. |
| 102 ERROR_MAX | 103 ERROR_MAX |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 class ErrorInfo { | 106 class ErrorInfo { |
| 106 public: | 107 public: |
| 107 ErrorInfo() { | 108 ErrorInfo() { |
| 108 Reset(); | 109 Reset(); |
| 109 } | 110 } |
| 110 | 111 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 131 | 132 |
| 132 private: | 133 private: |
| 133 PluginErrorCode error_code_; | 134 PluginErrorCode error_code_; |
| 134 std::string message_; | 135 std::string message_; |
| 135 NACL_DISALLOW_COPY_AND_ASSIGN(ErrorInfo); | 136 NACL_DISALLOW_COPY_AND_ASSIGN(ErrorInfo); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace plugin | 139 } // namespace plugin |
| 139 | 140 |
| 140 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_ERROR_H | 141 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_ERROR_H |
| OLD | NEW |