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

Side by Side Diff: components/crash/content/app/fallback_crash_handling_win.h

Issue 2638433002: Integrate fallback crash handling in chrome (Closed)
Patch Set: Address Scott's comments. Created 3 years, 11 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 COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLING_WIN_H_
6 #define COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLING_WIN_H_
7
8 #include <stdint.h>
9 #include <string>
10
11 #include "base/command_line.h"
12
13 namespace crash_reporter {
14
15 namespace switches {
16 extern const char kFallbackCrashHandler[];
17 }
18
19 // A somewhat unique exit code for the crashed process. This is mostly
20 // for testing, as there won't likely be anyone around to record the exit
21 // code of the Crashpad handler.
22 extern const uint32_t kFallbackCrashTerminationCode;
23
24 // Sets up fallback crash handling for this process.
25 // Note that this installs an unhandled exception filter, and requires
26 // that the executable call the "RunAsFallbackCrashHandler" function, when
27 // it's passed a --type switch with the value |kFallbackCrashHandlerType|.
28 bool SetupFallbackCrashHandling(const base::CommandLine& command_line);
29
30 // Runs the fallback crash handler process, to handle a crash in a process
31 // that's previously called SetupFallbackCrashHandling.
32 // The |product_name|, |version| and |channel_name| parameters will be used
33 // as properties of the crash for the purposes of upload.
34 int RunAsFallbackCrashHandler(const base::CommandLine& command_line,
35 std::string product_name,
36 std::string version,
37 std::string channel_name);
38
39 } // namespace crash_reporter
40
41 #endif // COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLING_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698