pref_names.cc 1.2 KB

123456789101112131415161718192021222324252627
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/site_isolation/pref_names.h"
  5. namespace site_isolation {
  6. namespace prefs {
  7. // A list of origins that were heuristically determined to need process
  8. // isolation due to an action triggered by the user. For example, an origin may
  9. // be placed on this list in response to the user typing a password on it.
  10. const char kUserTriggeredIsolatedOrigins[] =
  11. "site_isolation.user_triggered_isolated_origins";
  12. // A list of origins that were determined to need process isolation based on
  13. // heuristics triggered directly by web sites. For example, an origin may be
  14. // placed on this list in response to serving Cross-Origin-Opener-Policy
  15. // headers. Unlike the user-triggered list above, web-triggered isolated
  16. // origins are subject to stricter size and eviction policies, to guard against
  17. // too many sites triggering isolation and to eventually stop isolation if web
  18. // sites stop serving headers that triggered it.
  19. const char kWebTriggeredIsolatedOrigins[] =
  20. "site_isolation.web_triggered_isolated_origins";
  21. } // namespace prefs
  22. } // namespace site_isolation