policy_namespace.mojom 903 B

123456789101112131415161718192021222324252627
  1. // Copyright 2022 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. module crosapi.mojom;
  5. // A copy of PolicyDomain from components/policy/core/common/policy_namespace.h.
  6. [Stable, Extensible]
  7. enum PolicyDomain {
  8. // The component ID for chrome policies is always the empty string.
  9. kPolicyDomainChrome = 0,
  10. // The component ID for the extension policies is equal to the extension ID.
  11. kPolicyDomainExtensions = 1,
  12. // The namespace that corresponds to the policies for extensions running
  13. // under Chrome OS signin profile. The component ID is equal to the extension
  14. // ID.
  15. kPolicyDomainSigninExtensions = 2,
  16. };
  17. // Corresponds to PolicyNamespace from
  18. // components/policy/core/common/policy_namespace.h.
  19. [Stable]
  20. struct PolicyNamespace {
  21. PolicyDomain domain@0;
  22. string component_id@1;
  23. };