manzagop | f232266 | 2016-09-27 11:39:59 | [diff] [blame] | 1 | // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
manzagop | 6d14991 | 2016-12-19 20:17:09 | [diff] [blame] | 5 | #ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_ |
| 6 | #define COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_ |
| 7 | |
| 8 | #include <stdint.h> |
manzagop | f232266 | 2016-09-27 11:39:59 | [diff] [blame] | 9 | |
manzagop | 6d14991 | 2016-12-19 20:17:09 | [diff] [blame] | 10 | #include "base/strings/string_piece.h" |
manzagop | f232266 | 2016-09-27 11:39:59 | [diff] [blame] | 11 | |
| 12 | namespace browser_watcher { |
| 13 | |
manzagop | 6d14991 | 2016-12-19 20:17:09 | [diff] [blame] | 14 | // Adds or updates the global stability user data. |
manzagop | ba8991e | 2017-05-08 21:05:21 | [diff] [blame] | 15 | void SetStabilityDataBool(base::StringPiece name, bool value); |
manzagop | 6d14991 | 2016-12-19 20:17:09 | [diff] [blame] | 16 | void SetStabilityDataInt(base::StringPiece name, int64_t value); |
| 17 | |
manzagop | e17e32d | 2017-06-14 20:51:27 | [diff] [blame] | 18 | // Registers a vectored exception handler that stores exception details to the |
| 19 | // stability file. |
| 20 | void RegisterStabilityVEH(); |
| 21 | |
manzagop | f232266 | 2016-09-27 11:39:59 | [diff] [blame] | 22 | } // namespace browser_watcher |
| 23 | |
manzagop | 6d14991 | 2016-12-19 20:17:09 | [diff] [blame] | 24 | #endif // COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_ |