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

Side by Side Diff: sandbox/win/src/sandbox_policy_base.h

Issue 1507413003: clang/win: Let some chromium_code targets build with -Wextra. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_browsertests Created 5 years 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/restricted_token_unittest.cc ('k') | sandbox/win/src/sandbox_policy_base.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WIN_SRC_SANDBOX_POLICY_BASE_H_ 5 #ifndef SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_
6 #define SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ 6 #define SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Creates the two tokens with the levels specified in a previous call to 84 // Creates the two tokens with the levels specified in a previous call to
85 // SetTokenLevel(). Also creates a lowbox token if specified based on the 85 // SetTokenLevel(). Also creates a lowbox token if specified based on the
86 // lowbox SID. 86 // lowbox SID.
87 ResultCode MakeTokens(base::win::ScopedHandle* initial, 87 ResultCode MakeTokens(base::win::ScopedHandle* initial,
88 base::win::ScopedHandle* lockdown, 88 base::win::ScopedHandle* lockdown,
89 base::win::ScopedHandle* lowbox); 89 base::win::ScopedHandle* lowbox);
90 90
91 const AppContainerAttributes* GetAppContainer() const; 91 const AppContainerAttributes* GetAppContainer() const;
92 92
93 const PSID GetLowBoxSid() const; 93 PSID GetLowBoxSid() const;
94 94
95 // Adds a target process to the internal list of targets. Internally a 95 // Adds a target process to the internal list of targets. Internally a
96 // call to TargetProcess::Init() is issued. 96 // call to TargetProcess::Init() is issued.
97 bool AddTarget(TargetProcess* target); 97 bool AddTarget(TargetProcess* target);
98 98
99 // Called when there are no more active processes in a Job. 99 // Called when there are no more active processes in a Job.
100 // Removes a Job object associated with this policy and the target associated 100 // Removes a Job object associated with this policy and the target associated
101 // with the job. 101 // with the job.
102 bool OnJobEmpty(HANDLE job); 102 bool OnJobEmpty(HANDLE job);
103 103
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // This list contains handles other than the stderr/stdout handles which are 181 // This list contains handles other than the stderr/stdout handles which are
182 // shared with the target at times. 182 // shared with the target at times.
183 HandleList handles_to_share_; 183 HandleList handles_to_share_;
184 184
185 DISALLOW_COPY_AND_ASSIGN(PolicyBase); 185 DISALLOW_COPY_AND_ASSIGN(PolicyBase);
186 }; 186 };
187 187
188 } // namespace sandbox 188 } // namespace sandbox
189 189
190 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ 190 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_
OLDNEW
« no previous file with comments | « sandbox/win/src/restricted_token_unittest.cc ('k') | sandbox/win/src/sandbox_policy_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698