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 15 matching lines...) Expand all Loading... |
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/module_snapshot.h" | 30 #include "snapshot/module_snapshot.h" |
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 "snapshot/win/module_snapshot_win.h" | 34 #include "snapshot/win/module_snapshot_win.h" |
35 #include "snapshot/win/system_snapshot_win.h" | 35 #include "snapshot/win/system_snapshot_win.h" |
| 36 #include "snapshot/win/thread_snapshot_win.h" |
36 #include "util/misc/initialization_state_dcheck.h" | 37 #include "util/misc/initialization_state_dcheck.h" |
37 #include "util/misc/uuid.h" | 38 #include "util/misc/uuid.h" |
38 #include "util/stdlib/pointer_container.h" | 39 #include "util/stdlib/pointer_container.h" |
39 | 40 |
40 namespace crashpad { | 41 namespace crashpad { |
41 | 42 |
42 //! \brief A ProcessSnapshot of a running (or crashed) process running on a | 43 //! \brief A ProcessSnapshot of a running (or crashed) process running on a |
43 //! Windows system. | 44 //! Windows system. |
44 class ProcessSnapshotWin final : public ProcessSnapshot { | 45 class ProcessSnapshotWin final : public ProcessSnapshot { |
45 public: | 46 public: |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 void ClientID(UUID* client_id) const override; | 98 void ClientID(UUID* client_id) const override; |
98 const std::map<std::string, std::string>& AnnotationsSimpleMap() | 99 const std::map<std::string, std::string>& AnnotationsSimpleMap() |
99 const override; | 100 const override; |
100 const SystemSnapshot* System() const override; | 101 const SystemSnapshot* System() const override; |
101 std::vector<const ThreadSnapshot*> Threads() const override; | 102 std::vector<const ThreadSnapshot*> Threads() const override; |
102 std::vector<const ModuleSnapshot*> Modules() const override; | 103 std::vector<const ModuleSnapshot*> Modules() const override; |
103 const ExceptionSnapshot* Exception() const override; | 104 const ExceptionSnapshot* Exception() const override; |
104 | 105 |
105 private: | 106 private: |
106 // Initializes threads_ on behalf of Initialize(). | 107 // Initializes threads_ on behalf of Initialize(). |
107 // TODO(scottmg): void InitializeThreads(); | 108 void InitializeThreads(); |
108 | 109 |
109 // Initializes modules_ on behalf of Initialize(). | 110 // Initializes modules_ on behalf of Initialize(). |
110 void InitializeModules(); | 111 void InitializeModules(); |
111 | 112 |
112 internal::SystemSnapshotWin system_; | 113 internal::SystemSnapshotWin system_; |
113 // TODO(scottmg): PointerVector<internal::ThreadSnapshotWin> threads_; | 114 PointerVector<internal::ThreadSnapshotWin> threads_; |
114 PointerVector<internal::ModuleSnapshotWin> modules_; | 115 PointerVector<internal::ModuleSnapshotWin> modules_; |
115 // TODO(scottmg): scoped_ptr<internal::ExceptionSnapshotWin> exception_; | 116 // TODO(scottmg): scoped_ptr<internal::ExceptionSnapshotWin> exception_; |
116 ProcessReaderWin process_reader_; | 117 ProcessReaderWin process_reader_; |
117 UUID report_id_; | 118 UUID report_id_; |
118 UUID client_id_; | 119 UUID client_id_; |
119 std::map<std::string, std::string> annotations_simple_map_; | 120 std::map<std::string, std::string> annotations_simple_map_; |
120 timeval snapshot_time_; | 121 timeval snapshot_time_; |
121 InitializationStateDcheck initialized_; | 122 InitializationStateDcheck initialized_; |
122 | 123 |
123 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotWin); | 124 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotWin); |
124 }; | 125 }; |
125 | 126 |
126 } // namespace crashpad | 127 } // namespace crashpad |
127 | 128 |
128 #endif // CRASHPAD_SNAPSHOT_WIN_PROCESS_SNAPSHOT_WIN_H_ | 129 #endif // CRASHPAD_SNAPSHOT_WIN_PROCESS_SNAPSHOT_WIN_H_ |
OLD | NEW |