Update Flash minimum secure versions.
[chromium-blink-merge.git] / chrome / app / chrome_crash_reporter_client.h
blob667f22e62ecdceedd344665372a547beeeebf29a
1 // Copyright 2013 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.
5 #ifndef CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_
6 #define CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "components/crash/app/crash_reporter_client.h"
13 namespace browser_watcher {
14 class CrashReportingMetrics;
15 } // namespace browser_watcher
17 namespace chrome {
19 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient {
20 public:
21 ChromeCrashReporterClient();
22 ~ChromeCrashReporterClient() override;
24 // crash_reporter::CrashReporterClient implementation.
25 #if !defined(OS_MACOSX)
26 void SetCrashReporterClientIdFromGUID(
27 const std::string& client_guid) override;
28 #endif
29 #if defined(OS_WIN)
30 virtual bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir)
31 override;
32 virtual void GetProductNameAndVersion(const base::FilePath& exe_path,
33 base::string16* product_name,
34 base::string16* version,
35 base::string16* special_build,
36 base::string16* channel_name) override;
37 virtual bool ShouldShowRestartDialog(base::string16* title,
38 base::string16* message,
39 bool* is_rtl_locale) override;
40 virtual bool AboutToRestart() override;
41 virtual bool GetDeferredUploadsSupported(bool is_per_user_install) override;
42 virtual bool GetIsPerUserInstall(const base::FilePath& exe_path) override;
43 virtual bool GetShouldDumpLargerDumps(bool is_per_user_install) override;
44 virtual int GetResultCodeRespawnFailed() override;
45 virtual void InitBrowserCrashDumpsRegKey() override;
46 virtual void RecordCrashDumpAttempt(bool is_real_crash) override;
47 virtual void RecordCrashDumpAttemptResult(bool is_real_crash,
48 bool succeeded) override;
49 #endif
51 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
52 void GetProductNameAndVersion(const char** product_name,
53 const char** version) override;
54 base::FilePath GetReporterLogFilename() override;
55 #endif
57 bool GetCrashDumpLocation(base::FilePath* crash_dir) override;
59 size_t RegisterCrashKeys() override;
61 bool IsRunningUnattended() override;
63 bool GetCollectStatsConsent() override;
65 #if defined(OS_WIN) || defined(OS_MACOSX)
66 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled) override;
67 #endif
69 #if defined(OS_ANDROID)
70 int GetAndroidMinidumpDescriptor() override;
71 #endif
73 bool EnableBreakpadForProcess(const std::string& process_type) override;
75 private:
76 #if defined(OS_WIN)
77 scoped_ptr<browser_watcher::CrashReportingMetrics> crash_reporting_metrics_;
78 #endif
80 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient);
83 } // namespace chrome
85 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_