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

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

Issue 1232963002: Sandbox: Make CreateRestrictedToken return a ScopedHandle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remoting 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"
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
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_
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