OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 namespace sandbox { | 26 namespace sandbox { |
27 | 27 |
28 class AppContainerAttributes; | 28 class AppContainerAttributes; |
29 class LowLevelPolicy; | 29 class LowLevelPolicy; |
30 class TargetProcess; | 30 class TargetProcess; |
31 struct PolicyGlobal; | 31 struct PolicyGlobal; |
32 | 32 |
33 typedef std::vector<base::win::ScopedHandle*> HandleList; | 33 typedef std::vector<base::win::ScopedHandle*> HandleList; |
34 | 34 |
35 class PolicyBase : public TargetPolicy { | 35 class PolicyBase final : public TargetPolicy { |
36 public: | 36 public: |
37 PolicyBase(); | 37 PolicyBase(); |
38 | 38 |
39 // TargetPolicy: | 39 // TargetPolicy: |
40 void AddRef() override; | 40 void AddRef() override; |
41 void Release() override; | 41 void Release() override; |
42 ResultCode SetTokenLevel(TokenLevel initial, TokenLevel lockdown) override; | 42 ResultCode SetTokenLevel(TokenLevel initial, TokenLevel lockdown) override; |
43 TokenLevel GetInitialTokenLevel() const override; | 43 TokenLevel GetInitialTokenLevel() const override; |
44 TokenLevel GetLockdownTokenLevel() const override; | 44 TokenLevel GetLockdownTokenLevel() const override; |
45 ResultCode SetJobLevel(JobLevel job_level, uint32 ui_exceptions) override; | 45 ResultCode SetJobLevel(JobLevel job_level, uint32 ui_exceptions) override; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // This list contains handles other than the stderr/stdout handles which are | 166 // This list contains handles other than the stderr/stdout handles which are |
167 // shared with the target at times. | 167 // shared with the target at times. |
168 HandleList handles_to_share_; | 168 HandleList handles_to_share_; |
169 | 169 |
170 DISALLOW_COPY_AND_ASSIGN(PolicyBase); | 170 DISALLOW_COPY_AND_ASSIGN(PolicyBase); |
171 }; | 171 }; |
172 | 172 |
173 } // namespace sandbox | 173 } // namespace sandbox |
174 | 174 |
175 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ | 175 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ |
OLD | NEW |