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_WIN_PROCESS_SNAPSHOT_WIN_H_ | 15 #ifndef CRASHPAD_SNAPSHOT_WIN_PROCESS_SNAPSHOT_WIN_H_ |
16 #define CRASHPAD_SNAPSHOT_WIN_PROCESS_SNAPSHOT_WIN_H_ | 16 #define CRASHPAD_SNAPSHOT_WIN_PROCESS_SNAPSHOT_WIN_H_ |
17 | 17 |
18 #include <windows.h> | 18 #include <windows.h> |
19 #include <sys/time.h> | 19 #include <sys/time.h> |
20 | 20 |
21 #include <map> | 21 #include <map> |
22 #include <string> | 22 #include <string> |
23 #include <vector> | 23 #include <vector> |
24 | 24 |
25 #include "base/basictypes.h" | 25 #include "base/basictypes.h" |
26 #include "base/memory/scoped_ptr.h" | 26 #include "base/memory/scoped_ptr.h" |
27 #include "client/crashpad_info.h" | 27 #include "client/crashpad_info.h" |
28 #include "snapshot/crashpad_info_client_options.h" | 28 #include "snapshot/crashpad_info_client_options.h" |
29 #include "snapshot/exception_snapshot.h" | 29 #include "snapshot/exception_snapshot.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 "snapshot/win/exception_snapshot_win.h" | 35 #include "snapshot/win/exception_snapshot_win.h" |
| 36 #include "snapshot/win/memory_snapshot_win.h" |
35 #include "snapshot/win/module_snapshot_win.h" | 37 #include "snapshot/win/module_snapshot_win.h" |
36 #include "snapshot/win/system_snapshot_win.h" | 38 #include "snapshot/win/system_snapshot_win.h" |
37 #include "snapshot/win/thread_snapshot_win.h" | 39 #include "snapshot/win/thread_snapshot_win.h" |
38 #include "util/misc/initialization_state_dcheck.h" | 40 #include "util/misc/initialization_state_dcheck.h" |
39 #include "util/misc/uuid.h" | 41 #include "util/misc/uuid.h" |
40 #include "util/win/address_types.h" | 42 #include "util/win/address_types.h" |
41 #include "util/stdlib/pointer_container.h" | 43 #include "util/stdlib/pointer_container.h" |
42 | 44 |
43 namespace crashpad { | 45 namespace crashpad { |
44 | 46 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void ProcessStartTime(timeval* start_time) const override; | 118 void ProcessStartTime(timeval* start_time) const override; |
117 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; | 119 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; |
118 void ReportID(UUID* report_id) const override; | 120 void ReportID(UUID* report_id) const override; |
119 void ClientID(UUID* client_id) const override; | 121 void ClientID(UUID* client_id) const override; |
120 const std::map<std::string, std::string>& AnnotationsSimpleMap() | 122 const std::map<std::string, std::string>& AnnotationsSimpleMap() |
121 const override; | 123 const override; |
122 const SystemSnapshot* System() const override; | 124 const SystemSnapshot* System() const override; |
123 std::vector<const ThreadSnapshot*> Threads() const override; | 125 std::vector<const ThreadSnapshot*> Threads() const override; |
124 std::vector<const ModuleSnapshot*> Modules() const override; | 126 std::vector<const ModuleSnapshot*> Modules() const override; |
125 const ExceptionSnapshot* Exception() const override; | 127 const ExceptionSnapshot* Exception() const override; |
| 128 std::vector<const MemorySnapshot*> ExtraMemory() const override; |
126 | 129 |
127 private: | 130 private: |
128 // Initializes threads_ on behalf of Initialize(). | 131 // Initializes threads_ on behalf of Initialize(). |
129 void InitializeThreads(); | 132 void InitializeThreads(); |
130 | 133 |
131 // Initializes modules_ on behalf of Initialize(). | 134 // Initializes modules_ on behalf of Initialize(). |
132 void InitializeModules(); | 135 void InitializeModules(); |
133 | 136 |
134 internal::SystemSnapshotWin system_; | 137 internal::SystemSnapshotWin system_; |
| 138 internal::MemorySnapshotWin peb_; |
135 PointerVector<internal::ThreadSnapshotWin> threads_; | 139 PointerVector<internal::ThreadSnapshotWin> threads_; |
136 PointerVector<internal::ModuleSnapshotWin> modules_; | 140 PointerVector<internal::ModuleSnapshotWin> modules_; |
137 scoped_ptr<internal::ExceptionSnapshotWin> exception_; | 141 scoped_ptr<internal::ExceptionSnapshotWin> exception_; |
138 ProcessReaderWin process_reader_; | 142 ProcessReaderWin process_reader_; |
139 UUID report_id_; | 143 UUID report_id_; |
140 UUID client_id_; | 144 UUID client_id_; |
141 std::map<std::string, std::string> annotations_simple_map_; | 145 std::map<std::string, std::string> annotations_simple_map_; |
142 timeval snapshot_time_; | 146 timeval snapshot_time_; |
143 InitializationStateDcheck initialized_; | 147 InitializationStateDcheck initialized_; |
144 | 148 |
145 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotWin); | 149 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotWin); |
146 }; | 150 }; |
147 | 151 |
148 } // namespace crashpad | 152 } // namespace crashpad |
149 | 153 |
150 #endif // CRASHPAD_SNAPSHOT_WIN_PROCESS_SNAPSHOT_WIN_H_ | 154 #endif // CRASHPAD_SNAPSHOT_WIN_PROCESS_SNAPSHOT_WIN_H_ |
OLD | NEW |