| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 protected: | 166 protected: |
| 167 // MinidumpWritable: | 167 // MinidumpWritable: |
| 168 bool Freeze() override; | 168 bool Freeze() override; |
| 169 size_t SizeOfObject() override; | 169 size_t SizeOfObject() override; |
| 170 bool WriteObject(FileWriterInterface* file_writer) override; | 170 bool WriteObject(FileWriterInterface* file_writer) override; |
| 171 | 171 |
| 172 private: | 172 private: |
| 173 IMAGE_DEBUG_MISC image_debug_misc_; | 173 IMAGE_DEBUG_MISC image_debug_misc_; |
| 174 std::string data_; | 174 std::string data_; |
| 175 string16 data_utf16_; | 175 base::string16 data_utf16_; |
| 176 | 176 |
| 177 DISALLOW_COPY_AND_ASSIGN(MinidumpModuleMiscDebugRecordWriter); | 177 DISALLOW_COPY_AND_ASSIGN(MinidumpModuleMiscDebugRecordWriter); |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 //! \brief The writer for a MINIDUMP_MODULE object in a minidump file. | 180 //! \brief The writer for a MINIDUMP_MODULE object in a minidump file. |
| 181 //! | 181 //! |
| 182 //! Because MINIDUMP_MODULE objects only appear as elements of | 182 //! Because MINIDUMP_MODULE objects only appear as elements of |
| 183 //! MINIDUMP_MODULE_LIST objects, this class does not write any data on its own. | 183 //! MINIDUMP_MODULE_LIST objects, this class does not write any data on its own. |
| 184 //! It makes its MINIDUMP_MODULE data available to its MinidumpModuleListWriter | 184 //! It makes its MINIDUMP_MODULE data available to its MinidumpModuleListWriter |
| 185 //! parent, which writes it as part of a MINIDUMP_MODULE_LIST. | 185 //! parent, which writes it as part of a MINIDUMP_MODULE_LIST. |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 private: | 347 private: |
| 348 MINIDUMP_MODULE_LIST module_list_base_; | 348 MINIDUMP_MODULE_LIST module_list_base_; |
| 349 PointerVector<MinidumpModuleWriter> modules_; | 349 PointerVector<MinidumpModuleWriter> modules_; |
| 350 | 350 |
| 351 DISALLOW_COPY_AND_ASSIGN(MinidumpModuleListWriter); | 351 DISALLOW_COPY_AND_ASSIGN(MinidumpModuleListWriter); |
| 352 }; | 352 }; |
| 353 | 353 |
| 354 } // namespace crashpad | 354 } // namespace crashpad |
| 355 | 355 |
| 356 #endif // CRASHPAD_MINIDUMP_MINIDUMP_MODULE_WRITER_H_ | 356 #endif // CRASHPAD_MINIDUMP_MINIDUMP_MODULE_WRITER_H_ |
| OLD | NEW |