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

Side by Side Diff: syzygy/agent/asan/reporters/crashpad_reporter.h

Issue 1992773002: [SyzyAsan] Enable Crashpad reporter as a 50/50 experiment. (Closed) Base URL: https://github.com/google/syzygy.git@master
Patch Set: Fix broken unittest. 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
« no previous file with comments | « syzygy/agent/asan/error_info.h ('k') | syzygy/agent/asan/reporters/crashpad_reporter.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 2016 Google Inc. All Rights Reserved. 1 // Copyright 2016 Google Inc. All Rights Reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 12 matching lines...) Expand all
23 #include "syzygy/agent/asan/reporter.h" 23 #include "syzygy/agent/asan/reporter.h"
24 24
25 namespace agent { 25 namespace agent {
26 namespace asan { 26 namespace asan {
27 namespace reporters { 27 namespace reporters {
28 28
29 // Implements Crashpad crash reporting integration. Use of this class is not 29 // Implements Crashpad crash reporting integration. Use of this class is not
30 // thread safe. 30 // thread safe.
31 class CrashpadReporter : public ReporterInterface { 31 class CrashpadReporter : public ReporterInterface {
32 public: 32 public:
33 // The name of this reporter, as returned by GetName.
34 static const char kName[];
35
33 // Factory for a CrashpadReporter. This returns null if the running process 36 // Factory for a CrashpadReporter. This returns null if the running process
34 // does not support Crashpad crash reporting. Support is decided by examining 37 // does not support Crashpad crash reporting. Support is decided by examining
35 // the exports of the running executable, and looking for Crashpad's expected 38 // the exports of the running executable, and looking for Crashpad's expected
36 // exports. 39 // exports.
37 // @returns an allocated CrashpadReporter 40 // @returns an allocated CrashpadReporter
38 static std::unique_ptr<CrashpadReporter> Create(); 41 static std::unique_ptr<CrashpadReporter> Create();
39 42
40 virtual ~CrashpadReporter() {} 43 virtual ~CrashpadReporter() {}
41 44
42 // @name ReporterInterface implementation. 45 // @name ReporterInterface implementation.
(...skipping 25 matching lines...) Expand all
68 std::unique_ptr<crashpad::SimpleStringDictionary> crash_keys_; 71 std::unique_ptr<crashpad::SimpleStringDictionary> crash_keys_;
69 72
70 DISALLOW_COPY_AND_ASSIGN(CrashpadReporter); 73 DISALLOW_COPY_AND_ASSIGN(CrashpadReporter);
71 }; 74 };
72 75
73 } // namespace reporters 76 } // namespace reporters
74 } // namespace asan 77 } // namespace asan
75 } // namespace agent 78 } // namespace agent
76 79
77 #endif // SYZYGY_AGENT_ASAN_REPORTERS_CRASHPAD_REPORTER_H_ 80 #endif // SYZYGY_AGENT_ASAN_REPORTERS_CRASHPAD_REPORTER_H_
OLDNEW
« no previous file with comments | « syzygy/agent/asan/error_info.h ('k') | syzygy/agent/asan/reporters/crashpad_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698