Add resource threshold feature for Origin Isolation.
This CL implements a feature-based mechanism for setting a resource
threshold for process-isolated Origin Isolation. The feature may be
enabled to activate the threshold, which may be specified as an integer-
value representing the system memory capacity in MB, via an
accompanying parameter.
DISABLE_SPELLCHECKER
Bug: 40259221
Change-Id: Ibe81f7ce4b312d1f9e88ef24c299ef9ca0b8374a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5503229
Reviewed-by: Peter Beverloo <[email protected]>
Commit-Queue: James Maclean <[email protected]>
Reviewed-by: Alex Moshchuk <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1413577}
diff --git a/components/site_isolation/features.h b/components/site_isolation/features.h
index b406c936..3ca2e615 100644
--- a/components/site_isolation/features.h
+++ b/components/site_isolation/features.h
@@ -15,6 +15,8 @@
BASE_DECLARE_FEATURE(kSiteIsolationMemoryThresholds);
extern const char kStrictSiteIsolationMemoryThresholdParamName[];
extern const char kPartialSiteIsolationMemoryThresholdParamName[];
+BASE_DECLARE_FEATURE(kOriginIsolationMemoryThreshold);
+extern const char kOriginIsolationMemoryThresholdParamName[];
} // namespace features
} // namespace site_isolation