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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 //! This method is expected to be called by a MinidumpThreadListWriter in | 48 //! This method is expected to be called by a MinidumpThreadListWriter in |
49 //! order to obtain a MINIDUMP_THREAD to include in its list. | 49 //! order to obtain a MINIDUMP_THREAD to include in its list. |
50 //! | 50 //! |
51 //! \note Valid in #kStateWritable. | 51 //! \note Valid in #kStateWritable. |
52 const MINIDUMP_THREAD* MinidumpThread() const; | 52 const MINIDUMP_THREAD* MinidumpThread() const; |
53 | 53 |
54 //! \brief Returns a MinidumpMemoryWriter that will write the memory region | 54 //! \brief Returns a MinidumpMemoryWriter that will write the memory region |
55 //! corresponding to this object’s stack. | 55 //! corresponding to this object’s stack. |
56 //! | 56 //! |
57 //! If the thread does not have a stack, or its stack could not be determined, | 57 //! If the thread does not have a stack, or its stack could not be determined, |
58 //! this will return NULL. | 58 //! this will return nullptr. |
59 //! | 59 //! |
60 //! This method is provided so that MinidumpThreadListWriter can obtain thread | 60 //! This method is provided so that MinidumpThreadListWriter can obtain thread |
61 //! stack memory regions for the purposes of adding them to a | 61 //! stack memory regions for the purposes of adding them to a |
62 //! MinidumpMemoryListWriter (configured by calling | 62 //! MinidumpMemoryListWriter (configured by calling |
63 //! MinidumpThreadListWriter::SetMemoryListWriter()) by calling | 63 //! MinidumpThreadListWriter::SetMemoryListWriter()) by calling |
64 //! MinidumpMemoryListWriter::AddExtraMemory(). | 64 //! MinidumpMemoryListWriter::AddExtraMemory(). |
65 //! | 65 //! |
66 //! \note Valid in any state. | 66 //! \note Valid in any state. |
67 MinidumpMemoryWriter* Stack() const { return stack_; } | 67 MinidumpMemoryWriter* Stack() const { return stack_; } |
68 | 68 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 MINIDUMP_THREAD_LIST thread_list_base_; | 176 MINIDUMP_THREAD_LIST thread_list_base_; |
177 std::vector<MinidumpThreadWriter*> threads_; // weak | 177 std::vector<MinidumpThreadWriter*> threads_; // weak |
178 MinidumpMemoryListWriter* memory_list_writer_; // weak | 178 MinidumpMemoryListWriter* memory_list_writer_; // weak |
179 | 179 |
180 DISALLOW_COPY_AND_ASSIGN(MinidumpThreadListWriter); | 180 DISALLOW_COPY_AND_ASSIGN(MinidumpThreadListWriter); |
181 }; | 181 }; |
182 | 182 |
183 } // namespace crashpad | 183 } // namespace crashpad |
184 | 184 |
185 #endif // CRASHPAD_MINIDUMP_MINIDUMP_THREAD_WRITER_H_ | 185 #endif // CRASHPAD_MINIDUMP_MINIDUMP_THREAD_WRITER_H_ |
OLD | NEW |