| OLD | NEW |
| 1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 The Crashpad Authors. 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 30 matching lines...) Expand all Loading... |
| 41 //! \param[in] process_annotations A map of annotations to insert as | 41 //! \param[in] process_annotations A map of annotations to insert as |
| 42 //! process-level annotations into each crash report that is written. Do | 42 //! process-level annotations into each crash report that is written. Do |
| 43 //! not confuse this with module-level annotations, which are under the | 43 //! not confuse this with module-level annotations, which are under the |
| 44 //! control of the crashing process, and are used to implement Chrome's | 44 //! control of the crashing process, and are used to implement Chrome's |
| 45 //! "crash keys." Process-level annotations are those that are beyond the | 45 //! "crash keys." Process-level annotations are those that are beyond the |
| 46 //! control of the crashing process, which must reliably be set even if | 46 //! control of the crashing process, which must reliably be set even if |
| 47 //! the process crashes before it's able to establish its own annotations. | 47 //! the process crashes before it's able to establish its own annotations. |
| 48 //! To interoperate with Breakpad servers, the recommended practice is to | 48 //! To interoperate with Breakpad servers, the recommended practice is to |
| 49 //! specify values for the `"prod"` and `"ver"` keys as process | 49 //! specify values for the `"prod"` and `"ver"` keys as process |
| 50 //! annotations. | 50 //! annotations. |
| 51 //! \param[in] user_stream_data_sources Data sources to be used to extend |
| 52 //! crash reports. For each crash report that is written, the data sources |
| 53 //! are called in turn. These data sources may contribute additional |
| 54 //! minidump streams. `nullptr` if not required. |
| 51 CrashReportExceptionHandler( | 55 CrashReportExceptionHandler( |
| 52 CrashReportDatabase* database, | 56 CrashReportDatabase* database, |
| 53 CrashReportUploadThread* upload_thread, | 57 CrashReportUploadThread* upload_thread, |
| 54 const std::map<std::string, std::string>* process_annotations, | 58 const std::map<std::string, std::string>* process_annotations, |
| 55 const UserStreamDataSources* user_stream_data_sources); | 59 const UserStreamDataSources* user_stream_data_sources); |
| 56 | 60 |
| 57 ~CrashReportExceptionHandler() override; | 61 ~CrashReportExceptionHandler() override; |
| 58 | 62 |
| 59 // ExceptionHandlerServer::Delegate: | 63 // ExceptionHandlerServer::Delegate: |
| 60 | 64 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 71 CrashReportUploadThread* upload_thread_; // weak | 75 CrashReportUploadThread* upload_thread_; // weak |
| 72 const std::map<std::string, std::string>* process_annotations_; // weak | 76 const std::map<std::string, std::string>* process_annotations_; // weak |
| 73 const UserStreamDataSources* user_stream_data_sources_; // weak | 77 const UserStreamDataSources* user_stream_data_sources_; // weak |
| 74 | 78 |
| 75 DISALLOW_COPY_AND_ASSIGN(CrashReportExceptionHandler); | 79 DISALLOW_COPY_AND_ASSIGN(CrashReportExceptionHandler); |
| 76 }; | 80 }; |
| 77 | 81 |
| 78 } // namespace crashpad | 82 } // namespace crashpad |
| 79 | 83 |
| 80 #endif // CRASHPAD_HANDLER_WIN_CRASH_REPORT_EXCEPTION_HANDLER_H_ | 84 #endif // CRASHPAD_HANDLER_WIN_CRASH_REPORT_EXCEPTION_HANDLER_H_ |
| OLD | NEW |