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

Side by Side Diff: third_party/crashpad/crashpad/util/misc/metrics.h

Issue 2555353002: Update Crashpad to 32981a3ee9d7c2769fb27afa038fe2e194cfa329 (Closed)
Patch Set: fix readme Created 4 years 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
OLDNEW
1 // Copyright 2016 The Crashpad Authors. All rights reserved. 1 // Copyright 2016 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 static void CrashUploadSkipped(CrashSkippedReason reason); 82 static void CrashUploadSkipped(CrashSkippedReason reason);
83 83
84 //! \brief The result of capturing an exception. These are used as metrics 84 //! \brief The result of capturing an exception. These are used as metrics
85 //! enumeration values, so new values should always be added at the end. 85 //! enumeration values, so new values should always be added at the end.
86 enum class CaptureResult : int32_t { 86 enum class CaptureResult : int32_t {
87 //! \brief The exception capture succeeded normally. 87 //! \brief The exception capture succeeded normally.
88 kSuccess = 0, 88 kSuccess = 0,
89 89
90 //! \brief Unexpected exception behavior. 90 //! \brief Unexpected exception behavior.
91 //! 91 //!
92 //! This value is only used on Mac OS X. 92 //! This value is only used on macOS.
93 kUnexpectedExceptionBehavior = 1, 93 kUnexpectedExceptionBehavior = 1,
94 94
95 //! \brief Failed due to attempt to suspend self. 95 //! \brief Failed due to attempt to suspend self.
96 //! 96 //!
97 //! This value is only used on Mac OS X. 97 //! This value is only used on macOS.
98 kFailedDueToSuspendSelf = 2, 98 kFailedDueToSuspendSelf = 2,
99 99
100 //! \brief The process snapshot could not be captured. 100 //! \brief The process snapshot could not be captured.
101 kSnapshotFailed = 3, 101 kSnapshotFailed = 3,
102 102
103 //! \brief The exception could not be initialized. 103 //! \brief The exception could not be initialized.
104 kExceptionInitializationFailed = 4, 104 kExceptionInitializationFailed = 4,
105 105
106 //! \brief The attempt to prepare a new crash report in the crash database 106 //! \brief The attempt to prepare a new crash report in the crash database
107 //! failed. 107 //! failed.
(...skipping 27 matching lines...) Expand all
135 //! This is currently only reported on Windows. 135 //! This is currently only reported on Windows.
136 static void HandlerCrashed(uint32_t exception_code); 136 static void HandlerCrashed(uint32_t exception_code);
137 137
138 private: 138 private:
139 DISALLOW_IMPLICIT_CONSTRUCTORS(Metrics); 139 DISALLOW_IMPLICIT_CONSTRUCTORS(Metrics);
140 }; 140 };
141 141
142 } // namespace crashpad 142 } // namespace crashpad
143 143
144 #endif // CRASHPAD_UTIL_MISC_METRICS_H_ 144 #endif // CRASHPAD_UTIL_MISC_METRICS_H_
OLDNEW
« no previous file with comments | « third_party/crashpad/crashpad/util/misc/initialization_state_dcheck.h ('k') | third_party/crashpad/crashpad/util/misc/uuid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698