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

Side by Side Diff: chrome/installer/setup/installer_crash_reporter_client.h

Issue 2031833002: Remove FilePath usage from the CrashReporterClient interface on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused constant to fix clang Created 4 years, 6 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_REPORTER_CLIENT_H_ 5 #ifndef CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_
6 #define CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_ 6 #define CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/crash/content/app/crash_reporter_client.h" 11 #include "components/crash/content/app/crash_reporter_client.h"
12 12
13 class InstallerCrashReporterClient 13 class InstallerCrashReporterClient
14 : public crash_reporter::CrashReporterClient { 14 : public crash_reporter::CrashReporterClient {
15 public: 15 public:
16 explicit InstallerCrashReporterClient(bool is_per_user_install); 16 explicit InstallerCrashReporterClient(bool is_per_user_install);
17 ~InstallerCrashReporterClient() override; 17 ~InstallerCrashReporterClient() override;
18 18
19 // crash_reporter::CrashReporterClient methods: 19 // crash_reporter::CrashReporterClient methods:
20 bool ShouldCreatePipeName(const base::string16& process_type) override; 20 bool ShouldCreatePipeName(const base::string16& process_type) override;
21 bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) override; 21 bool GetAlternativeCrashDumpLocation(base::string16* crash_dir) override;
22 void GetProductNameAndVersion(const base::FilePath& exe_path, 22 void GetProductNameAndVersion(const base::string16& exe_path,
23 base::string16* product_name, 23 base::string16* product_name,
24 base::string16* version, 24 base::string16* version,
25 base::string16* special_build, 25 base::string16* special_build,
26 base::string16* channel_name) override; 26 base::string16* channel_name) override;
27 bool ShouldShowRestartDialog(base::string16* title, 27 bool ShouldShowRestartDialog(base::string16* title,
28 base::string16* message, 28 base::string16* message,
29 bool* is_rtl_locale) override; 29 bool* is_rtl_locale) override;
30 bool AboutToRestart() override; 30 bool AboutToRestart() override;
31 bool GetDeferredUploadsSupported(bool is_per_user_install) override; 31 bool GetDeferredUploadsSupported(bool is_per_user_install) override;
32 bool GetIsPerUserInstall(const base::FilePath& exe_path) override; 32 bool GetIsPerUserInstall(const base::string16& exe_path) override;
33 bool GetShouldDumpLargerDumps(bool is_per_user_install) override; 33 bool GetShouldDumpLargerDumps(bool is_per_user_install) override;
34 int GetResultCodeRespawnFailed() override; 34 int GetResultCodeRespawnFailed() override;
35 bool GetCrashDumpLocation(base::FilePath* crash_dir) override; 35 bool GetCrashDumpLocation(base::string16* crash_dir) override;
36 size_t RegisterCrashKeys() override; 36 size_t RegisterCrashKeys() override;
37 bool IsRunningUnattended() override; 37 bool IsRunningUnattended() override;
38 bool GetCollectStatsConsent() override; 38 bool GetCollectStatsConsent() override;
39 bool ReportingIsEnforcedByPolicy(bool* enabled) override; 39 bool ReportingIsEnforcedByPolicy(bool* enabled) override;
40 bool EnableBreakpadForProcess(const std::string& process_type) override; 40 bool EnableBreakpadForProcess(const std::string& process_type) override;
41 41
42 private: 42 private:
43 bool is_per_user_install_; 43 bool is_per_user_install_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(InstallerCrashReporterClient); 45 DISALLOW_COPY_AND_ASSIGN(InstallerCrashReporterClient);
46 }; 46 };
47 47
48 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_ 48 #endif // CHROME_INSTALLER_SETUP_INSTALLER_CRASH_REPORTER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/install_static/install_util_unittest.cc ('k') | chrome/installer/setup/installer_crash_reporter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698