OLD | NEW |
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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
| 10 #include <memory> |
| 11 |
10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 13 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "build/build_config.h" | 14 #include "build/build_config.h" |
14 #include "components/crash/content/app/crash_reporter_client.h" | 15 #include "components/crash/content/app/crash_reporter_client.h" |
15 | 16 |
16 namespace browser_watcher { | 17 namespace browser_watcher { |
17 class CrashReportingMetrics; | 18 class CrashReportingMetrics; |
18 } // namespace browser_watcher | 19 } // namespace browser_watcher |
19 | 20 |
20 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient { | 21 class ChromeCrashReporterClient : public crash_reporter::CrashReporterClient { |
21 public: | 22 public: |
22 ChromeCrashReporterClient(); | 23 ChromeCrashReporterClient(); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 #endif | 68 #endif |
68 | 69 |
69 #if defined(OS_ANDROID) | 70 #if defined(OS_ANDROID) |
70 int GetAndroidMinidumpDescriptor() override; | 71 int GetAndroidMinidumpDescriptor() override; |
71 #endif | 72 #endif |
72 | 73 |
73 bool EnableBreakpadForProcess(const std::string& process_type) override; | 74 bool EnableBreakpadForProcess(const std::string& process_type) override; |
74 | 75 |
75 private: | 76 private: |
76 #if defined(OS_WIN) | 77 #if defined(OS_WIN) |
77 scoped_ptr<browser_watcher::CrashReportingMetrics> crash_reporting_metrics_; | 78 std::unique_ptr<browser_watcher::CrashReportingMetrics> |
| 79 crash_reporting_metrics_; |
78 #endif | 80 #endif |
79 | 81 |
80 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient); | 82 DISALLOW_COPY_AND_ASSIGN(ChromeCrashReporterClient); |
81 }; | 83 }; |
82 | 84 |
83 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ | 85 #endif // CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_H_ |
OLD | NEW |