Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 | |
| 5 #ifndef CHROME_APP_MASH_MASH_CRASH_KEYS_H_ | |
| 6 #define CHROME_APP_MASH_MASH_CRASH_KEYS_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 | |
| 10 #if !defined(OS_CHROMEOS) | |
| 11 #error Unsupported platform | |
|
hashimoto
2017/03/02 07:42:23
Why do we need this when mash_crash_keys.cc is alr
| |
| 12 #endif | |
| 13 | |
| 14 namespace mash_crash_keys { | |
| 15 | |
| 16 // Initializes mash support for crash keys (see base::debug::crash_logging.h). | |
|
hashimoto
2017/03/02 07:42:22
nit: "base::debug::crash_logging.h" -> "base/debug
| |
| 17 // Uses shared memory to provide crash metadata to the OS-level crash_reporter | |
| 18 // process. | |
| 19 void Initialize(); | |
| 20 | |
| 21 // Cleans up the shared memory used for crash keys. | |
| 22 void Shutdown(); | |
| 23 | |
| 24 // Returns the number of crash keys that have been set. | |
| 25 size_t GetCrashKeyCountForTesting(); | |
| 26 | |
| 27 // Returns the shared memory file descriptor. | |
| 28 int GetSharedMemoryFdForTesting(); | |
| 29 | |
| 30 } // namespace mash_crash_keys | |
| 31 | |
| 32 #endif // CHROME_APP_MASH_MASH_CRASH_KEYS_H_ | |
| OLD | NEW |