| 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" | |
| 9 #include "sandbox/win/src/restricted_token_utils.h" | 8 #include "sandbox/win/src/restricted_token_utils.h" |
| 10 #include "sandbox/win/tools/finder/ntundoc.h" | 9 #include "sandbox/win/tools/finder/ntundoc.h" |
| 11 | 10 |
| 12 // Type of stats that we calculate during the Scan operation | 11 // Type of stats that we calculate during the Scan operation |
| 13 enum Stats { | 12 enum Stats { |
| 14 READ = 0, // Number of objects with read access | 13 READ = 0, // Number of objects with read access |
| 15 WRITE, // Number of objects with write access | 14 WRITE, // Number of objects with write access |
| 16 ALL, // Number of objects with r/w access | 15 ALL, // Number of objects with r/w access |
| 17 PARSE, // Number of objects parsed | 16 PARSE, // Number of objects parsed |
| 18 BROKEN, // Number of errors while parsing the objects | 17 BROKEN, // Number of errors while parsing the objects |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 NTGENERICOPEN func_to_call, | 125 NTGENERICOPEN func_to_call, |
| 127 HANDLE *handle); | 126 HANDLE *handle); |
| 128 | 127 |
| 129 // Type of object to check for. | 128 // Type of object to check for. |
| 130 DWORD object_type_; | 129 DWORD object_type_; |
| 131 // Access to try. | 130 // Access to try. |
| 132 DWORD access_type_; | 131 DWORD access_type_; |
| 133 // Output file for the results. | 132 // Output file for the results. |
| 134 FILE * file_output_; | 133 FILE * file_output_; |
| 135 // Handle to the restricted token. | 134 // Handle to the restricted token. |
| 136 base::win::ScopedHandle token_handle_; | 135 HANDLE token_handle_; |
| 137 // Stats containing the number of operations performed on the different | 136 // Stats containing the number of operations performed on the different |
| 138 // objects. | 137 // objects. |
| 139 int filesystem_stats_[SIZE_STATS]; | 138 int filesystem_stats_[SIZE_STATS]; |
| 140 int registry_stats_[SIZE_STATS]; | 139 int registry_stats_[SIZE_STATS]; |
| 141 int kernel_object_stats_[SIZE_STATS]; | 140 int kernel_object_stats_[SIZE_STATS]; |
| 142 }; | 141 }; |
| 143 | 142 |
| 144 #endif // SANDBOX_TOOLS_FINDER_FINDER_H_ | 143 #endif // SANDBOX_TOOLS_FINDER_FINDER_H__ |
| OLD | NEW |