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

Side by Side Diff: sandbox/win/tools/finder/finder.h

Issue 1231853005: Revert of Sandbox: Make CreateRestrictedToken return a ScopedHandle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « sandbox/win/src/sandbox_policy_base.cc ('k') | sandbox/win/tools/finder/finder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « sandbox/win/src/sandbox_policy_base.cc ('k') | sandbox/win/tools/finder/finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698