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 { |
| 9 class CommandLine; |
| 10 } // namespace base |
| 11 |
8 namespace installer { | 12 namespace installer { |
9 | 13 |
10 class InstallerState; | 14 class InstallerState; |
11 | 15 |
12 // Sets up the crash reporting system for the installer. | 16 // Sets up the crash reporting system for the installer. |
13 void ConfigureCrashReporting(const InstallerState& installer_state); | 17 void ConfigureCrashReporting(const InstallerState& installer_state); |
14 | 18 |
15 // Registers all crash keys used by the installer. | 19 // Registers all crash keys used by the installer. |
16 size_t RegisterCrashKeys(); | 20 size_t RegisterCrashKeys(); |
17 | 21 |
18 // Sets all crash keys that are available during process startup. These do not | 22 // Sets all crash keys that are available during process startup. These do not |
19 // vary during execution so this function will not need to be called more than | 23 // vary during execution so this function will not need to be called more than |
20 // once. | 24 // once. |
21 void SetInitialCrashKeys(const InstallerState& installer_state); | 25 void SetInitialCrashKeys(const InstallerState& installer_state); |
22 | 26 |
| 27 // Sets crash keys for the switches given in |command_line|. |
| 28 void SetCrashKeysFromCommandLine(const base::CommandLine& command_line); |
| 29 |
23 } // namespace installer | 30 } // namespace installer |
24 | 31 |
25 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ | 32 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ |
OLD | NEW |