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

Side by Side Diff: chrome/app/mash/mash_crash_keys.h

Issue 2718123003: mash: Store chrome --mash crash key metadata in shared memory
Patch Set: rebase Created 3 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698