| 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 21 matching lines...) Expand all Loading... |
| 32 //! minidump file. | 32 //! minidump file. |
| 33 //! | 33 //! |
| 34 //! The actual stream written will be a MINIDUMP_MISC_INFO, | 34 //! The actual stream written will be a MINIDUMP_MISC_INFO, |
| 35 //! MINIDUMP_MISC_INFO_2, MINIDUMP_MISC_INFO_3, or MINIDUMP_MISC_INFO_4 stream. | 35 //! MINIDUMP_MISC_INFO_2, MINIDUMP_MISC_INFO_3, or MINIDUMP_MISC_INFO_4 stream. |
| 36 //! Later versions of MINIDUMP_MISC_INFO are supersets of earlier versions. The | 36 //! Later versions of MINIDUMP_MISC_INFO are supersets of earlier versions. The |
| 37 //! earliest version that supports all of the information that an object of this | 37 //! earliest version that supports all of the information that an object of this |
| 38 //! class contains will be used. | 38 //! class contains will be used. |
| 39 class MinidumpMiscInfoWriter final : public internal::MinidumpStreamWriter { | 39 class MinidumpMiscInfoWriter final : public internal::MinidumpStreamWriter { |
| 40 public: | 40 public: |
| 41 MinidumpMiscInfoWriter(); | 41 MinidumpMiscInfoWriter(); |
| 42 ~MinidumpMiscInfoWriter() {} | 42 ~MinidumpMiscInfoWriter() override; |
| 43 | 43 |
| 44 //! \brief Sets the field referenced by #MINIDUMP_MISC1_PROCESS_ID. | 44 //! \brief Sets the field referenced by #MINIDUMP_MISC1_PROCESS_ID. |
| 45 void SetProcessId(uint32_t process_id); | 45 void SetProcessId(uint32_t process_id); |
| 46 | 46 |
| 47 //! \brief Sets the fields referenced by #MINIDUMP_MISC1_PROCESS_TIMES. | 47 //! \brief Sets the fields referenced by #MINIDUMP_MISC1_PROCESS_TIMES. |
| 48 void SetProcessTimes(time_t process_create_time, | 48 void SetProcessTimes(time_t process_create_time, |
| 49 uint32_t process_user_time, | 49 uint32_t process_user_time, |
| 50 uint32_t process_kernel_time); | 50 uint32_t process_kernel_time); |
| 51 | 51 |
| 52 //! \brief Sets the fields referenced by #MINIDUMP_MISC1_PROCESSOR_POWER_INFO. | 52 //! \brief Sets the fields referenced by #MINIDUMP_MISC1_PROCESSOR_POWER_INFO. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 size_t CalculateSizeOfObjectFromFlags() const; | 95 size_t CalculateSizeOfObjectFromFlags() const; |
| 96 | 96 |
| 97 MINIDUMP_MISC_INFO_N misc_info_; | 97 MINIDUMP_MISC_INFO_N misc_info_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(MinidumpMiscInfoWriter); | 99 DISALLOW_COPY_AND_ASSIGN(MinidumpMiscInfoWriter); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace crashpad | 102 } // namespace crashpad |
| 103 | 103 |
| 104 #endif // CRASHPAD_MINIDUMP_MINIDUMP_MISC_INFO_WRITER_H_ | 104 #endif // CRASHPAD_MINIDUMP_MINIDUMP_MISC_INFO_WRITER_H_ |
| OLD | NEW |