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

Side by Side Diff: snapshot/handle_snapshot.h

Issue 1421473005: Fix mac after https://codereview.chromium.org/1419623003/ (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
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
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,
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_HANDLE_SNAPSHOT_H_ 15 #ifndef CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_
16 #define CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_ 16 #define CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_
17 17
18 #include <stdint.h> 18 #include <stdint.h>
19 19
20 #include <string> 20 #include <string>
21 21
22 namespace crashpad { 22 namespace crashpad {
23 23
24 struct HandleSnapshot { 24 struct HandleSnapshot {
25 HandleSnapshot(); 25 HandleSnapshot();
26 ~HandleSnapshot(); 26 ~HandleSnapshot();
27 27
28 //! \brief A string representation of the handle's type. 28 //! \brief A UTF-8 string representation of the handle's type.
29 std::wstring type_name; 29 std::string type_name;
30 30
31 //! \brief The handle's value. 31 //! \brief The handle's value.
32 uint32_t handle; 32 uint32_t handle;
33 33
34 //! \brief The attributes for the handle, e.g. `OBJ_INHERIT`, 34 //! \brief The attributes for the handle, e.g. `OBJ_INHERIT`,
35 //! `OBJ_CASE_INSENSITIVE`, etc. 35 //! `OBJ_CASE_INSENSITIVE`, etc.
36 uint32_t attributes; 36 uint32_t attributes;
37 37
38 //! \brief The ACCESS_MASK for the handle in this process. 38 //! \brief The ACCESS_MASK for the handle in this process.
39 //! 39 //!
40 //! See 40 //! See
41 //! http://blogs.msdn.com/b/openspecification/archive/2010/04/01/about-the-acc ess-mask-structure.aspx 41 //! http://blogs.msdn.com/b/openspecification/archive/2010/04/01/about-the-acc ess-mask-structure.aspx
42 //! for more information. 42 //! for more information.
43 uint32_t granted_access; 43 uint32_t granted_access;
44 44
45 //! \brief The number of kernel references to the object that this handle 45 //! \brief The number of kernel references to the object that this handle
46 //! refers to. 46 //! refers to.
47 uint32_t pointer_count; 47 uint32_t pointer_count;
48 48
49 //! \brief The number of open handles to the object that this handle refers 49 //! \brief The number of open handles to the object that this handle refers
50 //! to. 50 //! to.
51 uint32_t handle_count; 51 uint32_t handle_count;
52 }; 52 };
53 53
54 } // namespace crashpad 54 } // namespace crashpad
55 55
56 #endif // CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_ 56 #endif // CRASHPAD_SNAPSHOT_HANDLE_SNAPSHOT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698