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

Side by Side Diff: snapshot/process_snapshot.h

Issue 1407643004: Some plumbing for the beginning of getting handles into snapshot/minidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@handles-redux
Patch Set: . Created 5 years, 2 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
« no previous file with comments | « snapshot/minidump/process_snapshot_minidump.cc ('k') | snapshot/snapshot.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 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_PROCESS_SNAPSHOT_H_ 15 #ifndef CRASHPAD_SNAPSHOT_PROCESS_SNAPSHOT_H_
16 #define CRASHPAD_SNAPSHOT_PROCESS_SNAPSHOT_H_ 16 #define CRASHPAD_SNAPSHOT_PROCESS_SNAPSHOT_H_
17 17
18 #include <sys/time.h> 18 #include <sys/time.h>
19 #include <sys/types.h> 19 #include <sys/types.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 "snapshot/handle_snapshot.h"
25 #include "util/misc/uuid.h" 26 #include "util/misc/uuid.h"
26 27
27 namespace crashpad { 28 namespace crashpad {
28 29
29 class ExceptionSnapshot; 30 class ExceptionSnapshot;
30 class MemoryMapRegionSnapshot; 31 class MemoryMapRegionSnapshot;
31 class MemorySnapshot; 32 class MemorySnapshot;
32 class ModuleSnapshot; 33 class ModuleSnapshot;
33 class SystemSnapshot; 34 class SystemSnapshot;
34 class ThreadSnapshot; 35 class ThreadSnapshot;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 virtual const ExceptionSnapshot* Exception() const = 0; 165 virtual const ExceptionSnapshot* Exception() const = 0;
165 166
166 //! \brief Returns MemoryMapRegionSnapshot objects reflecting the regions 167 //! \brief Returns MemoryMapRegionSnapshot objects reflecting the regions
167 //! of the memory map in the snapshot process at the time of the snapshot. 168 //! of the memory map in the snapshot process at the time of the snapshot.
168 //! 169 //!
169 //! \return A vector of MemoryMapRegionSnapshot objects. The caller does not 170 //! \return A vector of MemoryMapRegionSnapshot objects. The caller does not
170 //! take ownership of these objects, they are scoped to the lifetime of 171 //! take ownership of these objects, they are scoped to the lifetime of
171 //! the ProcessSnapshot object that they were obtained from. 172 //! the ProcessSnapshot object that they were obtained from.
172 virtual std::vector<const MemoryMapRegionSnapshot*> MemoryMap() const = 0; 173 virtual std::vector<const MemoryMapRegionSnapshot*> MemoryMap() const = 0;
173 174
175 //! \brief Returns HandleSnapshot objects reflecting the open handles in the
176 //! snapshot process at the time of the snapshot.
177 //!
178 //! \return A vector of HandleSnapshot objects.
179 virtual std::vector<HandleSnapshot> Handles() const = 0;
180
174 //! \brief Returns a vector of additional memory blocks that should be 181 //! \brief Returns a vector of additional memory blocks that should be
175 //! included in a minidump. 182 //! included in a minidump.
176 //! 183 //!
177 //! \return An vector of MemorySnapshot objects that will be included in the 184 //! \return An vector of MemorySnapshot objects that will be included in the
178 //! crash dump. The caller does not take ownership of these objects, they 185 //! crash dump. The caller does not take ownership of these objects, they
179 //! are scoped to the lifetime of the ProcessSnapshot object that they 186 //! are scoped to the lifetime of the ProcessSnapshot object that they
180 //! were obtained from. 187 //! were obtained from.
181 virtual std::vector<const MemorySnapshot*> ExtraMemory() const = 0; 188 virtual std::vector<const MemorySnapshot*> ExtraMemory() const = 0;
182 }; 189 };
183 190
184 } // namespace crashpad 191 } // namespace crashpad
185 192
186 #endif // CRASHPAD_SNAPSHOT_PROCESS_SNAPSHOT_H_ 193 #endif // CRASHPAD_SNAPSHOT_PROCESS_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « snapshot/minidump/process_snapshot_minidump.cc ('k') | snapshot/snapshot.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698