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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 //! will be included. For module information, usefulness is determined by | 45 //! will be included. For module information, usefulness is determined by |
46 //! MinidumpModuleCrashpadInfoListWriter::IsUseful(). | 46 //! MinidumpModuleCrashpadInfoListWriter::IsUseful(). |
47 //! | 47 //! |
48 //! \param[in] process_snapshot The process snapshot to use as source data. | 48 //! \param[in] process_snapshot The process snapshot to use as source data. |
49 //! | 49 //! |
50 //! \note Valid in #kStateMutable. No mutator methods may be called before | 50 //! \note Valid in #kStateMutable. No mutator methods may be called before |
51 //! this method, and it is not normally necessary to call any mutator | 51 //! this method, and it is not normally necessary to call any mutator |
52 //! methods after this method. | 52 //! methods after this method. |
53 void InitializeFromSnapshot(const ProcessSnapshot* process_snapshot); | 53 void InitializeFromSnapshot(const ProcessSnapshot* process_snapshot); |
54 | 54 |
| 55 //! \brief Sets MinidumpCrashpadInfo::report_id. |
| 56 void SetReportID(const UUID& report_id); |
| 57 |
55 //! \brief Sets MinidumpCrashpadInfo::client_id. | 58 //! \brief Sets MinidumpCrashpadInfo::client_id. |
56 void SetClientID(const UUID& client_id); | 59 void SetClientID(const UUID& client_id); |
57 | 60 |
58 //! \brief Arranges for MinidumpCrashpadInfo::simple_annotations to point to | 61 //! \brief Arranges for MinidumpCrashpadInfo::simple_annotations to point to |
59 //! the MinidumpSimpleStringDictionaryWriter object to be written by \a | 62 //! the MinidumpSimpleStringDictionaryWriter object to be written by \a |
60 //! simple_annotations. | 63 //! simple_annotations. |
61 //! | 64 //! |
62 //! This object takes ownership of \a simple_annotations and becomes its | 65 //! This object takes ownership of \a simple_annotations and becomes its |
63 //! parent in the overall tree of internal::MinidumpWritable objects. | 66 //! parent in the overall tree of internal::MinidumpWritable objects. |
64 //! | 67 //! |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 MinidumpCrashpadInfo crashpad_info_; | 103 MinidumpCrashpadInfo crashpad_info_; |
101 scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations_; | 104 scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations_; |
102 scoped_ptr<MinidumpModuleCrashpadInfoListWriter> module_list_; | 105 scoped_ptr<MinidumpModuleCrashpadInfoListWriter> module_list_; |
103 | 106 |
104 DISALLOW_COPY_AND_ASSIGN(MinidumpCrashpadInfoWriter); | 107 DISALLOW_COPY_AND_ASSIGN(MinidumpCrashpadInfoWriter); |
105 }; | 108 }; |
106 | 109 |
107 } // namespace crashpad | 110 } // namespace crashpad |
108 | 111 |
109 #endif // CRASHPAD_MINIDUMP_MINIDUMP_CRASHPAD_INFO_WRITER_H_ | 112 #endif // CRASHPAD_MINIDUMP_MINIDUMP_CRASHPAD_INFO_WRITER_H_ |
OLD | NEW |