Index: sandbox/win/src/sandbox_policy.h |
diff --git a/sandbox/win/src/sandbox_policy.h b/sandbox/win/src/sandbox_policy.h |
index 4694fbed915f0167117b6a4d86620b07ee47bbc7..9379d45f083f4b210cc81609680f9d12073bfd3b 100644 |
--- a/sandbox/win/src/sandbox_policy.h |
+++ b/sandbox/win/src/sandbox_policy.h |
@@ -128,6 +128,11 @@ class TargetPolicy { |
// Note: the recommended level is JOB_RESTRICTED or JOB_LOCKDOWN. |
virtual ResultCode SetJobLevel(JobLevel job_level, uint32 ui_exceptions) = 0; |
+ // Sets a hard limit on the size of the commit set for the sandboxed process. |
+ // If the limit is reached, the process will be terminated with |
+ // SBOX_FATAL_MEMORY_EXCEEDED (7012). |
+ virtual ResultCode SetJobMemoryLimit(size_t memory_limit) = 0; |
+ |
// Specifies the desktop on which the application is going to run. If the |
// desktop does not exist, it will be created. If alternate_winstation is |
// set to true, the desktop will be created on an alternate window station. |