OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 class ProcessReader; | 31 class ProcessReader; |
32 | 32 |
33 namespace internal { | 33 namespace internal { |
34 | 34 |
35 //! \brief An ExceptionSnapshot of an exception sustained by a running (or | 35 //! \brief An ExceptionSnapshot of an exception sustained by a running (or |
36 //! crashed) process on a Mac OS X system. | 36 //! crashed) process on a Mac OS X system. |
37 class ExceptionSnapshotMac final : public ExceptionSnapshot { | 37 class ExceptionSnapshotMac final : public ExceptionSnapshot { |
38 public: | 38 public: |
39 ExceptionSnapshotMac(); | 39 ExceptionSnapshotMac(); |
40 ~ExceptionSnapshotMac(); | 40 ~ExceptionSnapshotMac() override; |
41 | 41 |
42 //! \brief Initializes the object. | 42 //! \brief Initializes the object. |
43 //! | 43 //! |
44 //! Other than \a process_reader, the parameters may be passed directly | 44 //! Other than \a process_reader, the parameters may be passed directly |
45 //! through from a Mach exception handler. | 45 //! through from a Mach exception handler. |
46 //! | 46 //! |
47 //! \param[in] process_reader A ProcessReader for the task that sustained the | 47 //! \param[in] process_reader A ProcessReader for the task that sustained the |
48 //! exception. | 48 //! exception. |
49 //! | 49 //! |
50 //! \return `true` if the snapshot could be created, `false` otherwise with | 50 //! \return `true` if the snapshot could be created, `false` otherwise with |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 uint32_t exception_code_0_; | 82 uint32_t exception_code_0_; |
83 InitializationStateDcheck initialized_; | 83 InitializationStateDcheck initialized_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(ExceptionSnapshotMac); | 85 DISALLOW_COPY_AND_ASSIGN(ExceptionSnapshotMac); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace internal | 88 } // namespace internal |
89 } // namespace crashpad | 89 } // namespace crashpad |
90 | 90 |
91 #endif // CRASHPAD_SNAPSHOT_MAC_EXCEPTION_SNAPSHOT_MAC_H_ | 91 #endif // CRASHPAD_SNAPSHOT_MAC_EXCEPTION_SNAPSHOT_MAC_H_ |
OLD | NEW |