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

Side by Side Diff: chrome/app/chrome_crash_reporter_client.h

Issue 1100223002: Update {virtual,override} to follow C++11 style in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/app/delay_load_hook_unittest_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_APP_CHROME_CRASH_REPORTER_CLIENT_H_ 5 #ifndef CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_
6 #define CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ 6 #define CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "components/crash/app/crash_reporter_client.h" 11 #include "components/crash/app/crash_reporter_client.h"
12 12
13 namespace browser_watcher { 13 namespace browser_watcher {
14 class CrashReportingMetrics; 14 class CrashReportingMetrics;
15 } // namespace browser_watcher 15 } // namespace browser_watcher
16 16
17 namespace chrome { 17 namespace chrome {
18 18
19 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient { 19 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient {
20 public: 20 public:
21 ChromeCrashReporterClient(); 21 ChromeCrashReporterClient();
22 ~ChromeCrashReporterClient() override; 22 ~ChromeCrashReporterClient() override;
23 23
24 // crash_reporter::CrashReporterClient implementation. 24 // crash_reporter::CrashReporterClient implementation.
25 #if !defined(OS_MACOSX) 25 #if !defined(OS_MACOSX)
26 void SetCrashReporterClientIdFromGUID( 26 void SetCrashReporterClientIdFromGUID(
27 const std::string& client_guid) override; 27 const std::string& client_guid) override;
28 #endif 28 #endif
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 virtual bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) 30 bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir) override;
31 override; 31 void GetProductNameAndVersion(const base::FilePath& exe_path,
32 virtual void GetProductNameAndVersion(const base::FilePath& exe_path, 32 base::string16* product_name,
33 base::string16* product_name, 33 base::string16* version,
34 base::string16* version, 34 base::string16* special_build,
35 base::string16* special_build, 35 base::string16* channel_name) override;
36 base::string16* channel_name) override; 36 bool ShouldShowRestartDialog(base::string16* title,
37 virtual bool ShouldShowRestartDialog(base::string16* title, 37 base::string16* message,
38 base::string16* message, 38 bool* is_rtl_locale) override;
39 bool* is_rtl_locale) override; 39 bool AboutToRestart() override;
40 virtual bool AboutToRestart() override; 40 bool GetDeferredUploadsSupported(bool is_per_user_install) override;
41 virtual bool GetDeferredUploadsSupported(bool is_per_user_install) override; 41 bool GetIsPerUserInstall(const base::FilePath& exe_path) override;
42 virtual bool GetIsPerUserInstall(const base::FilePath& exe_path) override; 42 bool GetShouldDumpLargerDumps(bool is_per_user_install) override;
43 virtual bool GetShouldDumpLargerDumps(bool is_per_user_install) override; 43 int GetResultCodeRespawnFailed() override;
44 virtual int GetResultCodeRespawnFailed() override; 44 void InitBrowserCrashDumpsRegKey() override;
45 virtual void InitBrowserCrashDumpsRegKey() override; 45 void RecordCrashDumpAttempt(bool is_real_crash) override;
46 virtual void RecordCrashDumpAttempt(bool is_real_crash) override; 46 void RecordCrashDumpAttemptResult(bool is_real_crash,
47 virtual void RecordCrashDumpAttemptResult(bool is_real_crash, 47 bool succeeded) override;
48 bool succeeded) override;
49 #endif 48 #endif
50 49
51 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) 50 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
52 void GetProductNameAndVersion(const char** product_name, 51 void GetProductNameAndVersion(const char** product_name,
53 const char** version) override; 52 const char** version) override;
54 base::FilePath GetReporterLogFilename() override; 53 base::FilePath GetReporterLogFilename() override;
55 #endif 54 #endif
56 55
57 bool GetCrashDumpLocation(base::FilePath* crash_dir) override; 56 bool GetCrashDumpLocation(base::FilePath* crash_dir) override;
58 57
(...skipping 17 matching lines...) Expand all
76 #if defined(OS_WIN) 75 #if defined(OS_WIN)
77 scoped_ptr<browser_watcher::CrashReportingMetrics> crash_reporting_metrics_; 76 scoped_ptr<browser_watcher::CrashReportingMetrics> crash_reporting_metrics_;
78 #endif 77 #endif
79 78
80 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient); 79 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient);
81 }; 80 };
82 81
83 } // namespace chrome 82 } // namespace chrome
84 83
85 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ 84 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/app/delay_load_hook_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698