| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ | |
| 6 #define CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 | |
| 10 namespace base { | |
| 11 class CommandLine; | |
| 12 class Version; | |
| 13 } // namespace base | |
| 14 | |
| 15 namespace installer { | |
| 16 | |
| 17 class InstallerState; | |
| 18 | |
| 19 // Sets up the crash reporting system for the installer. | |
| 20 void ConfigureCrashReporting(const InstallerState& installer_state); | |
| 21 | |
| 22 // Registers all crash keys used by the installer. | |
| 23 size_t RegisterCrashKeys(); | |
| 24 | |
| 25 // Sets all crash keys that are available during process startup. These do not | |
| 26 // vary during execution so this function will not need to be called more than | |
| 27 // once. | |
| 28 void SetInitialCrashKeys(const InstallerState& installer_state); | |
| 29 | |
| 30 // Sets crash keys for the switches given in |command_line|. | |
| 31 void SetCrashKeysFromCommandLine(const base::CommandLine& command_line); | |
| 32 | |
| 33 // Sets a crash key recording the version of the product which was present | |
| 34 // before the installer was run. | |
| 35 void SetCurrentVersionCrashKey(const base::Version* current_version); | |
| 36 | |
| 37 } // namespace installer | |
| 38 | |
| 39 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ | |
| OLD | NEW |