Chromium Code Reviews| 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 20 matching lines...) Expand all Loading... | |
| 31 #include "snapshot/process_snapshot.h" | 31 #include "snapshot/process_snapshot.h" |
| 32 #include "snapshot/system_snapshot.h" | 32 #include "snapshot/system_snapshot.h" |
| 33 #include "snapshot/thread_snapshot.h" | 33 #include "snapshot/thread_snapshot.h" |
| 34 #include "util/file/file_reader.h" | 34 #include "util/file/file_reader.h" |
| 35 #include "util/misc/initialization_state_dcheck.h" | 35 #include "util/misc/initialization_state_dcheck.h" |
| 36 #include "util/misc/uuid.h" | 36 #include "util/misc/uuid.h" |
| 37 #include "util/stdlib/pointer_container.h" | 37 #include "util/stdlib/pointer_container.h" |
| 38 | 38 |
| 39 namespace crashpad { | 39 namespace crashpad { |
| 40 | 40 |
| 41 class MemorySnapshot; | |
|
Mark Mentovai
2015/09/25 17:05:34
The other things like ExceptionSnapshot that are n
scottmg
2015/09/25 17:29:31
Done.
| |
| 42 | |
| 41 //! \brief A ProcessSnapshot based on a minidump file. | 43 //! \brief A ProcessSnapshot based on a minidump file. |
| 42 class ProcessSnapshotMinidump final : public ProcessSnapshot { | 44 class ProcessSnapshotMinidump final : public ProcessSnapshot { |
| 43 public: | 45 public: |
| 44 ProcessSnapshotMinidump(); | 46 ProcessSnapshotMinidump(); |
| 45 ~ProcessSnapshotMinidump() override; | 47 ~ProcessSnapshotMinidump() override; |
| 46 | 48 |
| 47 //! \brief Initializes the object. | 49 //! \brief Initializes the object. |
| 48 //! | 50 //! |
| 49 //! \param[in] file_reader A file reader corresponding to a minidump file. | 51 //! \param[in] file_reader A file reader corresponding to a minidump file. |
| 50 //! The file reader must support seeking. | 52 //! The file reader must support seeking. |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 61 void ProcessStartTime(timeval* start_time) const override; | 63 void ProcessStartTime(timeval* start_time) const override; |
| 62 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; | 64 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; |
| 63 void ReportID(UUID* report_id) const override; | 65 void ReportID(UUID* report_id) const override; |
| 64 void ClientID(UUID* client_id) const override; | 66 void ClientID(UUID* client_id) const override; |
| 65 const std::map<std::string, std::string>& AnnotationsSimpleMap() | 67 const std::map<std::string, std::string>& AnnotationsSimpleMap() |
| 66 const override; | 68 const override; |
| 67 const SystemSnapshot* System() const override; | 69 const SystemSnapshot* System() const override; |
| 68 std::vector<const ThreadSnapshot*> Threads() const override; | 70 std::vector<const ThreadSnapshot*> Threads() const override; |
| 69 std::vector<const ModuleSnapshot*> Modules() const override; | 71 std::vector<const ModuleSnapshot*> Modules() const override; |
| 70 const ExceptionSnapshot* Exception() const override; | 72 const ExceptionSnapshot* Exception() const override; |
| 73 std::vector<const MemorySnapshot*> ExtraMemory() const override; | |
| 71 | 74 |
| 72 private: | 75 private: |
| 73 // Initializes data carried in a MinidumpCrashpadInfo stream on behalf of | 76 // Initializes data carried in a MinidumpCrashpadInfo stream on behalf of |
| 74 // Initialize(). | 77 // Initialize(). |
| 75 bool InitializeCrashpadInfo(); | 78 bool InitializeCrashpadInfo(); |
| 76 | 79 |
| 77 // Initializes data carried in a MINIDUMP_MODULE_LIST stream on behalf of | 80 // Initializes data carried in a MINIDUMP_MODULE_LIST stream on behalf of |
| 78 // Initialize(). | 81 // Initialize(). |
| 79 bool InitializeModules(); | 82 bool InitializeModules(); |
| 80 | 83 |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 93 std::map<std::string, std::string> annotations_simple_map_; | 96 std::map<std::string, std::string> annotations_simple_map_; |
| 94 FileReaderInterface* file_reader_; // weak | 97 FileReaderInterface* file_reader_; // weak |
| 95 InitializationStateDcheck initialized_; | 98 InitializationStateDcheck initialized_; |
| 96 | 99 |
| 97 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMinidump); | 100 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMinidump); |
| 98 }; | 101 }; |
| 99 | 102 |
| 100 } // namespace crashpad | 103 } // namespace crashpad |
| 101 | 104 |
| 102 #endif // CRASHPAD_SNAPSHOT_MINIDUMP_PROCESS_SNAPSHOT_MINIDUMP_H_ | 105 #endif // CRASHPAD_SNAPSHOT_MINIDUMP_PROCESS_SNAPSHOT_MINIDUMP_H_ |
| OLD | NEW |