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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compat/non_win/dbghelp.h ('k') | snapshot/handle_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/handle_snapshot.h
diff --git a/snapshot/handle_snapshot.h b/snapshot/handle_snapshot.h
new file mode 100644
index 0000000000000000000000000000000000000000..b86706e7f5e1268f56a01b7862fc2b4db94b7534
--- /dev/null
+++ b/snapshot/handle_snapshot.h
@@ -0,0 +1,56 @@
+// Copyright 2015 The Crashpad Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#ifndef CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_
+#define CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_
+
+#include <stdint.h>
+
+#include <string>
+
+namespace crashpad {
+
+struct HandleSnapshot {
+ HandleSnapshot();
+ ~HandleSnapshot();
+
+ //! \brief A string representation of the handle's type.
+ std::wstring type_name;
+
+ //! \brief The handle's value.
+ uint32_t handle;
+
+ //! \brief The attributes for the handle, e.g. `OBJ_INHERIT`,
+ //! `OBJ_CASE_INSENSITIVE`, etc.
+ uint32_t attributes;
+
+ //! \brief The ACCESS_MASK for the handle in this process.
+ //!
+ //! See
+ //! http://blogs.msdn.com/b/openspecification/archive/2010/04/01/about-the-access-mask-structure.aspx
+ //! for more information.
+ uint32_t granted_access;
+
+ //! \brief The number of kernel references to the object that this handle
+ //! refers to.
+ uint32_t pointer_count;
+
+ //! \brief The number of open handles to the object that this handle refers
+ //! to.
+ uint32_t handle_count;
+};
+
+} // namespace crashpad
+
+#endif // CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_
« 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