Chromium Code Reviews| Index: components/crash/content/app/fallback_crash_handling_win.h |
| diff --git a/components/crash/content/app/fallback_crash_handling_win.h b/components/crash/content/app/fallback_crash_handling_win.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..67caa68d799536077d88f77bf0d6128e6b15a881 |
| --- /dev/null |
| +++ b/components/crash/content/app/fallback_crash_handling_win.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| +#ifndef COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLING_WIN_H_ |
|
scottmg
2017/01/13 22:20:00
\n before this line
Sigurður Ásgeirsson
2017/01/16 18:23:24
Done.
|
| +#define COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLING_WIN_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/command_line.h" |
| + |
| +namespace crash_reporter { |
| + |
| +namespace switches { |
| +extern const char kFallbackCrashHandler[]; |
| +} |
| + |
| +// Sets up fallback crash handling for this process. |
| +// Note that this installs an unhandled exception filter, and requires |
| +// that the executable call the "RunAsFallbackCrashHandler" function, when |
| +// it's passed a --type switch with the value |kFallbackCrashHandlerType|. |
| +void SetupFallbackCrashHandling(const base::CommandLine& command_line); |
| + |
| +// Runs the fallback crash handler process, to handle a crash in a process |
| +// that's previously called SetupfallbackCrashHandler. |
|
scottmg
2017/01/13 22:20:00
Capital F on SetupFallback...
Sigurður Ásgeirsson
2017/01/16 18:23:24
Done.
|
| +// The |product_name|, |version| and |channel_name| parameters will be used |
| +// as propoerties of the crash for the purposes of upload. |
|
scottmg
2017/01/13 22:20:00
properties
Sigurður Ásgeirsson
2017/01/16 18:23:24
Done.
|
| +int RunAsFallbackCrashHandler(const base::CommandLine& command_line, |
| + std::string product_name, |
| + std::string version, |
| + std::string channel_name); |
| + |
| +} // namespace crash_reporter |
| + |
| +#endif // COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLING_WIN_H_ |