| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; | 121 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; |
| 122 void ReportID(UUID* report_id) const override; | 122 void ReportID(UUID* report_id) const override; |
| 123 void ClientID(UUID* client_id) const override; | 123 void ClientID(UUID* client_id) const override; |
| 124 const std::map<std::string, std::string>& AnnotationsSimpleMap() | 124 const std::map<std::string, std::string>& AnnotationsSimpleMap() |
| 125 const override; | 125 const override; |
| 126 const SystemSnapshot* System() const override; | 126 const SystemSnapshot* System() const override; |
| 127 std::vector<const ThreadSnapshot*> Threads() const override; | 127 std::vector<const ThreadSnapshot*> Threads() const override; |
| 128 std::vector<const ModuleSnapshot*> Modules() const override; | 128 std::vector<const ModuleSnapshot*> Modules() const override; |
| 129 const ExceptionSnapshot* Exception() const override; | 129 const ExceptionSnapshot* Exception() const override; |
| 130 std::vector<const MemoryMapRegionSnapshot*> MemoryMap() const override; | 130 std::vector<const MemoryMapRegionSnapshot*> MemoryMap() const override; |
| 131 std::vector<HandleSnapshot> Handles() const override; |
| 131 std::vector<const MemorySnapshot*> ExtraMemory() const override; | 132 std::vector<const MemorySnapshot*> ExtraMemory() const override; |
| 132 | 133 |
| 133 private: | 134 private: |
| 134 // Initializes threads_ on behalf of Initialize(). | 135 // Initializes threads_ on behalf of Initialize(). |
| 135 void InitializeThreads(); | 136 void InitializeThreads(); |
| 136 | 137 |
| 137 // Initializes modules_ on behalf of Initialize(). | 138 // Initializes modules_ on behalf of Initialize(). |
| 138 void InitializeModules(); | 139 void InitializeModules(); |
| 139 | 140 |
| 140 internal::SystemSnapshotMac system_; | 141 internal::SystemSnapshotMac system_; |
| 141 PointerVector<internal::ThreadSnapshotMac> threads_; | 142 PointerVector<internal::ThreadSnapshotMac> threads_; |
| 142 PointerVector<internal::ModuleSnapshotMac> modules_; | 143 PointerVector<internal::ModuleSnapshotMac> modules_; |
| 143 scoped_ptr<internal::ExceptionSnapshotMac> exception_; | 144 scoped_ptr<internal::ExceptionSnapshotMac> exception_; |
| 144 ProcessReader process_reader_; | 145 ProcessReader process_reader_; |
| 145 UUID report_id_; | 146 UUID report_id_; |
| 146 UUID client_id_; | 147 UUID client_id_; |
| 147 std::map<std::string, std::string> annotations_simple_map_; | 148 std::map<std::string, std::string> annotations_simple_map_; |
| 148 timeval snapshot_time_; | 149 timeval snapshot_time_; |
| 149 InitializationStateDcheck initialized_; | 150 InitializationStateDcheck initialized_; |
| 150 | 151 |
| 151 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMac); | 152 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMac); |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace crashpad | 155 } // namespace crashpad |
| 155 | 156 |
| 156 #endif // CRASHPAD_SNAPSHOT_MAC_PROCESS_SNAPSHOT_MAC_H_ | 157 #endif // CRASHPAD_SNAPSHOT_MAC_PROCESS_SNAPSHOT_MAC_H_ |
| OLD | NEW |