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 #include <sys/types.h> |
20 | 21 |
21 #include <map> | 22 #include <map> |
22 #include <string> | 23 #include <string> |
23 #include <vector> | 24 #include <vector> |
24 | 25 |
25 #include "base/basictypes.h" | 26 #include "base/macros.h" |
26 #include "base/memory/scoped_ptr.h" | 27 #include "base/memory/scoped_ptr.h" |
27 #include "client/crashpad_info.h" | 28 #include "client/crashpad_info.h" |
28 #include "snapshot/crashpad_info_client_options.h" | 29 #include "snapshot/crashpad_info_client_options.h" |
29 #include "snapshot/exception_snapshot.h" | 30 #include "snapshot/exception_snapshot.h" |
30 #include "snapshot/memory_map_region_snapshot.h" | 31 #include "snapshot/memory_map_region_snapshot.h" |
31 #include "snapshot/memory_snapshot.h" | 32 #include "snapshot/memory_snapshot.h" |
32 #include "snapshot/module_snapshot.h" | 33 #include "snapshot/module_snapshot.h" |
33 #include "snapshot/process_snapshot.h" | 34 #include "snapshot/process_snapshot.h" |
34 #include "snapshot/system_snapshot.h" | 35 #include "snapshot/system_snapshot.h" |
35 #include "snapshot/thread_snapshot.h" | 36 #include "snapshot/thread_snapshot.h" |
36 #include "snapshot/win/exception_snapshot_win.h" | 37 #include "snapshot/win/exception_snapshot_win.h" |
37 #include "snapshot/win/memory_map_region_snapshot_win.h" | 38 #include "snapshot/win/memory_map_region_snapshot_win.h" |
38 #include "snapshot/win/memory_snapshot_win.h" | 39 #include "snapshot/win/memory_snapshot_win.h" |
39 #include "snapshot/win/module_snapshot_win.h" | 40 #include "snapshot/win/module_snapshot_win.h" |
40 #include "snapshot/win/system_snapshot_win.h" | 41 #include "snapshot/win/system_snapshot_win.h" |
41 #include "snapshot/win/thread_snapshot_win.h" | 42 #include "snapshot/win/thread_snapshot_win.h" |
42 #include "util/misc/initialization_state_dcheck.h" | 43 #include "util/misc/initialization_state_dcheck.h" |
43 #include "util/misc/uuid.h" | 44 #include "util/misc/uuid.h" |
| 45 #include "util/stdlib/pointer_container.h" |
44 #include "util/win/address_types.h" | 46 #include "util/win/address_types.h" |
45 #include "util/win/process_structs.h" | 47 #include "util/win/process_structs.h" |
46 #include "util/stdlib/pointer_container.h" | |
47 | 48 |
48 namespace crashpad { | 49 namespace crashpad { |
49 | 50 |
50 //! \brief A ProcessSnapshot of a running (or crashed) process running on a | 51 //! \brief A ProcessSnapshot of a running (or crashed) process running on a |
51 //! Windows system. | 52 //! Windows system. |
52 class ProcessSnapshotWin final : public ProcessSnapshot { | 53 class ProcessSnapshotWin final : public ProcessSnapshot { |
53 public: | 54 public: |
54 ProcessSnapshotWin(); | 55 ProcessSnapshotWin(); |
55 ~ProcessSnapshotWin() override; | 56 ~ProcessSnapshotWin() override; |
56 | 57 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 std::map<std::string, std::string> annotations_simple_map_; | 187 std::map<std::string, std::string> annotations_simple_map_; |
187 timeval snapshot_time_; | 188 timeval snapshot_time_; |
188 InitializationStateDcheck initialized_; | 189 InitializationStateDcheck initialized_; |
189 | 190 |
190 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotWin); | 191 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotWin); |
191 }; | 192 }; |
192 | 193 |
193 } // namespace crashpad | 194 } // namespace crashpad |
194 | 195 |
195 #endif // CRASHPAD_SNAPSHOT_WIN_PROCESS_SNAPSHOT_WIN_H_ | 196 #endif // CRASHPAD_SNAPSHOT_WIN_PROCESS_SNAPSHOT_WIN_H_ |
OLD | NEW |