#include "chrome/browser/extensions/pack_extension_job.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/sequenced_task_runner.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/extension_creator.h"
#include "extensions/browser/extension_file_task_runner.h"
#include "extensions/common/constants.h"
#include "ui/base/l10n/l10n_util.h"
BrowserThread;
namespace extensions {
PackExtensionJob::PackExtensionJob(Client* client,
const base::FilePath& root_directory,
const base::FilePath& key_file,
int run_flags)
: … { … }
PackExtensionJob::~PackExtensionJob() { … }
void PackExtensionJob::Start() { … }
void PackExtensionJob::Run(
scoped_refptr<base::SequencedTaskRunner> async_reply_task_runner) { … }
void PackExtensionJob::ReportSuccessOnClientSequence(
std::unique_ptr<base::FilePath> crx_file_out,
std::unique_ptr<base::FilePath> key_file_out) { … }
void PackExtensionJob::ReportFailureOnClientSequence(
const std::string& error,
ExtensionCreator::ErrorType error_type) { … }
std::u16string PackExtensionJob::StandardSuccessMessage(
const base::FilePath& crx_file,
const base::FilePath& key_file) { … }
}