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

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

Issue 1626623003: [Win10 sandbox mitigations] Four new Win10 mitigations added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review changes, part 5. "Fix the nit." Created 4 years, 10 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.h ('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 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 27 matching lines...) Expand all
38 public: 38 public:
39 PolicyBase(); 39 PolicyBase();
40 40
41 // TargetPolicy: 41 // TargetPolicy:
42 void AddRef() override; 42 void AddRef() override;
43 void Release() override; 43 void Release() override;
44 ResultCode SetTokenLevel(TokenLevel initial, TokenLevel lockdown) override; 44 ResultCode SetTokenLevel(TokenLevel initial, TokenLevel lockdown) override;
45 TokenLevel GetInitialTokenLevel() const override; 45 TokenLevel GetInitialTokenLevel() const override;
46 TokenLevel GetLockdownTokenLevel() const override; 46 TokenLevel GetLockdownTokenLevel() const override;
47 ResultCode SetJobLevel(JobLevel job_level, uint32_t ui_exceptions) override; 47 ResultCode SetJobLevel(JobLevel job_level, uint32_t ui_exceptions) override;
48 JobLevel GetJobLevel() const override;
48 ResultCode SetJobMemoryLimit(size_t memory_limit) override; 49 ResultCode SetJobMemoryLimit(size_t memory_limit) override;
49 ResultCode SetAlternateDesktop(bool alternate_winstation) override; 50 ResultCode SetAlternateDesktop(bool alternate_winstation) override;
50 base::string16 GetAlternateDesktop() const override; 51 base::string16 GetAlternateDesktop() const override;
51 ResultCode CreateAlternateDesktop(bool alternate_winstation) override; 52 ResultCode CreateAlternateDesktop(bool alternate_winstation) override;
52 void DestroyAlternateDesktop() override; 53 void DestroyAlternateDesktop() override;
53 ResultCode SetIntegrityLevel(IntegrityLevel integrity_level) override; 54 ResultCode SetIntegrityLevel(IntegrityLevel integrity_level) override;
54 IntegrityLevel GetIntegrityLevel() const override; 55 IntegrityLevel GetIntegrityLevel() const override;
55 ResultCode SetDelayedIntegrityLevel(IntegrityLevel integrity_level) override; 56 ResultCode SetDelayedIntegrityLevel(IntegrityLevel integrity_level) override;
56 ResultCode SetAppContainer(const wchar_t* sid) override; 57 ResultCode SetAppContainer(const wchar_t* sid) override;
57 ResultCode SetCapability(const wchar_t* sid) override; 58 ResultCode SetCapability(const wchar_t* sid) override;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // This list contains handles other than the stderr/stdout handles which are 169 // This list contains handles other than the stderr/stdout handles which are
169 // shared with the target at times. 170 // shared with the target at times.
170 HandleList handles_to_share_; 171 HandleList handles_to_share_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(PolicyBase); 173 DISALLOW_COPY_AND_ASSIGN(PolicyBase);
173 }; 174 };
174 175
175 } // namespace sandbox 176 } // namespace sandbox
176 177
177 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ 178 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_
OLDNEW
« no previous file with comments | « sandbox/win/src/sandbox_policy.h ('k') | sandbox/win/src/sandbox_policy_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698