| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SANDBOX_TOOLS_FINDER_FINDER_H__ | 5 #ifndef SANDBOX_TOOLS_FINDER_FINDER_H_ |
| 6 #define SANDBOX_TOOLS_FINDER_FINDER_H__ | 6 #define SANDBOX_TOOLS_FINDER_FINDER_H_ |
| 7 | 7 |
| 8 #include "base/win/scoped_handle.h" |
| 8 #include "sandbox/win/src/restricted_token_utils.h" | 9 #include "sandbox/win/src/restricted_token_utils.h" |
| 9 #include "sandbox/win/tools/finder/ntundoc.h" | 10 #include "sandbox/win/tools/finder/ntundoc.h" |
| 10 | 11 |
| 11 // Type of stats that we calculate during the Scan operation | 12 // Type of stats that we calculate during the Scan operation |
| 12 enum Stats { | 13 enum Stats { |
| 13 READ = 0, // Number of objects with read access | 14 READ = 0, // Number of objects with read access |
| 14 WRITE, // Number of objects with write access | 15 WRITE, // Number of objects with write access |
| 15 ALL, // Number of objects with r/w access | 16 ALL, // Number of objects with r/w access |
| 16 PARSE, // Number of objects parsed | 17 PARSE, // Number of objects parsed |
| 17 BROKEN, // Number of errors while parsing the objects | 18 BROKEN, // Number of errors while parsing the objects |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 NTGENERICOPEN func_to_call, | 126 NTGENERICOPEN func_to_call, |
| 126 HANDLE *handle); | 127 HANDLE *handle); |
| 127 | 128 |
| 128 // Type of object to check for. | 129 // Type of object to check for. |
| 129 DWORD object_type_; | 130 DWORD object_type_; |
| 130 // Access to try. | 131 // Access to try. |
| 131 DWORD access_type_; | 132 DWORD access_type_; |
| 132 // Output file for the results. | 133 // Output file for the results. |
| 133 FILE * file_output_; | 134 FILE * file_output_; |
| 134 // Handle to the restricted token. | 135 // Handle to the restricted token. |
| 135 HANDLE token_handle_; | 136 base::win::ScopedHandle token_handle_; |
| 136 // Stats containing the number of operations performed on the different | 137 // Stats containing the number of operations performed on the different |
| 137 // objects. | 138 // objects. |
| 138 int filesystem_stats_[SIZE_STATS]; | 139 int filesystem_stats_[SIZE_STATS]; |
| 139 int registry_stats_[SIZE_STATS]; | 140 int registry_stats_[SIZE_STATS]; |
| 140 int kernel_object_stats_[SIZE_STATS]; | 141 int kernel_object_stats_[SIZE_STATS]; |
| 141 }; | 142 }; |
| 142 | 143 |
| 143 #endif // SANDBOX_TOOLS_FINDER_FINDER_H__ | 144 #endif // SANDBOX_TOOLS_FINDER_FINDER_H_ |
| OLD | NEW |