Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Side by Side Diff: chrome/installer/util/installer_crash_reporting.h

Issue 1561663003: CL for perf tryjob on win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_UTIL_INSTALLER_CRASH_REPORTING_H_
6 #define CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ 6 #define CHROME_INSTALLER_UTIL_INSTALLER_CRASH_REPORTING_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "chrome/installer/util/util_constants.h"
11
10 namespace base { 12 namespace base {
11 class CommandLine; 13 class CommandLine;
12 class Version; 14 class Version;
13 } // namespace base 15 } // namespace base
14 16
15 namespace installer { 17 namespace installer {
16 18
17 class InstallerState; 19 class InstallerState;
18 20
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. 21 // Registers all crash keys used by the installer.
23 size_t RegisterCrashKeys(); 22 size_t RegisterCrashKeys();
24 23
25 // Sets all crash keys that are available during process startup. These do not 24 // 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 25 // vary during execution so this function will not need to be called more than
27 // once. 26 // once.
28 void SetInitialCrashKeys(const InstallerState& installer_state); 27 void SetInitialCrashKeys(const InstallerState& installer_state);
29 28
30 // Sets crash keys for the switches given in |command_line|. 29 // Sets crash keys for the switches given in |command_line|.
31 void SetCrashKeysFromCommandLine(const base::CommandLine& command_line); 30 void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
32 31
33 // Sets a crash key recording the version of the product which was present 32 // Sets a crash key recording the version of the product which was present
34 // before the installer was run. 33 // before the installer was run.
35 void SetCurrentVersionCrashKey(const base::Version* current_version); 34 void SetCurrentVersionCrashKey(const base::Version* current_version);
36 35
36 // Set a crash key recording the current stage of the installer.
37 void SetStageCrashKey(InstallerStage stage);
38
39 // Set a crash key recording the archive type (full or incremental).
40 void SetArchiveTypeCrashKey(ArchiveType archive_type);
41
37 } // namespace installer 42 } // namespace installer
38 43
39 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTING_H_ 44 #endif // CHROME_INSTALLER_UTIL_INSTALLER_CRASH_REPORTING_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/install_util.cc ('k') | chrome/installer/util/installer_crash_reporting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698