Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: minidump/minidump_system_info_writer.h

Issue 674153002: minidump: Change the ownership model (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « minidump/minidump_string_writer.cc ('k') | minidump/minidump_system_info_writer_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « minidump/minidump_string_writer.cc ('k') | minidump/minidump_system_info_writer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698