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 namespace crashpad { | 30 namespace crashpad { |
31 | 31 |
32 namespace internal { | 32 namespace internal { |
33 class MinidumpUTF16StringWriter; | 33 class MinidumpUTF16StringWriter; |
34 } // namespace internal | 34 } // namespace internal |
35 | 35 |
36 //! \brief The writer for a MINIDUMP_SYSTEM_INFO stream in a minidump file. | 36 //! \brief The writer for a MINIDUMP_SYSTEM_INFO stream in a minidump file. |
37 class MinidumpSystemInfoWriter final : public internal::MinidumpStreamWriter { | 37 class MinidumpSystemInfoWriter final : public internal::MinidumpStreamWriter { |
38 public: | 38 public: |
39 MinidumpSystemInfoWriter(); | 39 MinidumpSystemInfoWriter(); |
40 ~MinidumpSystemInfoWriter(); | 40 ~MinidumpSystemInfoWriter() override; |
41 | 41 |
42 //! \brief Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. | 42 //! \brief Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture. |
43 void SetCPUArchitecture(MinidumpCPUArchitecture processor_architecture) { | 43 void SetCPUArchitecture(MinidumpCPUArchitecture processor_architecture) { |
44 system_info_.ProcessorArchitecture = processor_architecture; | 44 system_info_.ProcessorArchitecture = processor_architecture; |
45 } | 45 } |
46 | 46 |
47 //! \brief Sets MINIDUMP_SYSTEM_INFO::ProcessorLevel and | 47 //! \brief Sets MINIDUMP_SYSTEM_INFO::ProcessorLevel and |
48 //! MINIDUMP_SYSTEM_INFO::ProcessorRevision. | 48 //! MINIDUMP_SYSTEM_INFO::ProcessorRevision. |
49 void SetCPULevelAndRevision(uint16_t processor_level, | 49 void SetCPULevelAndRevision(uint16_t processor_level, |
50 uint16_t processor_revision) { | 50 uint16_t processor_revision) { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 private: | 175 private: |
176 MINIDUMP_SYSTEM_INFO system_info_; | 176 MINIDUMP_SYSTEM_INFO system_info_; |
177 scoped_ptr<internal::MinidumpUTF16StringWriter> csd_version_; | 177 scoped_ptr<internal::MinidumpUTF16StringWriter> csd_version_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(MinidumpSystemInfoWriter); | 179 DISALLOW_COPY_AND_ASSIGN(MinidumpSystemInfoWriter); |
180 }; | 180 }; |
181 | 181 |
182 } // namespace crashpad | 182 } // namespace crashpad |
183 | 183 |
184 #endif // CRASHPAD_MINIDUMP_MINIDUMP_SYSTEM_INFO_WRITER_H_ | 184 #endif // CRASHPAD_MINIDUMP_MINIDUMP_SYSTEM_INFO_WRITER_H_ |
OLD | NEW |