Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: snapshot/win/process_reader_win.h

Issue 1336823002: win x86: Grab bag of restructuring to get tests working on x86-on-x86 (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698