| Index: extensions/common/extension_unpacker.mojom
|
| diff --git a/extensions/common/extension_unpacker.mojom b/extensions/common/extension_unpacker.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f33353ae6e14cbd0957347948a7992232802ebb2
|
| --- /dev/null
|
| +++ b/extensions/common/extension_unpacker.mojom
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2017 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.
|
| +
|
| +// Secure chrome extension unpacker service provided by the utility process
|
| +// and exposed by mojo policy to the chrome browser process.
|
| +
|
| +module extensions.mojom;
|
| +
|
| +import "extensions/common/manifest_location.mojom";
|
| +import "mojo/common/file_path.mojom";
|
| +import "mojo/common/string16.mojom";
|
| +import "mojo/common/values.mojom";
|
| +
|
| +interface ExtensionUnpacker {
|
| + // Unzip |file| into the directory |path|.
|
| + Unzip(mojo.common.mojom.FilePath file,
|
| + mojo.common.mojom.FilePath path) => (bool success);
|
| +
|
| + // Unpack, validate, and sanitize the extension in directory |path|, and
|
| + // return the parsed manifest.json in |manifest|. The supplied |location|
|
| + // and |creation_flags| are passed to Extensions:Create().
|
| + // If unpacking fails, |error| is a user-displayable explanation of what
|
| + // went wrong.
|
| + Unpack(mojo.common.mojom.FilePath path,
|
| + string extension_id,
|
| + ManifestLocation location,
|
| + int32 creation_flags)
|
| + => (mojo.common.mojom.String16 error,
|
| + mojo.common.mojom.DictionaryValue? manifest);
|
| +};
|
|
|