| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef EXTENSIONS_COMMON_VERIFIER_FORMATS_H_ |
| #define EXTENSIONS_COMMON_VERIFIER_FORMATS_H_ |
| |
| namespace crx_file { |
| enum class VerifierFormat; |
| } |
| |
| namespace extensions { |
| |
| // Returns the default format requirement for installing an extension that |
| // originates or updates from the Webstore. |
| crx_file::VerifierFormat GetWebstoreVerifierFormat(); |
| |
| // Returns the default format requirement for installing an extension that |
| // is force-installed by policy. |insecure_updates_enabled| indicates |
| // whether an enterprise has chosen, via corporate policy, to allow insecure |
| // update mechanisms. |
| crx_file::VerifierFormat GetPolicyVerifierFormat(bool insecure_updates_enabled); |
| |
| // Returns the default format requirement for installing an extension that |
| // is installed from an external source. |
| crx_file::VerifierFormat GetExternalVerifierFormat(); |
| |
| // Returns the default format requirement for installing an extension that |
| // is installed in a unit or browser test context. |
| crx_file::VerifierFormat GetTestVerifierFormat(); |
| |
| } // namespace extensions |
| |
| #endif // EXTENSIONS_COMMON_VERIFIER_FORMATS_H_ |