| 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, |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
| 13 // limitations under the License. | 13 // limitations under the License. |
| 14 | 14 |
| 15 #ifndef CRASHPAD_SNAPSHOT_MINIDUMP_PROCESS_SNAPSHOT_MINIDUMP_H_ | 15 #ifndef CRASHPAD_SNAPSHOT_MINIDUMP_PROCESS_SNAPSHOT_MINIDUMP_H_ |
| 16 #define CRASHPAD_SNAPSHOT_MINIDUMP_PROCESS_SNAPSHOT_MINIDUMP_H_ | 16 #define CRASHPAD_SNAPSHOT_MINIDUMP_PROCESS_SNAPSHOT_MINIDUMP_H_ |
| 17 | 17 |
| 18 #include <sys/time.h> | 18 #include <sys/time.h> |
| 19 #include <windows.h> | 19 #include <windows.h> |
| 20 #include <dbghelp.h> | 20 #include <dbghelp.h> |
| 21 | 21 |
| 22 #include <map> | 22 #include <map> |
| 23 #include <string> | 23 #include <string> |
| 24 #include <vector> | 24 #include <vector> |
| 25 | 25 |
| 26 #include "base/basictypes.h" | 26 #include "base/basictypes.h" |
| 27 #include "minidump/minidump_extensions.h" | 27 #include "minidump/minidump_extensions.h" |
| 28 #include "snapshot/exception_snapshot.h" | 28 #include "snapshot/exception_snapshot.h" |
| 29 #include "snapshot/minidump/module_snapshot_minidump.h" | 29 #include "snapshot/minidump/module_snapshot_minidump.h" |
| 30 #include "snapshot/memory_snapshot.h" |
| 30 #include "snapshot/module_snapshot.h" | 31 #include "snapshot/module_snapshot.h" |
| 31 #include "snapshot/process_snapshot.h" | 32 #include "snapshot/process_snapshot.h" |
| 32 #include "snapshot/system_snapshot.h" | 33 #include "snapshot/system_snapshot.h" |
| 33 #include "snapshot/thread_snapshot.h" | 34 #include "snapshot/thread_snapshot.h" |
| 34 #include "util/file/file_reader.h" | 35 #include "util/file/file_reader.h" |
| 35 #include "util/misc/initialization_state_dcheck.h" | 36 #include "util/misc/initialization_state_dcheck.h" |
| 36 #include "util/misc/uuid.h" | 37 #include "util/misc/uuid.h" |
| 37 #include "util/stdlib/pointer_container.h" | 38 #include "util/stdlib/pointer_container.h" |
| 38 | 39 |
| 39 namespace crashpad { | 40 namespace crashpad { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 61 void ProcessStartTime(timeval* start_time) const override; | 62 void ProcessStartTime(timeval* start_time) const override; |
| 62 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; | 63 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; |
| 63 void ReportID(UUID* report_id) const override; | 64 void ReportID(UUID* report_id) const override; |
| 64 void ClientID(UUID* client_id) const override; | 65 void ClientID(UUID* client_id) const override; |
| 65 const std::map<std::string, std::string>& AnnotationsSimpleMap() | 66 const std::map<std::string, std::string>& AnnotationsSimpleMap() |
| 66 const override; | 67 const override; |
| 67 const SystemSnapshot* System() const override; | 68 const SystemSnapshot* System() const override; |
| 68 std::vector<const ThreadSnapshot*> Threads() const override; | 69 std::vector<const ThreadSnapshot*> Threads() const override; |
| 69 std::vector<const ModuleSnapshot*> Modules() const override; | 70 std::vector<const ModuleSnapshot*> Modules() const override; |
| 70 const ExceptionSnapshot* Exception() const override; | 71 const ExceptionSnapshot* Exception() const override; |
| 72 std::vector<const MemorySnapshot*> ExtraMemory() const override; |
| 71 | 73 |
| 72 private: | 74 private: |
| 73 // Initializes data carried in a MinidumpCrashpadInfo stream on behalf of | 75 // Initializes data carried in a MinidumpCrashpadInfo stream on behalf of |
| 74 // Initialize(). | 76 // Initialize(). |
| 75 bool InitializeCrashpadInfo(); | 77 bool InitializeCrashpadInfo(); |
| 76 | 78 |
| 77 // Initializes data carried in a MINIDUMP_MODULE_LIST stream on behalf of | 79 // Initializes data carried in a MINIDUMP_MODULE_LIST stream on behalf of |
| 78 // Initialize(). | 80 // Initialize(). |
| 79 bool InitializeModules(); | 81 bool InitializeModules(); |
| 80 | 82 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 93 std::map<std::string, std::string> annotations_simple_map_; | 95 std::map<std::string, std::string> annotations_simple_map_; |
| 94 FileReaderInterface* file_reader_; // weak | 96 FileReaderInterface* file_reader_; // weak |
| 95 InitializationStateDcheck initialized_; | 97 InitializationStateDcheck initialized_; |
| 96 | 98 |
| 97 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMinidump); | 99 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMinidump); |
| 98 }; | 100 }; |
| 99 | 101 |
| 100 } // namespace crashpad | 102 } // namespace crashpad |
| 101 | 103 |
| 102 #endif // CRASHPAD_SNAPSHOT_MINIDUMP_PROCESS_SNAPSHOT_MINIDUMP_H_ | 104 #endif // CRASHPAD_SNAPSHOT_MINIDUMP_PROCESS_SNAPSHOT_MINIDUMP_H_ |
| OLD | NEW |