#ifndef COMPONENTS_CRX_FILE_CRX_CREATOR_H_
#define COMPONENTS_CRX_FILE_CRX_CREATOR_H_
#include <string>
namespace base {
class FilePath;
}
namespace crypto::keypair {
class PrivateKey;
}
namespace crx_file {
enum class CreatorResult {
OK,
ERROR_SIGNING_FAILURE,
ERROR_FILE_NOT_READABLE,
ERROR_FILE_NOT_WRITABLE,
ERROR_FILE_WRITE_FAILURE,
};
CreatorResult CreateCrxWithVerifiedContentsInHeader(
const base::FilePath& output_path,
const base::FilePath& zip_path,
const crypto::keypair::PrivateKey& signing_key,
const std::string& verified_contents);
CreatorResult Create(const base::FilePath& output_path,
const base::FilePath& zip_path,
const crypto::keypair::PrivateKey& signing_key);
}
#endif