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

Side by Side Diff: util/misc/tri_state.h

Issue 997713002: Allow exception forwarding to the system’s native crash reporter to be disabled (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback Created 5 years, 9 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
« no previous file with comments | « snapshot/snapshot.gyp ('k') | util/util.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Crashpad Authors. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (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
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #ifndef CRASHPAD_UTIL_MISC_TRI_STATE_H_
16 #define CRASHPAD_UTIL_MISC_TRI_STATE_H_
17
18 #include <stdint.h>
19
20 namespace crashpad {
21
22 //! \brief A tri-state value that can be unset, on, or off.
23 enum class TriState : uint8_t {
24 //! \brief The value has not explicitly been set.
25 //!
26 //! To allow a zero-initialized value to have this behavior, this must have
27 //! the value `0`.
28 kUnset = 0,
29
30 //! \brief The value has explicitly been set to on, or a behavior has
31 //! explicitly been enabled.
32 kEnabled,
33
34 //! \brief The value has explicitly been set to off, or a behavior has
35 //! explicitly been disabled.
36 kDisabled,
37 };
38
39 TriState ConvertToTriState(uint32_t value);
Robert Sesek 2015/03/11 20:26:59 Missing a file that implements this? And unused?
Mark Mentovai 2015/03/11 21:02:26 Robert Sesek wrote:
40
41 } // namespace crashpad
42
43 #endif // CRASHPAD_UTIL_MISC_TRI_STATE_H_
OLDNEW
« no previous file with comments | « snapshot/snapshot.gyp ('k') | util/util.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698