| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |