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 #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.
| |
| 5 #define COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLING_WIN_H_ | |
| 6 | |
| 7 #include <string> | |
| 8 | |
| 9 #include "base/command_line.h" | |
| 10 | |
| 11 namespace crash_reporter { | |
| 12 | |
| 13 namespace switches { | |
| 14 extern const char kFallbackCrashHandler[]; | |
| 15 } | |
| 16 | |
| 17 // Sets up fallback crash handling for this process. | |
| 18 // Note that this installs an unhandled exception filter, and requires | |
| 19 // that the executable call the "RunAsFallbackCrashHandler" function, when | |
| 20 // it's passed a --type switch with the value |kFallbackCrashHandlerType|. | |
| 21 void SetupFallbackCrashHandling(const base::CommandLine& command_line); | |
| 22 | |
| 23 // Runs the fallback crash handler process, to handle a crash in a process | |
| 24 // 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.
| |
| 25 // The |product_name|, |version| and |channel_name| parameters will be used | |
| 26 // 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.
| |
| 27 int RunAsFallbackCrashHandler(const base::CommandLine& command_line, | |
| 28 std::string product_name, | |
| 29 std::string version, | |
| 30 std::string channel_name); | |
| 31 | |
| 32 } // namespace crash_reporter | |
| 33 | |
| 34 #endif // COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLING_WIN_H_ | |
| OLD | NEW |