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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 //! \return The threads that are in the process. The first element (at index | 101 //! \return The threads that are in the process. The first element (at index |
102 //! `0`) corresponds to the main thread. | 102 //! `0`) corresponds to the main thread. |
103 const std::vector<Thread>& Threads(); | 103 const std::vector<Thread>& Threads(); |
104 | 104 |
105 //! \return The modules loaded in the process. The first element (at index | 105 //! \return The modules loaded in the process. The first element (at index |
106 //! `0`) corresponds to the main executable. | 106 //! `0`) corresponds to the main executable. |
107 const std::vector<ProcessInfo::Module>& Modules(); | 107 const std::vector<ProcessInfo::Module>& Modules(); |
108 | 108 |
109 private: | 109 private: |
| 110 template <class Traits> |
| 111 friend void ReadThreadData(ProcessReaderWin* process_reader); |
| 112 |
110 HANDLE process_; | 113 HANDLE process_; |
111 ProcessInfo process_info_; | 114 ProcessInfo process_info_; |
112 std::vector<Thread> threads_; | 115 std::vector<Thread> threads_; |
113 std::vector<ProcessInfo::Module> modules_; | 116 std::vector<ProcessInfo::Module> modules_; |
114 ProcessSuspensionState suspension_state_; | 117 ProcessSuspensionState suspension_state_; |
115 bool initialized_threads_; | 118 bool initialized_threads_; |
116 InitializationStateDcheck initialized_; | 119 InitializationStateDcheck initialized_; |
117 | 120 |
118 DISALLOW_COPY_AND_ASSIGN(ProcessReaderWin); | 121 DISALLOW_COPY_AND_ASSIGN(ProcessReaderWin); |
119 }; | 122 }; |
120 | 123 |
121 } // namespace crashpad | 124 } // namespace crashpad |
122 | 125 |
123 #endif // CRASHPAD_SNAPSHOT_WIN_PROCESS_READER_WIN_H_ | 126 #endif // CRASHPAD_SNAPSHOT_WIN_PROCESS_READER_WIN_H_ |
OLD | NEW |