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 "sandbox/src/restricted_token_utils.h" | 8 #include "sandbox/win/src/restricted_token_utils.h" |
9 #include "sandbox/tools/finder/ntundoc.h" | 9 #include "sandbox/win/tools/finder/ntundoc.h" |
10 | 10 |
11 // Type of stats that we calculate during the Scan operation | 11 // Type of stats that we calculate during the Scan operation |
12 enum Stats { | 12 enum Stats { |
13 READ = 0, // Number of objects with read access | 13 READ = 0, // Number of objects with read access |
14 WRITE, // Number of objects with write access | 14 WRITE, // Number of objects with write access |
15 ALL, // Number of objects with r/w access | 15 ALL, // Number of objects with r/w access |
16 PARSE, // Number of objects parsed | 16 PARSE, // Number of objects parsed |
17 BROKEN, // Number of errors while parsing the objects | 17 BROKEN, // Number of errors while parsing the objects |
18 SIZE_STATS // size of the enum | 18 SIZE_STATS // size of the enum |
19 }; | 19 }; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // Handle to the restricted token. | 134 // Handle to the restricted token. |
135 HANDLE token_handle_; | 135 HANDLE token_handle_; |
136 // Stats containing the number of operations performed on the different | 136 // Stats containing the number of operations performed on the different |
137 // objects. | 137 // objects. |
138 int filesystem_stats_[SIZE_STATS]; | 138 int filesystem_stats_[SIZE_STATS]; |
139 int registry_stats_[SIZE_STATS]; | 139 int registry_stats_[SIZE_STATS]; |
140 int kernel_object_stats_[SIZE_STATS]; | 140 int kernel_object_stats_[SIZE_STATS]; |
141 }; | 141 }; |
142 | 142 |
143 #endif // SANDBOX_TOOLS_FINDER_FINDER_H__ | 143 #endif // SANDBOX_TOOLS_FINDER_FINDER_H__ |
OLD | NEW |