OLD | NEW |
1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void ProcessSnapshotMinidump::ProcessCPUTimes(timeval* user_time, | 120 void ProcessSnapshotMinidump::ProcessCPUTimes(timeval* user_time, |
121 timeval* system_time) const { | 121 timeval* system_time) const { |
122 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 122 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
123 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 | 123 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 |
124 user_time->tv_sec = 0; | 124 user_time->tv_sec = 0; |
125 user_time->tv_usec = 0; | 125 user_time->tv_usec = 0; |
126 system_time->tv_sec = 0; | 126 system_time->tv_sec = 0; |
127 system_time->tv_usec = 0; | 127 system_time->tv_usec = 0; |
128 } | 128 } |
129 | 129 |
| 130 void ProcessSnapshotMinidump::ReportID(UUID* report_id) const { |
| 131 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 132 *report_id = crashpad_info_.report_id; |
| 133 } |
| 134 |
130 void ProcessSnapshotMinidump::ClientID(UUID* client_id) const { | 135 void ProcessSnapshotMinidump::ClientID(UUID* client_id) const { |
131 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 136 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
132 *client_id = crashpad_info_.client_id; | 137 *client_id = crashpad_info_.client_id; |
133 } | 138 } |
134 | 139 |
135 const std::map<std::string, std::string>& | 140 const std::map<std::string, std::string>& |
136 ProcessSnapshotMinidump::AnnotationsSimpleMap() const { | 141 ProcessSnapshotMinidump::AnnotationsSimpleMap() const { |
137 // TODO(mark): This method should not be const, although the interface | 142 // TODO(mark): This method should not be const, although the interface |
138 // currently imposes this requirement. Making it non-const would allow | 143 // currently imposes this requirement. Making it non-const would allow |
139 // annotations_simple_map_ to be lazily constructed: InitializeCrashpadInfo() | 144 // annotations_simple_map_ to be lazily constructed: InitializeCrashpadInfo() |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } else { | 319 } else { |
315 module_crashpad_info_links->insert(std::make_pair( | 320 module_crashpad_info_links->insert(std::make_pair( |
316 minidump_link.minidump_module_list_index, minidump_link.location)); | 321 minidump_link.minidump_module_list_index, minidump_link.location)); |
317 } | 322 } |
318 } | 323 } |
319 | 324 |
320 return true; | 325 return true; |
321 } | 326 } |
322 | 327 |
323 } // namespace crashpad | 328 } // namespace crashpad |
OLD | NEW |