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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 *options = local_options; | 115 *options = local_options; |
116 } | 116 } |
117 | 117 |
118 pid_t ProcessSnapshotMac::ProcessID() const { | 118 pid_t ProcessSnapshotMac::ProcessID() const { |
119 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 119 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
120 return process_reader_.ProcessID(); | 120 return process_reader_.ProcessID(); |
121 } | 121 } |
122 | 122 |
123 pid_t ProcessSnapshotMac::ParentProcessID() const { | 123 pid_t ProcessSnapshotMac::ParentProcessID() const { |
124 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 124 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
125 return process_reader_.ProcessID(); | 125 return process_reader_.ParentProcessID(); |
126 } | 126 } |
127 | 127 |
128 void ProcessSnapshotMac::SnapshotTime(timeval* snapshot_time) const { | 128 void ProcessSnapshotMac::SnapshotTime(timeval* snapshot_time) const { |
129 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 129 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
130 *snapshot_time = snapshot_time_; | 130 *snapshot_time = snapshot_time_; |
131 } | 131 } |
132 | 132 |
133 void ProcessSnapshotMac::ProcessStartTime(timeval* start_time) const { | 133 void ProcessSnapshotMac::ProcessStartTime(timeval* start_time) const { |
134 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 134 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
135 process_reader_.StartTime(start_time); | 135 process_reader_.StartTime(start_time); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 for (const ProcessReader::Module& process_reader_module : | 203 for (const ProcessReader::Module& process_reader_module : |
204 process_reader_modules) { | 204 process_reader_modules) { |
205 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); | 205 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); |
206 if (module->Initialize(&process_reader_, process_reader_module)) { | 206 if (module->Initialize(&process_reader_, process_reader_module)) { |
207 modules_.push_back(module.release()); | 207 modules_.push_back(module.release()); |
208 } | 208 } |
209 } | 209 } |
210 } | 210 } |
211 | 211 |
212 } // namespace crashpad | 212 } // namespace crashpad |
OLD | NEW |