verifier_formats.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2019 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. #ifndef EXTENSIONS_COMMON_VERIFIER_FORMATS_H_
  5. #define EXTENSIONS_COMMON_VERIFIER_FORMATS_H_
  6. namespace crx_file {
  7. enum class VerifierFormat;
  8. }
  9. namespace extensions {
  10. // Returns the default format requirement for installing an extension that
  11. // originates or updates from the Webstore. |test_publisher_enabled| indicates
  12. // whether items from a test instance of Webstore are permitted.
  13. crx_file::VerifierFormat GetWebstoreVerifierFormat(bool test_publisher_enabled);
  14. // Returns the default format requirement for installing an extension that
  15. // is force-installed by policy.
  16. crx_file::VerifierFormat GetPolicyVerifierFormat();
  17. // Returns the default format requirement for installing an extension that
  18. // is installed from an external source.
  19. crx_file::VerifierFormat GetExternalVerifierFormat();
  20. // Returns the default format requirement for installing an extension that
  21. // is installed in a unit or browser test context.
  22. crx_file::VerifierFormat GetTestVerifierFormat();
  23. } // namespace extensions
  24. #endif // EXTENSIONS_COMMON_VERIFIER_FORMATS_H_