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

Side by Side Diff: snapshot/handle_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 | « compat/non_win/dbghelp.h ('k') | snapshot/handle_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Crashpad Authors. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (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
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #ifndef CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_
16 #define CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_
17
18 #include <stdint.h>
19
20 #include <string>
21
22 namespace crashpad {
23
24 struct HandleSnapshot {
25 HandleSnapshot();
26 ~HandleSnapshot();
27
28 //! \brief A string representation of the handle's type.
29 std::wstring type_name;
30
31 //! \brief The handle's value.
32 uint32_t handle;
33
34 //! \brief The attributes for the handle, e.g. `OBJ_INHERIT`,
35 //! `OBJ_CASE_INSENSITIVE`, etc.
36 uint32_t attributes;
37
38 //! \brief The ACCESS_MASK for the handle in this process.
39 //!
40 //! See
41 //! http://blogs.msdn.com/b/openspecification/archive/2010/04/01/about-the-acc ess-mask-structure.aspx
42 //! for more information.
43 uint32_t granted_access;
44
45 //! \brief The number of kernel references to the object that this handle
46 //! refers to.
47 uint32_t pointer_count;
48
49 //! \brief The number of open handles to the object that this handle refers
50 //! to.
51 uint32_t handle_count;
52 };
53
54 } // namespace crashpad
55
56 #endif // CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « compat/non_win/dbghelp.h ('k') | snapshot/handle_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698