Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Side by Side Diff: ppapi/native_client/src/trusted/plugin/plugin_error.h

Issue 11881038: Refine PNaCl pexe fetch UMA errors to know if the user aborted, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ERROR_PNACL_CACHE_FILEOPEN_OTHER = 49, 77 ERROR_PNACL_CACHE_FILEOPEN_OTHER = 49,
78 ERROR_PNACL_CACHE_FETCH_NOACCESS = 50, 78 ERROR_PNACL_CACHE_FETCH_NOACCESS = 50,
79 ERROR_PNACL_CACHE_FETCH_NOTFOUND = 51, 79 ERROR_PNACL_CACHE_FETCH_NOTFOUND = 51,
80 ERROR_PNACL_CACHE_FETCH_OTHER = 52, 80 ERROR_PNACL_CACHE_FETCH_OTHER = 52,
81 ERROR_PNACL_CACHE_FINALIZE_COPY_NOQUOTA = 53, 81 ERROR_PNACL_CACHE_FINALIZE_COPY_NOQUOTA = 53,
82 ERROR_PNACL_CACHE_FINALIZE_COPY_NOSPACE = 54, 82 ERROR_PNACL_CACHE_FINALIZE_COPY_NOSPACE = 54,
83 ERROR_PNACL_CACHE_FINALIZE_COPY_OTHER = 55, 83 ERROR_PNACL_CACHE_FINALIZE_COPY_OTHER = 55,
84 ERROR_PNACL_CACHE_FINALIZE_RENAME_NOACCESS = 56, 84 ERROR_PNACL_CACHE_FINALIZE_RENAME_NOACCESS = 56,
85 ERROR_PNACL_CACHE_FINALIZE_RENAME_OTHER = 57, 85 ERROR_PNACL_CACHE_FINALIZE_RENAME_OTHER = 57,
86 ERROR_PNACL_RESOURCE_FETCH = 58, 86 ERROR_PNACL_RESOURCE_FETCH = 58,
87 ERROR_PNACL_PEXE_FETCH = 59, 87 ERROR_PNACL_PEXE_FETCH_ABORTED = 59,
Nick Bray (chromium) 2013/01/15 23:12:49 Only renumber if you're fine with this data being
jvoung (off chromium) 2013/01/16 01:31:24 Done.
88 ERROR_PNACL_THREAD_CREATE = 60, 88 ERROR_PNACL_PEXE_FETCH_NOACCESS = 60,
89 ERROR_PNACL_LLC_SETUP = 61, 89 ERROR_PNACL_PEXE_FETCH_OTHER = 61,
90 ERROR_PNACL_LD_SETUP = 62, 90 ERROR_PNACL_THREAD_CREATE = 62,
91 ERROR_PNACL_LLC_INTERNAL = 63, 91 ERROR_PNACL_LLC_SETUP = 63,
92 ERROR_PNACL_LD_INTERNAL = 64, 92 ERROR_PNACL_LD_SETUP = 64,
93 ERROR_PNACL_CREATE_TEMP = 65, 93 ERROR_PNACL_LLC_INTERNAL = 65,
94 ERROR_PNACL_LD_INTERNAL = 66,
95 ERROR_PNACL_CREATE_TEMP = 67,
94 // 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
95 // remove the --enable-pnacl flag). 97 // remove the --enable-pnacl flag).
96 ERROR_PNACL_NOT_ENABLED = 66, 98 ERROR_PNACL_NOT_ENABLED = 68,
97 // If you add a code, read the enum comment above on how to update histograms. 99 // If you add a code, read the enum comment above on how to update histograms.
98 ERROR_MAX 100 ERROR_MAX
99 }; 101 };
100 102
103 // Refinements for ERROR_PNACL_LLC_INTERNAL.
104 enum PNaClLLCErrorCode {
105 ERROR_PNACL_LLC_STREAM_INIT = 1,
Nick Bray (chromium) 2013/01/15 23:12:49 It's unclear to me if these enums belong here (or
jvoung (off chromium) 2013/01/16 01:31:24 Perhaps they can be moved to a pnacl specific file
106 ERROR_PNACL_LLC_OOM = 2,
107 ERROR_PNACL_LLC_BITCODE_ABI = 3,
108 ERROR_PNACL_LLC_UNKNOWN = 4,
109 ERROR_PNACL_LLC_MAX
110 };
111
112 // Refinements for ERROR_PNACL_LD_INTERNAL.
113 enum PNaClLDErrorCode {
114 ERROR_PNACL_LD_UNDEFINED_SYMBOLS = 1,
115 ERROR_PNACL_LD_OOM = 2,
116 ERROR_PNACL_LD_UNKNOWN = 3,
117 ERROR_PNACL_LD_MAX
118 };
119
101 class ErrorInfo { 120 class ErrorInfo {
102 public: 121 public:
103 ErrorInfo() { 122 ErrorInfo() {
104 Reset(); 123 Reset();
105 } 124 }
106 125
107 void Reset() { 126 void Reset() {
108 SetReport(ERROR_UNKNOWN, ""); 127 SetReport(ERROR_UNKNOWN, "");
109 } 128 }
110 129
(...skipping 16 matching lines...) Expand all
127 146
128 private: 147 private:
129 PluginErrorCode error_code_; 148 PluginErrorCode error_code_;
130 std::string message_; 149 std::string message_;
131 NACL_DISALLOW_COPY_AND_ASSIGN(ErrorInfo); 150 NACL_DISALLOW_COPY_AND_ASSIGN(ErrorInfo);
132 }; 151 };
133 152
134 } // namespace plugin 153 } // namespace plugin
135 154
136 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_ERROR_H 155 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_ERROR_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698