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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 //! | 79 //! |
80 //! \a exception_information must have no more than | 80 //! \a exception_information must have no more than |
81 //! #EXCEPTION_MAXIMUM_PARAMETERS elements. | 81 //! #EXCEPTION_MAXIMUM_PARAMETERS elements. |
82 //! | 82 //! |
83 //! \note Valid in #kStateMutable. | 83 //! \note Valid in #kStateMutable. |
84 void SetExceptionInformation( | 84 void SetExceptionInformation( |
85 const std::vector<uint64_t>& exception_information); | 85 const std::vector<uint64_t>& exception_information); |
86 | 86 |
87 protected: | 87 protected: |
88 // MinidumpWritable: | 88 // MinidumpWritable: |
89 virtual bool Freeze() override; | 89 bool Freeze() override; |
90 virtual size_t SizeOfObject() override; | 90 size_t SizeOfObject() override; |
91 virtual std::vector<MinidumpWritable*> Children() override; | 91 std::vector<MinidumpWritable*> Children() override; |
92 virtual bool WriteObject(FileWriterInterface* file_writer) override; | 92 bool WriteObject(FileWriterInterface* file_writer) override; |
93 | 93 |
94 // MinidumpStreamWriter: | 94 // MinidumpStreamWriter: |
95 virtual MinidumpStreamType StreamType() const override; | 95 MinidumpStreamType StreamType() const override; |
96 | 96 |
97 private: | 97 private: |
98 MINIDUMP_EXCEPTION_STREAM exception_; | 98 MINIDUMP_EXCEPTION_STREAM exception_; |
99 MinidumpContextWriter* context_; // weak | 99 MinidumpContextWriter* context_; // weak |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(MinidumpExceptionWriter); | 101 DISALLOW_COPY_AND_ASSIGN(MinidumpExceptionWriter); |
102 }; | 102 }; |
103 | 103 |
104 } // namespace crashpad | 104 } // namespace crashpad |
105 | 105 |
106 #endif // CRASHPAD_MINIDUMP_MINIDUMP_EXCEPTION_WRITER_H_ | 106 #endif // CRASHPAD_MINIDUMP_MINIDUMP_EXCEPTION_WRITER_H_ |
OLD | NEW |