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

Side by Side Diff: minidump/minidump_memory_writer.h

Issue 896663006: win: Resolve zero-length array errors on MSVC (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@minidump-comp
Patch Set: . Created 5 years, 10 months 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
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // MinidumpWritable: 173 // MinidumpWritable:
174 bool Freeze() override; 174 bool Freeze() override;
175 size_t SizeOfObject() override; 175 size_t SizeOfObject() override;
176 std::vector<MinidumpWritable*> Children() override; 176 std::vector<MinidumpWritable*> Children() override;
177 bool WriteObject(FileWriterInterface* file_writer) override; 177 bool WriteObject(FileWriterInterface* file_writer) override;
178 178
179 // MinidumpStreamWriter: 179 // MinidumpStreamWriter:
180 MinidumpStreamType StreamType() const override; 180 MinidumpStreamType StreamType() const override;
181 181
182 private: 182 private:
183 MINIDUMP_MEMORY_LIST memory_list_base_;
184 std::vector<MinidumpMemoryWriter*> memory_writers_; // weak 183 std::vector<MinidumpMemoryWriter*> memory_writers_; // weak
185 PointerVector<MinidumpMemoryWriter> children_; 184 PointerVector<MinidumpMemoryWriter> children_;
185 MINIDUMP_MEMORY_LIST memory_list_base_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(MinidumpMemoryListWriter); 187 DISALLOW_COPY_AND_ASSIGN(MinidumpMemoryListWriter);
188 }; 188 };
189 189
190 } // namespace crashpad 190 } // namespace crashpad
191 191
192 #endif // CRASHPAD_MINIDUMP_MINIDUMP_MEMORY_WRITER_H_ 192 #endif // CRASHPAD_MINIDUMP_MINIDUMP_MEMORY_WRITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698