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