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 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 27 matching lines...) Expand all Loading... |
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 Loading... |
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_ |
OLD | NEW |